flagsmith-nodejs 2.2.2-beta.1 → 2.2.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@
9
9
  "version": "0.1.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "flagsmith-nodejs": "^2.0.0-beta.1",
12
+ "flagsmith-nodejs": "^2.2.2-beta.1",
13
13
  "node-cache": "^5.1.2",
14
14
  "ssg-node-express": "4.16.4",
15
15
  "ssg-util": "0.0.3"
@@ -478,16 +478,31 @@
478
478
  }
479
479
  },
480
480
  "node_modules/flagsmith-nodejs": {
481
- "version": "2.0.0-beta.1",
482
- "resolved": "https://registry.npmjs.org/flagsmith-nodejs/-/flagsmith-nodejs-2.0.0-beta.1.tgz",
483
- "integrity": "sha512-PZwLJJFvsLat+L2ovDNmJFbvSYs+HVKM0Ve6AkzTd6lqrhSTeqe2ZqWnjd7wvylx/fG6gv58sUMnV9gx07HNLg==",
481
+ "version": "2.2.2-beta.1",
482
+ "resolved": "https://registry.npmjs.org/flagsmith-nodejs/-/flagsmith-nodejs-2.2.2-beta.1.tgz",
483
+ "integrity": "sha512-bUAhcU/T6UmNpZXfUZ1D1KtkaidVrSNMXyjBiIASpureOtg1xaLyIrhD+S24RLpf/TBwyhhqmdupcmpeAf9uJw==",
484
484
  "dependencies": {
485
485
  "big-integer": "^1.6.51",
486
486
  "md5": "^2.3.0",
487
487
  "node-fetch": "^2.1.2",
488
+ "semver": "^7.3.7",
488
489
  "uuid": "^8.3.2"
489
490
  }
490
491
  },
492
+ "node_modules/flagsmith-nodejs/node_modules/semver": {
493
+ "version": "7.3.7",
494
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz",
495
+ "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==",
496
+ "dependencies": {
497
+ "lru-cache": "^6.0.0"
498
+ },
499
+ "bin": {
500
+ "semver": "bin/semver.js"
501
+ },
502
+ "engines": {
503
+ "node": ">=10"
504
+ }
505
+ },
491
506
  "node_modules/forwarded": {
492
507
  "version": "0.1.2",
493
508
  "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
@@ -714,6 +729,17 @@
714
729
  "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz",
715
730
  "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg=="
716
731
  },
732
+ "node_modules/lru-cache": {
733
+ "version": "6.0.0",
734
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
735
+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
736
+ "dependencies": {
737
+ "yallist": "^4.0.0"
738
+ },
739
+ "engines": {
740
+ "node": ">=10"
741
+ }
742
+ },
717
743
  "node_modules/md5": {
718
744
  "version": "2.3.0",
719
745
  "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz",
@@ -1320,6 +1346,11 @@
1320
1346
  "version": "1.0.2",
1321
1347
  "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1322
1348
  "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
1349
+ },
1350
+ "node_modules/yallist": {
1351
+ "version": "4.0.0",
1352
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
1353
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
1323
1354
  }
1324
1355
  },
1325
1356
  "dependencies": {
@@ -1684,14 +1715,25 @@
1684
1715
  }
1685
1716
  },
1686
1717
  "flagsmith-nodejs": {
1687
- "version": "2.0.0-beta.1",
1688
- "resolved": "https://registry.npmjs.org/flagsmith-nodejs/-/flagsmith-nodejs-2.0.0-beta.1.tgz",
1689
- "integrity": "sha512-PZwLJJFvsLat+L2ovDNmJFbvSYs+HVKM0Ve6AkzTd6lqrhSTeqe2ZqWnjd7wvylx/fG6gv58sUMnV9gx07HNLg==",
1718
+ "version": "2.2.2-beta.1",
1719
+ "resolved": "https://registry.npmjs.org/flagsmith-nodejs/-/flagsmith-nodejs-2.2.2-beta.1.tgz",
1720
+ "integrity": "sha512-bUAhcU/T6UmNpZXfUZ1D1KtkaidVrSNMXyjBiIASpureOtg1xaLyIrhD+S24RLpf/TBwyhhqmdupcmpeAf9uJw==",
1690
1721
  "requires": {
1691
1722
  "big-integer": "^1.6.51",
1692
1723
  "md5": "^2.3.0",
1693
1724
  "node-fetch": "^2.1.2",
1725
+ "semver": "^7.3.7",
1694
1726
  "uuid": "^8.3.2"
1727
+ },
1728
+ "dependencies": {
1729
+ "semver": {
1730
+ "version": "7.3.7",
1731
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz",
1732
+ "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==",
1733
+ "requires": {
1734
+ "lru-cache": "^6.0.0"
1735
+ }
1736
+ }
1695
1737
  }
1696
1738
  },
1697
1739
  "forwarded": {
@@ -1866,6 +1908,14 @@
1866
1908
  "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz",
1867
1909
  "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg=="
1868
1910
  },
1911
+ "lru-cache": {
1912
+ "version": "6.0.0",
1913
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
1914
+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
1915
+ "requires": {
1916
+ "yallist": "^4.0.0"
1917
+ }
1918
+ },
1869
1919
  "md5": {
1870
1920
  "version": "2.3.0",
1871
1921
  "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz",
@@ -2327,6 +2377,11 @@
2327
2377
  "version": "1.0.2",
2328
2378
  "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
2329
2379
  "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
2380
+ },
2381
+ "yallist": {
2382
+ "version": "4.0.0",
2383
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
2384
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
2330
2385
  }
2331
2386
  }
2332
2387
  }
@@ -15,7 +15,7 @@
15
15
  "npm": "3.10.x"
16
16
  },
17
17
  "dependencies": {
18
- "flagsmith-nodejs": "^2.0.0-beta.1",
18
+ "flagsmith-nodejs": "^2.2.2-beta.1",
19
19
  "node-cache": "^5.1.2",
20
20
  "ssg-node-express": "4.16.4",
21
21
  "ssg-util": "0.0.3"
@@ -1,6 +1,7 @@
1
1
  const Router = require('express').Router;
2
- const Flagsmith = require('../../../build');
2
+ const Flagsmith = require('flagsmith-nodejs').default;
3
3
  const environmentKey = '';
4
+
4
5
  const nodecache = require("node-cache");
5
6
 
6
7
  if (!environmentKey) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flagsmith-nodejs",
3
- "version": "2.2.2-beta.1",
3
+ "version": "2.2.2-beta.2",
4
4
  "description": "Flagsmith lets you manage features flags and remote config across web, mobile and server side applications. Deliver true Continuous Integration. Get builds out faster. Control who has access to new features.",
5
5
  "main": "build/index.js",
6
6
  "repository": {