@statsig/client-core 3.5.1 → 3.6.0-beta.1

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/client-core",
3
- "version": "3.5.1",
3
+ "version": "3.6.0-beta.1",
4
4
  "dependencies": {},
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -145,6 +145,10 @@ class EventLogger {
145
145
  metadata['gate'],
146
146
  metadata['config'],
147
147
  metadata['ruleID'],
148
+ metadata['allocatedExperiment'],
149
+ metadata['parameterName'],
150
+ String(metadata['isExplicitParameter']),
151
+ metadata['reason'],
148
152
  ].join('|');
149
153
  const previous = this._lastExposureTimeMap[key];
150
154
  const now = Date.now();
@@ -18,7 +18,9 @@ const _createExposure = (eventName, user, details, metadata, secondaryExposures)
18
18
  };
19
19
  };
20
20
  const _isExposureEvent = ({ eventName, }) => {
21
- return eventName === GATE_EXPOSURE_NAME || eventName === CONFIG_EXPOSURE_NAME;
21
+ return (eventName === GATE_EXPOSURE_NAME ||
22
+ eventName === CONFIG_EXPOSURE_NAME ||
23
+ eventName === LAYER_EXPOSURE_NAME);
22
24
  };
23
25
  exports._isExposureEvent = _isExposureEvent;
24
26
  const _createGateExposure = (user, gate) => {
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "3.5.1";
1
+ export declare const SDK_VERSION = "3.6.0-beta.1";
2
2
  export type StatsigMetadata = {
3
3
  readonly [key: string]: string | undefined;
4
4
  readonly appVersion?: string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StatsigMetadataProvider = exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = '3.5.1';
4
+ exports.SDK_VERSION = '3.6.0-beta.1';
5
5
  let metadata = {
6
6
  sdkVersion: exports.SDK_VERSION,
7
7
  sdkType: 'js-mono', // js-mono is overwritten by Precomp and OnDevice clients