@statsig/js-client 3.15.0 → 3.15.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statsig/js-client",
3
- "version": "3.15.0",
3
+ "version": "3.15.2",
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.0"
12
+ "@statsig/client-core": "3.15.2"
13
13
  },
14
14
  "jsdelivr": "./build/statsig-js-client.min.js",
15
15
  "type": "commonjs",
package/src/index.d.ts CHANGED
@@ -5,5 +5,5 @@ export * from '@statsig/client-core';
5
5
  export type { StatsigEnvironment, StatsigEvent, StatsigUser, InitializeResponse, StatsigPlugin, } from '@statsig/client-core';
6
6
  export type { StatsigOptions };
7
7
  export { StatsigClient };
8
- declare const _default: StatsigGlobal;
9
- export default _default;
8
+ declare const __STATSIG__: StatsigGlobal;
9
+ export default __STATSIG__;
package/src/index.js CHANGED
@@ -15,8 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.StatsigClient = void 0;
18
+ const client_core_1 = require("@statsig/client-core");
18
19
  const StatsigClient_1 = require("./StatsigClient");
19
20
  exports.StatsigClient = StatsigClient_1.default;
20
21
  __exportStar(require("@statsig/client-core"), exports);
21
- __STATSIG__ = Object.assign(Object.assign({}, (__STATSIG__ !== null && __STATSIG__ !== void 0 ? __STATSIG__ : {})), { StatsigClient: StatsigClient_1.default });
22
+ const __STATSIG__ = Object.assign((0, client_core_1._getStatsigGlobal)(), {
23
+ StatsigClient: StatsigClient_1.default,
24
+ });
22
25
  exports.default = __STATSIG__;