expf-sigma-node.js 0.1.3 → 0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/public/sigma.js +6 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expf-sigma-node.js",
3
- "version": "0.1.3",
3
+ "version": "0.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
@@ -6126,21 +6126,13 @@ var Sigma = class {
6126
6126
  case "not equal":
6127
6127
  return userValue.toLowerCase().trim() != conditionValues.toLowerCase().trim();
6128
6128
  case "greater":
6129
- return compareVersions(conditionValues.trim(), userValue.trim());
6130
- case "less":
6131
6129
  return compareVersions(userValue.trim(), conditionValues.trim());
6130
+ case "less":
6131
+ return compareVersions(conditionValues.trim(), userValue.trim());
6132
6132
  case "greater equal":
6133
- return compareVersions(
6134
- conditionValues.trim(),
6135
- userValue.trim(),
6136
- false
6137
- );
6133
+ return compareVersions(userValue.trim(), conditionValues.trim(), false);
6138
6134
  case "less equal":
6139
- return compareVersions(
6140
- userValue.trim(),
6141
- conditionValues.trim(),
6142
- false
6143
- );
6135
+ return compareVersions(conditionValues.trim(), userValue.trim(), false);
6144
6136
  case "any of":
6145
6137
  return conditionValues.includes(userValue);
6146
6138
  case "none of":
@@ -6316,7 +6308,8 @@ var Sigma = class {
6316
6308
  }
6317
6309
  if (!flag)
6318
6310
  return null;
6319
- return this.findingSpotCondition(flag, false, experiment);
6311
+ let flagExperimentFeatureValue = this.findingSpotCondition(flag, false, experiment);
6312
+ return doTypeConversion(flagExperiment.type, flagExperimentFeatureValue);
6320
6313
  };
6321
6314
  return {
6322
6315
  getParamValue,