@statsig/client-core 3.5.0 → 3.6.0
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
package/src/EventLogger.js
CHANGED
|
@@ -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();
|
package/src/NetworkConfig.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type Endpoint = (typeof Endpoint)[keyof typeof Endpoint];
|
|
|
7
7
|
export declare const NetworkDefault: {
|
|
8
8
|
rgstr: "https://prodregistryv2.org/v1";
|
|
9
9
|
initialize: "https://featureassets.org/v1";
|
|
10
|
-
download_config_specs: "https://
|
|
10
|
+
download_config_specs: "https://api.statsigcdn.com/v1";
|
|
11
11
|
};
|
|
12
12
|
export type NetworkPriority = 'high' | 'low' | 'auto';
|
|
13
13
|
export type NetworkArgs = RequestInit & {
|
package/src/NetworkConfig.js
CHANGED
|
@@ -9,7 +9,7 @@ exports.Endpoint = {
|
|
|
9
9
|
exports.NetworkDefault = {
|
|
10
10
|
[exports.Endpoint._rgstr]: 'https://prodregistryv2.org/v1',
|
|
11
11
|
[exports.Endpoint._initialize]: 'https://featureassets.org/v1',
|
|
12
|
-
[exports.Endpoint._download_config_specs]: 'https://
|
|
12
|
+
[exports.Endpoint._download_config_specs]: 'https://api.statsigcdn.com/v1',
|
|
13
13
|
};
|
|
14
14
|
exports.NetworkParam = {
|
|
15
15
|
EventCount: 'ec',
|
package/src/StatsigEvent.js
CHANGED
|
@@ -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 ||
|
|
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) => {
|
package/src/StatsigMetadata.d.ts
CHANGED
package/src/StatsigMetadata.js
CHANGED
|
@@ -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.
|
|
4
|
+
exports.SDK_VERSION = '3.6.0';
|
|
5
5
|
let metadata = {
|
|
6
6
|
sdkVersion: exports.SDK_VERSION,
|
|
7
7
|
sdkType: 'js-mono', // js-mono is overwritten by Precomp and OnDevice clients
|