expf-sigma-node.js 0.0.7 → 0.0.8
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 +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expf-sigma-node.js",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
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
|
@@ -6148,7 +6148,7 @@ var Sigma = class {
|
|
|
6148
6148
|
const md5R = MD5.hex(String(userId) + salt);
|
|
6149
6149
|
const R = this.digestHash(md5R) * zeta / max_decimal_64;
|
|
6150
6150
|
let md5L = null;
|
|
6151
|
-
if (!layer
|
|
6151
|
+
if (!layer && !layerBounds.length || forcedExp) {
|
|
6152
6152
|
return this.getUserGroup(R, exposureRate, controlBucketPerc, forcedExp);
|
|
6153
6153
|
} else {
|
|
6154
6154
|
md5L = MD5.hex(String(userId) + layer);
|
|
@@ -6236,7 +6236,7 @@ var Sigma = class {
|
|
|
6236
6236
|
let paramValue = null;
|
|
6237
6237
|
for (let item in params.values) {
|
|
6238
6238
|
if (params.values[item].group === groupName) {
|
|
6239
|
-
paramValue = params.values[item].value;
|
|
6239
|
+
paramValue = this.doTypeConversion(params.type, params.values[item].value);
|
|
6240
6240
|
}
|
|
6241
6241
|
}
|
|
6242
6242
|
if (!paramValue) {
|
|
@@ -6391,7 +6391,7 @@ var Sigma = class {
|
|
|
6391
6391
|
if (type === "bool") {
|
|
6392
6392
|
return value === "true" ? true : false;
|
|
6393
6393
|
}
|
|
6394
|
-
if (type === "integer")
|
|
6394
|
+
if (type === "integer" || type === "number")
|
|
6395
6395
|
return parseFloat(value);
|
|
6396
6396
|
return value;
|
|
6397
6397
|
}
|