@statsig/js-client 3.15.2 → 3.15.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statsig/js-client",
3
- "version": "3.15.2",
3
+ "version": "3.15.4",
4
4
  "license": "ISC",
5
5
  "homepage": "https://github.com/statsig-io/js-client-monorepo",
6
6
  "repository": {
@@ -9,7 +9,7 @@
9
9
  "directory": "packages/js-client"
10
10
  },
11
11
  "dependencies": {
12
- "@statsig/client-core": "3.15.2"
12
+ "@statsig/client-core": "3.15.4"
13
13
  },
14
14
  "jsdelivr": "./build/statsig-js-client.min.js",
15
15
  "type": "commonjs",
@@ -109,9 +109,10 @@ class EvaluationStore {
109
109
  };
110
110
  }
111
111
  _setWarningState(user, values) {
112
- var _a;
112
+ var _a, _b;
113
113
  const stableID = client_core_1.StableID.get(this._sdkKey);
114
- if (((_a = user.customIDs) === null || _a === void 0 ? void 0 : _a.stableID) !== stableID) {
114
+ if (((_a = user.customIDs) === null || _a === void 0 ? void 0 : _a.stableID) !== stableID && // don't throw if they're both undefined
115
+ (((_b = user.customIDs) === null || _b === void 0 ? void 0 : _b.stableID) || stableID)) {
115
116
  this._warnings.add('StableIDMismatch');
116
117
  return;
117
118
  }