@becollective/utils 2.0.5 → 2.0.6

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.
@@ -26,6 +26,8 @@ const fetchFeatureActive = async (feature, options) => {
26
26
  return isFeatureActive;
27
27
  };
28
28
  class FeatureFlag {
29
+ ttl;
30
+ expiry;
29
31
  constructor(ttl) {
30
32
  this.ttl = ttl || 1000 * 60 * 5; // default to 5 minutes
31
33
  this.expiry = Date.now() + ttl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@becollective/utils",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Common utilities",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/tsconfig.json CHANGED
@@ -1,19 +1,16 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "lib": ["es2020"],
4
- "target": "es2020",
5
- "module": "commonjs",
6
- "allowSyntheticDefaultImports": true,
4
+ "target": "es2022",
7
5
  "isolatedModules": true,
8
- "module": "node20",
6
+ "module": "node16",
9
7
  "moduleResolution": "node16",
10
8
  "declaration": true,
11
9
  "outDir": "./lib",
12
10
  "rootDir": "./src",
13
11
  "strict": true,
14
12
  "noImplicitAny": false,
15
- "types": ["node","jest"],
16
- "esModuleInterop": true
13
+ "types": ["node","jest"]
17
14
  },
18
15
  "include": ["src"],
19
16
  "exclude": ["node_modules", "**/tests/*", "setup.ts"]
Binary file