UNPKG

@flagship.io/js-sdk

Version:
137 lines (136 loc) 4.8 kB
{ "name": "@flagship.io/js-sdk", "sideEffects": false, "version": "5.1.2", "author": "AB Tasty", "license": "Apache-2.0", "description": "Flagship JS SDK", "main": "./dist/index.node.commonjs.cjs", "module": "./dist/index.node.esm.js", "browser": "dist/index.browser.lite.js", "react-native": "/dist/index.react-native.esm.js", "jsdelivr": "./dist/index.browser.umd.js", "unpkg": "./dist/index.browser.umd.js", "types": "dist/index.d.ts", "files": [ "dist/*" ], "exports": { ".": { "types": "./dist/index.d.ts", "node": { "import": "./dist/index.node.esm.js", "require": "./dist/index.node.commonjs.cjs" }, "browser": { "import": "./dist/index.browser.esm.js", "require": "./dist/index.browser.commonjs.js" }, "react-native": { "import": "./dist/index.react-native.esm.js", "require": "./dist/index.react-native.commonjs.js" }, "default": "./dist/index.node.commonjs.cjs" }, "./dist/edge.js": { "types": "./dist/index.d.ts", "import": "./dist/index.edge.esm.js", "require": "./dist/index.edge.commonjs.js" }, "./dist/index.browser.lite": { "types": "./dist/index.d.ts", "default": "./dist/index.browser.lite.js" }, "./dist/index.browser.lite.js": { "types": "./dist/index.d.ts", "default": "./dist/index.browser.lite.js" }, "./dist/index.browser.js": { "types": "./dist/index.d.ts", "default": "./dist/index.browser.umd.js" }, "./dist/index.browser": { "types": "./dist/index.d.ts", "default": "./dist/index.browser.umd.js" } }, "engines": { "node": ">=6" }, "homepage": "https://github.com/flagship-io/flagship-ts-sdk", "repository": { "type": "git", "url": "https://github.com/flagship-io/flagship-ts-sdk.git" }, "scripts": { "lint:fix": "eslint . --ext .ts --fix", "lint": "eslint . --ext .ts", "test": "yarn run test-functional-api-mode && yarn run test-functional-bucketing-mode && yarn run test-u", "test-u": "jest --testPathIgnorePatterns='<rootDir>/test/main/FunctionalApiMode.test.ts' --testPathIgnorePatterns='<rootDir>/test/main/FunctionalBucketingMode.test.ts'", "test-functional-api-mode": "jest test/main/FunctionalApiMode.test.ts --forceExit", "test-functional-bucketing-mode": "jest test/main/FunctionalBucketingMode.test.ts --forceExit", "clean": "rm -rf dist dist-deno", "test:coverage": "jest --coverage", "rollup": "rollup -c", "build": "yarn run clean && yarn run generate:version && yarn run tsc && webpack && npm run rollup && node denoTrans.mjs", "generate:version": "genversion --es6 src/sdkVersion.ts", "build-prod": "NODE_ENV=production npm run build", "analyze": "webpack --profile --json > stats.json && webpack-bundle-analyzer stats.json", "analyze-prod": "NODE_ENV=production webpack --profile --json > stats.json && webpack-bundle-analyzer stats.json" }, "devDependencies": { "@babel/core": "^7.26.9", "@babel/plugin-transform-runtime": "^7.21.4", "@babel/preset-env": "^7.21.4", "@babel/preset-typescript": "^7.21.4", "@babel/runtime": "^7.21.0", "@eslint/js": "^9.23.0", "@rollup/plugin-alias": "^5.1.1", "@rollup/plugin-node-resolve": "^16.0.1", "@rollup/plugin-replace": "^6.0.2", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^12.1.2", "@testing-library/dom": "^9.3.3", "@testing-library/user-event": "^14.5.2", "@types/jest": "^29.5.0", "@types/node": "^22.13.10", "@types/node-fetch": "^2.6.3", "babel-loader": "^9.1.2", "core-js": "^3.30.1", "cross-env": "^7.0.3", "eslint": "^9.23.0", "eslint-plugin-format": "^1.0.1", "genversion": "^3.1.1", "globals": "^16.0.0", "jest": "^29.5.0", "jest-environment-jsdom": "^29.7.0", "metro-react-native-babel-preset": "^0.77.0", "react": "^18.3.1", "rollup": "^4.35.0", "terser-webpack-plugin": "^5.3.7", "ts-jest": "^29.1.0", "ts-loader": "^9.4.2", "tsconfig-paths-webpack-plugin": "^4.1.0", "tslib": "^2.8.1", "typescript": "^5.8.2", "typescript-eslint": "^8.28.0", "webpack": "^5.98.0", "webpack-bundle-analyzer": "^4.10.2", "webpack-cli": "^5.0.1", "webpack-merge": "^5.8.0", "webpack-node-externals": "^3.0.0" }, "dependencies": { "events": "^3.3.0", "follow-redirects": "^1.15.9", "node-abort-controller": "^3.1.1", "node-fetch": "^2.6.7" }, "keywords": [ "flagship", "abtasty", "node", "sdk" ], "packageManager": "yarn@4.7.0+sha512.5a0afa1d4c1d844b3447ee3319633797bcd6385d9a44be07993ae52ff4facabccafb4af5dcd1c2f9a94ac113e5e9ff56f6130431905884414229e284e37bb7c9" }