expf-sigma-node.js 3.3.1 → 3.3.2

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 +18 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expf-sigma-node.js",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
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
@@ -1259,7 +1259,7 @@ function generateFilteredList(array, name) {
1259
1259
  }
1260
1260
 
1261
1261
  // package.json
1262
- var version = "3.3.1";
1262
+ var version = "3.3.2";
1263
1263
 
1264
1264
  // src/helpers/sdkVersion.js
1265
1265
  var sdkVersion = version;
@@ -1508,6 +1508,23 @@ var Sigma = class {
1508
1508
  return null;
1509
1509
  return this.findingSpotCondition(flag, this.sigmaUserData);
1510
1510
  }
1511
+ async getUserFeatureFlagsDetails() {
1512
+ const featureFlags = [];
1513
+ await this.updateCache();
1514
+ const sigmaDataLs = await this.cache.parse(sigmaDataFile);
1515
+ this.sigmaUserData.setGeo(this.geoCache.parse(sigmaGeoData));
1516
+ if (sigmaDataLs.feature_flags.length > 0) {
1517
+ for (const flag in sigmaDataLs.feature_flags) {
1518
+ const ffName = sigmaDataLs.feature_flags[flag].name;
1519
+ const ffValue = await this.checkFlag(ffName);
1520
+ featureFlags.push({
1521
+ name: ffName,
1522
+ value: ffValue
1523
+ });
1524
+ }
1525
+ }
1526
+ return featureFlags;
1527
+ }
1511
1528
  getExperimentByFeatureFlag(cache, flagName) {
1512
1529
  for (let i = 0; i < cache.experiments.length; i++) {
1513
1530
  if (cache.experiments[i].feature_flags.length) {