expf-sigma-node.js 0.1.7 → 0.1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/public/sigma.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expf-sigma-node.js",
3
- "version": "0.1.7",
3
+ "version": "0.1.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
@@ -6091,7 +6091,9 @@ var Sigma = class {
6091
6091
  let flag = null;
6092
6092
  const expName = this.getExperimentByFeatureFlag(cacheKey, flagName);
6093
6093
  if (expName) {
6094
- return await this.getExperiment(expName).then((res) => res.getFeatureValue(flagName));
6094
+ const experimentByFlag = await this.getExperiment(expName).then((res) => res.getFeatureValue(flagName));
6095
+ if (experimentByFlag)
6096
+ return experimentByFlag;
6095
6097
  }
6096
6098
  for (let i = 0; i < cacheKey.feature_flags.length; i++) {
6097
6099
  if (cacheKey.feature_flags[i]["name"] === flagName) {