expf-sigma-node.js 1.1.4 → 1.1.5
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/package.json +1 -1
- package/public/sigma.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expf-sigma-node.js",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "expf-sigma-node.js lets you manage features flags and remote config across web, server side applications. Deliver true Continuous Integration. Get builds out faster. Control who has access to new features.",
|
|
5
5
|
"main": "public/sigma.js",
|
|
6
6
|
"keywords": [
|
package/public/sigma.js
CHANGED
|
@@ -1045,7 +1045,8 @@ var Sigma = class {
|
|
|
1045
1045
|
this.cache.get("sigmaDataFileLastUpdate")
|
|
1046
1046
|
);
|
|
1047
1047
|
const currentTime = Math.floor(Date.now() / 1e3);
|
|
1048
|
-
|
|
1048
|
+
const userGeoCache = this.cache.parse(sigmaGeoData);
|
|
1049
|
+
if (currentTime > lastUpdate + this.cacheTTL || Object.keys(userGeoCache).length !== 0 || Object.keys(this.userData.geo).length !== 0) {
|
|
1049
1050
|
return true;
|
|
1050
1051
|
}
|
|
1051
1052
|
return false;
|