statsig-node-vercel 0.8.0 → 0.8.1
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.
package/EdgeConfigDataAdapter.ts
CHANGED
|
@@ -91,6 +91,11 @@ export class EdgeConfigDataAdapter implements IDataAdapter {
|
|
|
91
91
|
private isConfgSpecKey(key: string): boolean {
|
|
92
92
|
const v2CacheKeyPattern =
|
|
93
93
|
/^statsig\|\/v[12]\/download_config_specs\|.+\|.+/;
|
|
94
|
-
return
|
|
94
|
+
return (
|
|
95
|
+
key === "statsig.cache" ||
|
|
96
|
+
key === '/v1/download_config_specs' ||
|
|
97
|
+
key === '/v2/download_config_specs' ||
|
|
98
|
+
v2CacheKeyPattern.test(key)
|
|
99
|
+
);
|
|
95
100
|
}
|
|
96
101
|
}
|
|
@@ -65,7 +65,10 @@ class EdgeConfigDataAdapter {
|
|
|
65
65
|
}
|
|
66
66
|
isConfgSpecKey(key) {
|
|
67
67
|
const v2CacheKeyPattern = /^statsig\|\/v[12]\/download_config_specs\|.+\|.+/;
|
|
68
|
-
return key === "statsig.cache" ||
|
|
68
|
+
return (key === "statsig.cache" ||
|
|
69
|
+
key === '/v1/download_config_specs' ||
|
|
70
|
+
key === '/v2/download_config_specs' ||
|
|
71
|
+
v2CacheKeyPattern.test(key));
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
exports.EdgeConfigDataAdapter = EdgeConfigDataAdapter;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "statsig-node-vercel",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"@types/node": "^20.14.10",
|
|
31
31
|
"@vercel/edge-config": "^1.0.0",
|
|
32
32
|
"jest": "^29.7.0",
|
|
33
|
-
"jest-fetch-mock": "^3.0.3"
|
|
34
|
-
"typescript": "^5.9.3"
|
|
33
|
+
"jest-fetch-mock": "^3.0.3"
|
|
35
34
|
}
|
|
36
35
|
}
|