UNPKG

@namiml/web-sdk

Version:

Nami Web SDK makes subscriptions & in-app purchases easy, with powerful built-in paywalls and A/B testing

104 lines (103 loc) 3.57 kB
{ "name": "@namiml/web-sdk", "type": "module", "version": "1.5.11", "source": "src/nami-web.ts", "description": "Nami Web SDK makes subscriptions & in-app purchases easy, with powerful built-in paywalls and A/B testing", "scripts": { "clear-test-cache": "jest --clearCache", "test": "yarn clear-test-cache && TZ=UTC jest --coverage -i --forceExit", "build-sdk": "rm -rf dist && rollup -c", "watch": "microbundle --tsconfig tsconfig.dev.json --output ./dist/nami-web.mjs --watch --no-compress --format modern --define NAMI_SDK_ENV='development'", "build:dev": "yarn build-sdk --environment NAMI_SDK_ENV:development", "build:prod": "yarn build-sdk --environment NAMI_SDK_ENV:production", "react-dev": "yarn build:dev && yarn copy-react && cd examples/react-demo && yarn start", "react-prod": "yarn build:dev && yarn copy-react && cd examples/react-demo && yarn start", "vue-dev": "yarn build:dev && yarn copy-vue && cd examples/vue-demo && yarn serve", "vue-prod": "yarn build:dev && yarn copy-vue && cd examples/vue-demo && yarn serve", "lit-dev": "yarn build:dev && yarn copy-lit && cd examples/lit && yarn serve", "lit-prod": "yarn build:dev && yarn copy-lit && cd examples/lit && yarn serve", "copy-react": "cd examples/react-demo/src && rm -rf nami-dist && mkdir nami-dist && cp -r ../../../dist/nami-web.* nami-dist/", "copy-lit": "cd examples/lit && rm -rf nami-dist && mkdir nami-dist && cp -r ../../dist/nami-web.mjs nami-dist/", "copy-vue": "cd examples/vue-demo && rm -rf nami-dist && mkdir nami-dist && cp -r ../../dist/nami-web.* nami-dist/" }, "exports": { "require": "./dist/nami-web.cjs", "import": "./dist/nami-web.mjs", "default": "./dist/nami-web.js" }, "main": "dist/nami-web.cjs", "module": "dist/nami-web.js", "unpkg": "dist/nami-web.umd.js", "types": "dist/nami-web.d.ts", "files": [ "dist", "CHANGELOG.md" ], "keywords": [ "in-app-purchase", "paywall", "js", "web", "subscriptions", "iap", "payments", "stripe", "react", "vue", "saas" ], "author": { "username": "hellonami", "name": "Nami ML Inc.", "email": "hello@namiml.com" }, "license": "SEE LICENSE FILE", "devDependencies": { "@eslint/js": "^9.2.0", "@open-wc/testing": "^4.0.0", "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-replace": "^5.0.5", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^11.1.6", "@types/jest": "^29.5.12", "@types/lodash-es": "^4.17.4", "@types/node": "^22.2.0", "eslint": "^9.2.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "jest-fetch-mock": "^3.0.3", "microbundle": "^0.15.1", "prettier": "3.2.5", "rollup": "^4.18.0", "rollup-plugin-dts": "^6.1.1", "ts-jest": "^29.1.2", "ts-node": "^10.9.2", "tslib": "^2.6.3", "typescript": "^5.4.5", "typescript-eslint": "^8.0.1", "wrangler": "^3.66.0" }, "dependencies": { "@lit-labs/ssr-dom-shim": "^1.2.0", "bowser": "^2.11.0", "date-fns-tz": "^3.1.3", "hls.js": "^1.5.15", "lit": "^3.1.3", "lodash-es": "^4.17.21", "marked": "^12.0.2", "swiper": "^11.1.12" }, "homepage": "https://www.namiml.com", "bugs": { "url": "https://github.com/namiml/nami-web-sdk/issues" }, "repository": { "type": "git", "url": "https://github.com/namiml/nami-web-sdk.git" }, "resolutions": { "@esm-bundle/chai": "4.3.4-fix.0" }, "packageManager": "yarn@4.4.0" }