@optimizely/optimizely-sdk
Version:
JavaScript SDK for Optimizely Feature Experimentation, Optimizely Full Stack (legacy), and Optimizely Rollouts
181 lines (180 loc) • 6.31 kB
JSON
{
"name": "@optimizely/optimizely-sdk",
"version": "6.1.0",
"description": "JavaScript SDK for Optimizely Feature Experimentation, Optimizely Full Stack (legacy), and Optimizely Rollouts",
"main": "./dist/index.node.min.js",
"browser": "./dist/index.browser.es.min.js",
"react-native": "./dist/index.react_native.min.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"node": {
"import": "./dist/index.node.es.min.mjs",
"require": "./dist/index.node.min.js"
},
"react-native": {
"import": "./dist/index.react_native.es.min.js",
"require": "./dist/index.react_native.min.js"
},
"browser": {
"import": "./dist/index.browser.es.min.js",
"require": "./dist/index.browser.min.js"
},
"default": {
"import": "./dist/index.node.es.min.mjs",
"require": "./dist/index.node.min.js"
}
},
"./node": {
"types": "./dist/index.d.ts",
"import": "./dist/index.node.es.min.mjs",
"require": "./dist/index.node.min.js"
},
"./browser": {
"types": "./dist/index.d.ts",
"import": "./dist/index.browser.es.min.js",
"require": "./dist/index.browser.min.js"
},
"./react_native": {
"types": "./dist/index.d.ts",
"default": "./dist/index.react_native.min.js",
"import": "./dist/index.react_native.es.min.js",
"require": "./dist/index.react_native.min.js"
},
"./universal": {
"types": "./dist/index.universal.d.ts",
"import": "./dist/index.universal.es.min.js",
"require": "./dist/index.universal.min.js"
},
"./ua_parser": {
"types": "./dist/odp/ua_parser/ua_parser.d.ts",
"import": "./dist/ua_parser.es.min.js",
"require": "./dist/ua_parser.min.js"
}
},
"scripts": {
"clean": "rm -rf dist",
"clean:win": "(if exist dist rd /s/q dist)",
"lint": "tsc --noEmit && eslint 'lib/**/*.js' 'lib/**/*.ts'",
"test-vitest": "vitest run",
"test-mocha": "TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register -r tsconfig-paths/register -r lib/tests/exit_on_unhandled_rejection.js 'lib/**/*.tests.ts' 'lib/**/*.tests.js'",
"test": "npm run test-mocha && npm run test-vitest",
"posttest": "npm run lint",
"test-ci": "npm run test-xbrowser && npm run test-umdbrowser",
"test-xbrowser": "karma start karma.bs.conf.js --single-run",
"test-umdbrowser": "npm run build-browser-umd && karma start karma.umd.conf.js --single-run",
"test-karma-local": "karma start karma.local_chrome.bs.conf.js && npm run build-browser-umd && karma start karma.local_chrome.umd.conf.js",
"prebuild": "npm run clean",
"build": "npm run genmsg && rollup -c && cp dist/index.browser.d.ts dist/index.d.ts",
"build:win": "npm run genmsg && rollup -c && type nul > dist/optimizely.lite.es.d.ts && type nul > dist/optimizely.lite.es.min.d.ts && type nul > dist/optimizely.lite.min.d.ts",
"build-browser-umd": "rollup -c --config-umd",
"coveralls": "nyc --reporter=lcov npm test",
"prepare": "npm run build",
"prepublishOnly": "npm test",
"postbuild:win": "@powershell copy \"dist/index.lite.d.ts\" \"dist/optimizely.lite.es.d.ts\" && @powershell copy \"dist/index.lite.d.ts\" \"dist/optimizely.lite.es.min.d.ts\" && @powershell copy \"dist/index.lite.d.ts\" \"dist/optimizely.lite.min.d.ts\"",
"genmsg": "jiti message_generator ./lib/message/error_message.ts ./lib/message/log_message.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/optimizely/javascript-sdk.git"
},
"license": "Apache-2.0",
"engines": {
"node": ">=18.0.0"
},
"keywords": [
"optimizely"
],
"bugs": {
"url": "https://github.com/optimizely/javascript-sdk/issues"
},
"homepage": "https://github.com/optimizely/javascript-sdk",
"dependencies": {
"decompress-response": "^7.0.0",
"json-schema": "^0.4.0",
"murmurhash": "^2.0.1",
"uuid": "^10.0.0"
},
"devDependencies": {
"@react-native-async-storage/async-storage": "^2",
"@react-native-community/netinfo": "^11.3.2",
"@rollup/plugin-commonjs": "^11.0.2",
"@rollup/plugin-node-resolve": "^7.1.1",
"@types/chai": "^4.2.11",
"@types/mocha": "^5.2.7",
"@types/nise": "^1.4.0",
"@types/node": "^18.7.18",
"@types/ua-parser-js": "^0.7.36",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"@vitest/coverage-istanbul": "^2.0.5",
"chai": "^4.2.0",
"coveralls-next": "^4.2.0",
"eslint": "^8.21.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-prettier": "^3.1.2",
"happy-dom": "^16.6.0",
"jiti": "^2.4.1",
"json-loader": "^0.5.4",
"karma": "^6.4.0",
"karma-browserstack-launcher": "^1.5.1",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.1.1",
"karma-mocha": "^2.0.1",
"karma-webpack": "^5.0.1",
"lodash": "^4.17.11",
"mocha": "^10.2.0",
"mocha-lcov-reporter": "^1.3.0",
"nise": "^1.4.10",
"nock": "11.9.1",
"nyc": "^15.0.1",
"prettier": "^1.19.1",
"promise-polyfill": "8.1.0",
"rollup": "2.79.2",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-typescript2": "^0.27.1",
"sinon": "^2.3.1",
"ts-loader": "^9.3.1",
"ts-node": "^8.10.2",
"tsconfig-paths": "^4.2.0",
"tslib": "^2.4.0",
"typescript": "^4.7.4",
"vitest": "^2.0.5",
"webpack": "^5.74.0"
},
"peerDependencies": {
"@react-native-async-storage/async-storage": ">=1.0.0 <3.0.0",
"@react-native-community/netinfo": ">=5.0.0 <12.0.0",
"fast-text-encoding": "^1.0.6",
"react-native-get-random-values": "^1.11.0",
"ua-parser-js": "^1.0.38"
},
"peerDependenciesMeta": {
"@react-native-async-storage/async-storage": {
"optional": true
},
"@react-native-community/netinfo": {
"optional": true
},
"react-native-get-random-values": {
"optional": true
},
"fast-text-encoding": {
"optional": true
},
"ua-parser-js": {
"optional": true
}
},
"publishConfig": {
"access": "public"
},
"files": [
"dist/"
],
"nyc": {
"temp-dir": "coverage/raw"
}
}