@statsig/statsig-node-core 0.19.9-beta.2607020303 → 0.19.9-beta.2607090302
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/index.d.ts +1 -0
- package/index.js +4 -0
- package/package.json +9 -9
- package/statsig-generated.d.ts +2 -0
package/index.d.ts
CHANGED
|
@@ -16,5 +16,6 @@ export declare class Statsig extends StatsigNapiInternal {
|
|
|
16
16
|
getDynamicConfig(user: StatsigUser, configName: string, options?: DynamicConfigEvaluationOptions): DynamicConfig;
|
|
17
17
|
getExperiment(user: StatsigUser, experimentName: string, options?: ExperimentEvaluationOptions): Experiment;
|
|
18
18
|
getExperimentByGroupName(experimentName: string, groupName: string): Experiment;
|
|
19
|
+
getExperimentByGroupIdAdvanced(experimentName: string, groupId: string): Experiment;
|
|
19
20
|
getLayer(user: StatsigUser, layerName: string, options?: LayerEvaluationOptions): Layer;
|
|
20
21
|
}
|
package/index.js
CHANGED
|
@@ -123,6 +123,10 @@ class Statsig extends statsig_generated_1.StatsigNapiInternal {
|
|
|
123
123
|
const raw = this.__INTERNAL_getExperimentByGroupName(experimentName, groupName);
|
|
124
124
|
return new statsig_types_1.Experiment(experimentName, raw);
|
|
125
125
|
}
|
|
126
|
+
getExperimentByGroupIdAdvanced(experimentName, groupId) {
|
|
127
|
+
const raw = this.__INTERNAL_getExperimentByGroupIdAdvanced(experimentName, groupId);
|
|
128
|
+
return new statsig_types_1.Experiment(experimentName, raw);
|
|
129
|
+
}
|
|
126
130
|
getLayer(user, layerName, options) {
|
|
127
131
|
const raw = this.__INTERNAL_getLayer(user, layerName, options);
|
|
128
132
|
const exposure = raw.__exposure;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statsig/statsig-node-core",
|
|
3
|
-
"version": "0.19.9-beta.
|
|
3
|
+
"version": "0.19.9-beta.2607090302",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest --colors"
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"optionalDependencies": {
|
|
63
|
-
"@statsig/statsig-node-core-linux-x64-musl": "0.19.9-beta.
|
|
64
|
-
"@statsig/statsig-node-core-linux-x64-gnu": "0.19.9-beta.
|
|
65
|
-
"@statsig/statsig-node-core-win32-x64-msvc": "0.19.9-beta.
|
|
66
|
-
"@statsig/statsig-node-core-darwin-x64": "0.19.9-beta.
|
|
67
|
-
"@statsig/statsig-node-core-win32-ia32-msvc": "0.19.9-beta.
|
|
68
|
-
"@statsig/statsig-node-core-linux-arm64-musl": "0.19.9-beta.
|
|
69
|
-
"@statsig/statsig-node-core-linux-arm64-gnu": "0.19.9-beta.
|
|
70
|
-
"@statsig/statsig-node-core-darwin-arm64": "0.19.9-beta.
|
|
63
|
+
"@statsig/statsig-node-core-linux-x64-musl": "0.19.9-beta.2607090302",
|
|
64
|
+
"@statsig/statsig-node-core-linux-x64-gnu": "0.19.9-beta.2607090302",
|
|
65
|
+
"@statsig/statsig-node-core-win32-x64-msvc": "0.19.9-beta.2607090302",
|
|
66
|
+
"@statsig/statsig-node-core-darwin-x64": "0.19.9-beta.2607090302",
|
|
67
|
+
"@statsig/statsig-node-core-win32-ia32-msvc": "0.19.9-beta.2607090302",
|
|
68
|
+
"@statsig/statsig-node-core-linux-arm64-musl": "0.19.9-beta.2607090302",
|
|
69
|
+
"@statsig/statsig-node-core-linux-arm64-gnu": "0.19.9-beta.2607090302",
|
|
70
|
+
"@statsig/statsig-node-core-darwin-arm64": "0.19.9-beta.2607090302"
|
|
71
71
|
}
|
|
72
72
|
}
|
package/statsig-generated.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare class StatsigNapiInternal {
|
|
|
29
29
|
getFieldsNeededForDynamicConfig(configName: string): Array<string>
|
|
30
30
|
__INTERNAL_getExperiment(user: StatsigUser, experimentName: string, options?: ExperimentEvaluationOptions | undefined | null): Record<string, unknown>
|
|
31
31
|
__INTERNAL_getExperimentByGroupName(experimentName: string, groupName: string): Record<string, unknown>
|
|
32
|
+
__INTERNAL_getExperimentByGroupIdAdvanced(experimentName: string, groupId: string): Record<string, unknown>
|
|
32
33
|
getFieldsNeededForExperiment(experimentName: string): Array<string>
|
|
33
34
|
__INTERNAL_getLayer(user: StatsigUser, layerName: string, options?: LayerEvaluationOptions | undefined | null): Record<string, unknown>
|
|
34
35
|
__INTERNAL_logLayerParamExposure(raw: LayerParamExposureData, paramName: string): void
|
|
@@ -249,6 +250,7 @@ export interface StatsigOptions {
|
|
|
249
250
|
fallbackToStatsigApi?: boolean
|
|
250
251
|
globalCustomFields?: Record<string, string | number | boolean | Array<string | number | boolean>>
|
|
251
252
|
idListsSyncIntervalMs?: number
|
|
253
|
+
idListsRequestTimeoutMs?: number
|
|
252
254
|
idListsUrl?: string
|
|
253
255
|
downloadIdListFileApi?: string
|
|
254
256
|
initTimeoutMs?: number
|