expf-sigma-node.js 0.1.8 → 0.1.10

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 +7 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expf-sigma-node.js",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
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
@@ -5598,6 +5598,7 @@ var SigmaUserData = class {
5598
5598
  },
5599
5599
  time: null,
5600
5600
  date: null,
5601
+ deviceCategory: null,
5601
5602
  featureFlags: []
5602
5603
  };
5603
5604
  }
@@ -5606,7 +5607,8 @@ var SigmaUserData = class {
5606
5607
  ip,
5607
5608
  email,
5608
5609
  appVersion,
5609
- custom
5610
+ custom,
5611
+ deviceCategory
5610
5612
  }) {
5611
5613
  this.user.userId = userId;
5612
5614
  this.user.ip = ip;
@@ -5615,6 +5617,7 @@ var SigmaUserData = class {
5615
5617
  this.user.custom = custom;
5616
5618
  this.user.time = Math.floor(new Date().getTime() / (1e3 * 60 * 60));
5617
5619
  this.user.date = Math.floor(new Date().getTime() / (1e3 * 60 * 60 * 60 * 24));
5620
+ this.user.deviceCategory = deviceCategory;
5618
5621
  this.getUserNavigator();
5619
5622
  }
5620
5623
  getUserNavigator() {
@@ -5919,7 +5922,8 @@ var Sigma = class {
5919
5922
  ip: this.userData.ip || null,
5920
5923
  email: this.userData.email || null,
5921
5924
  appVersion: this.userData.appVersion || null,
5922
- custom: this.userData.custom || null
5925
+ custom: this.userData.custom || null,
5926
+ deviceCategory: this.userData.deviceCategory || null
5923
5927
  });
5924
5928
  this.cache.set(sigmaUserId, this.userData.userId);
5925
5929
  this.setUserCookie();
@@ -6368,7 +6372,7 @@ var Sigma = class {
6368
6372
  this.cache.set(sigmaExperiments, result.slice(0, -1));
6369
6373
  return result.slice(0, -1);
6370
6374
  }
6371
- return false;
6375
+ return null;
6372
6376
  }
6373
6377
  findUserInForcedGroup(experiment) {
6374
6378
  let groupName = false;