unleash-client
Advanced tools
Comparing version 3.21.0 to 4.0.0-beta.0
@@ -26,2 +26,2 @@ const { initialize, isEnabled } = require('../lib'); | ||
console.log(`${toggle}: ${enabled ? 'on' : 'off'}`); | ||
}, 1000); | ||
}, 1000); |
@@ -1,6 +0,5 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
import * as express from 'express'; | ||
import * as express from 'express'; // eslint-disable-line import/no-unresolved | ||
import { Unleash, Strategy } from '../lib/unleash'; | ||
const fixture = require('../test/fixtures/format-0.json'); | ||
const fixture = require('./fixtures/format-0.json'); | ||
@@ -7,0 +6,0 @@ const app = express(); |
@@ -1,1 +0,1 @@ | ||
{ "name": "unleash-client-node", "version": "3.21.0", "sdkVersion": "unleash-client-node:3.21.0" } | ||
{ "name": "unleash-client-node", "version": "4.0.0-beta.0", "sdkVersion": "unleash-client-node:4.0.0-beta.0" } |
@@ -18,3 +18,3 @@ "use strict"; | ||
UnleashEvents["Impression"] = "impression"; | ||
})(UnleashEvents = exports.UnleashEvents || (exports.UnleashEvents = {})); | ||
})(UnleashEvents || (exports.UnleashEvents = UnleashEvents = {})); | ||
// Wrapper to provide type checking. | ||
@@ -21,0 +21,0 @@ function createImpressionEvent(evt) { |
@@ -23,3 +23,3 @@ "use strict"; | ||
Operator["SEMVER_LT"] = "SEMVER_LT"; | ||
})(Operator = exports.Operator || (exports.Operator = {})); | ||
})(Operator || (exports.Operator = Operator = {})); | ||
const cleanValues = (values) => values.filter((v) => !!v).map((v) => v.trim()); | ||
@@ -26,0 +26,0 @@ const isStrictSemver = (version) => (0, semver_1.clean)(version) === version; |
@@ -11,3 +11,3 @@ "use strict"; | ||
PayloadType["CSV"] = "csv"; | ||
})(PayloadType = exports.PayloadType || (exports.PayloadType = {})); | ||
})(PayloadType || (exports.PayloadType = PayloadType = {})); | ||
function getDefaultVariant() { | ||
@@ -14,0 +14,0 @@ return { |
{ | ||
"name": "unleash-client", | ||
"version": "3.21.0", | ||
"version": "4.0.0-beta.0", | ||
"description": "Unleash Client for Node", | ||
@@ -32,13 +32,13 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"ip": "^1.1.8", | ||
"make-fetch-happen": "^10.2.1", | ||
"murmurhash3js": "^3.0.1", | ||
"semver": "^7.3.8" | ||
"ip": "1.1.8", | ||
"make-fetch-happen": "11.1.1", | ||
"murmurhash3js": "3.0.1", | ||
"semver": "7.5.1" | ||
}, | ||
"engines": { | ||
"node": ">=10", | ||
"npm": ">=4.0.0" | ||
"node": ">=16" | ||
}, | ||
"files": [ | ||
"lib", | ||
"!lib/test", | ||
"examples" | ||
@@ -48,30 +48,36 @@ ], | ||
"@ava/babel": "2.0.0", | ||
"@ava/typescript": "^4.0.0", | ||
"@tsconfig/node12": "^1.0.11", | ||
"@types/express": "^4.17.17", | ||
"@types/ip": "1.1.0", | ||
"@types/make-fetch-happen": "10.0.1", | ||
"@types/murmurhash3js": "3.0.3", | ||
"@types/node": "18.14.1", | ||
"@types/semver": "7.3.13", | ||
"@typescript-eslint/eslint-plugin": "5.51.0", | ||
"@types/nock": "^11.1.0", | ||
"@types/node": "20.2.5", | ||
"@types/semver": "7.5.0", | ||
"@types/sinon": "^10.0.15", | ||
"@typescript-eslint/eslint-plugin": "5.59.9", | ||
"@typescript-eslint/parser": "^5.59.9", | ||
"@unleash/client-specification": "4.2.2", | ||
"ava": "3.15.0", | ||
"ava": "5.3.0", | ||
"coveralls": "3.1.1", | ||
"cross-env": "7.0.3", | ||
"del-cli": "4.0.1", | ||
"eslint": "8.34.0", | ||
"del-cli": "5.0.0", | ||
"eslint": "8.42.0", | ||
"eslint-config-airbnb-base": "15.0.0", | ||
"eslint-config-airbnb-typescript": "12.3.1", | ||
"eslint-config-prettier": "8.6.0", | ||
"eslint-plugin-import": "2.27.5", | ||
"eslint-plugin-prettier": "4.0.0", | ||
"eslint-config-airbnb-typescript": "17.0.0", | ||
"eslint-config-prettier": "8.8.0", | ||
"eslint-import-resolver-typescript": "^3.5.5", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"esm": "3.2.25", | ||
"husky": "7.0.4", | ||
"lint-staged": "12.5.0", | ||
"husky": "8.0.3", | ||
"lint-staged": "13.2.2", | ||
"mkdirp": "3.0.1", | ||
"nock": "13.3.0", | ||
"nock": "13.3.1", | ||
"nyc": "15.1.0", | ||
"prettier": "2.8.4", | ||
"redis": "4.0.6", | ||
"sinon": "15.0.1", | ||
"typescript": "4.9.5" | ||
"prettier": "2.8.8", | ||
"redis": "4.6.7", | ||
"sinon": "15.1.0", | ||
"typescript": "5.1.3" | ||
}, | ||
@@ -127,12 +133,12 @@ "resolutions": { | ||
"ava": { | ||
"babel": true, | ||
"require": [ | ||
"esm" | ||
], | ||
"typescript": { | ||
"rewritePaths": { | ||
"src/": "lib/" | ||
}, | ||
"compile": false | ||
}, | ||
"files": [ | ||
"test/**/*", | ||
"!test/*_custom_strategy.js", | ||
"!test/fake_repo.js" | ||
"src/**/*.test.ts" | ||
] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
207929
145
2649
35
245560
1
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@npmcli/fs@3.1.1(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@4.3.06.2.1(transitive)
+ Addedcacache@17.1.4(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedfs-minipass@3.0.3(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedip@1.1.8(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedlru-cache@10.4.36.0.0(transitive)
+ Addedmake-fetch-happen@11.1.1(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedminipass-fetch@3.0.5(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedsemver@7.5.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedssri@10.0.6(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedunique-filename@3.0.0(transitive)
+ Addedunique-slug@4.0.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
- Removed@gar/promisify@1.1.3(transitive)
- Removed@npmcli/fs@2.1.2(transitive)
- Removed@npmcli/move-file@2.0.1(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcacache@16.1.3(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.38.1.0(transitive)
- Removedinfer-owner@1.0.4(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedip@1.1.9(transitive)
- Removedmake-fetch-happen@10.2.1(transitive)
- Removedminimatch@3.1.25.1.6(transitive)
- Removedminipass-fetch@2.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpromise-inflight@1.0.1(transitive)
- Removedrimraf@3.0.2(transitive)
- Removedsemver@7.6.3(transitive)
- Removedssri@9.0.1(transitive)
- Removedunique-filename@2.0.1(transitive)
- Removedunique-slug@3.0.0(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedip@1.1.8
Updatedmake-fetch-happen@11.1.1
Updatedmurmurhash3js@3.0.1
Updatedsemver@7.5.1