expf-sigma-node.js 3.0.0 → 3.0.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/package.json +1 -1
- package/public/sigma.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expf-sigma-node.js",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
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
|
@@ -1309,6 +1309,9 @@ var Sigma = class {
|
|
|
1309
1309
|
if (!experiment)
|
|
1310
1310
|
return;
|
|
1311
1311
|
let id = null;
|
|
1312
|
+
if (!experiment.split_by) {
|
|
1313
|
+
experiment.split_by = "userId";
|
|
1314
|
+
}
|
|
1312
1315
|
switch (experiment.split_by) {
|
|
1313
1316
|
case "userId":
|
|
1314
1317
|
id = this.cache.get(sigmaUserId) || null;
|