UNPKG

featurehub-eventsource-sdk

Version:

FeatureHub SDK. Supports near real-time feature flag updates via eventsource (SSE) or on-demand updates via REST requests.

64 lines (63 loc) 1.85 kB
{ "name": "featurehub-eventsource-sdk", "version": "2.0.4", "description": "FeatureHub SDK. Supports near real-time feature flag updates via eventsource (SSE) or on-demand updates via REST requests.", "author": "info@featurehub.io", "main": "dist/index.js", "module": "lib/index.js", "files": [ "lib/**/*", "dist/**/*" ], "repository": { "type": "git", "url": "" }, "homepage": "https://featurehub.io", "keywords": [ "feature-flag-api", "feature-flag-sdk", "feature-experimentation", "feature-flag", "flag", "toggle", "feature-toggle", "feature-toggle-api", "remote-configuration", "gradual-rollout", "ab-testing", "feature-flag-react", "featurehub" ], "license": "MIT", "scripts": { "build": "npm run clean && npm run tsc tsconfig.json && npm run tsc tsconfig-es.json", "clean": "rm -rf dist lib", "build:watch": "npm run build -- -- -w", "mocha": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' node ./node_modules/mocha/bin/mocha --config mocharc.yml", "test": "npm run clean && npm run tsc tsconfig-es.json && npm run mocha", "test:watch": "npm run mocha --opts mocha.opts --watch", "link": "npm link featurehub-repository", "compile": "npm run link && npm run build && npm link", "tsc": "node ./node_modules/typescript/bin/tsc -p", "release": "npm run build && npm publish", "prepublishOnly": "npm run build" }, "devDependencies": { "@types/chai": "4.2.15", "@types/mocha": "8.2.2", "@types/node": "^14.14.35", "chai": "4.3.4", "mocha": "8.3.2", "ts-node": "9.1.1", "typescript": "4.2.3" }, "dependencies": { "@types/eventsource": "^1.1.5", "eventsource": "^1.1.0", "featurehub-repository": "^2.0.3" }, "engines": { "node": ">=12.12.0" } }