@statsig/statsig-node-core 0.1.0-beta.4 → 0.2.0-beta.250418
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/statsig-node-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0-beta.250418",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest --colors",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
]
|
|
45
45
|
},
|
|
46
46
|
"optionalDependencies": {
|
|
47
|
-
"@statsig/statsig-node-core-linux-x64-musl": "0.
|
|
48
|
-
"@statsig/statsig-node-core-linux-x64-gnu": "0.
|
|
49
|
-
"@statsig/statsig-node-core-win32-x64-msvc": "0.
|
|
50
|
-
"@statsig/statsig-node-core-darwin-x64": "0.
|
|
51
|
-
"@statsig/statsig-node-core-win32-ia32-msvc": "0.
|
|
52
|
-
"@statsig/statsig-node-core-linux-arm64-musl": "0.
|
|
53
|
-
"@statsig/statsig-node-core-linux-arm64-gnu": "0.
|
|
54
|
-
"@statsig/statsig-node-core-darwin-arm64": "0.
|
|
47
|
+
"@statsig/statsig-node-core-linux-x64-musl": "0.2.0-beta.250418",
|
|
48
|
+
"@statsig/statsig-node-core-linux-x64-gnu": "0.2.0-beta.250418",
|
|
49
|
+
"@statsig/statsig-node-core-win32-x64-msvc": "0.2.0-beta.250418",
|
|
50
|
+
"@statsig/statsig-node-core-darwin-x64": "0.2.0-beta.250418",
|
|
51
|
+
"@statsig/statsig-node-core-win32-ia32-msvc": "0.2.0-beta.250418",
|
|
52
|
+
"@statsig/statsig-node-core-linux-arm64-musl": "0.2.0-beta.250418",
|
|
53
|
+
"@statsig/statsig-node-core-linux-arm64-gnu": "0.2.0-beta.250418",
|
|
54
|
+
"@statsig/statsig-node-core-darwin-arm64": "0.2.0-beta.250418"
|
|
55
55
|
}
|
|
56
56
|
}
|
package/statsig-generated.d.ts
CHANGED
|
@@ -38,6 +38,12 @@ export declare class Layer {
|
|
|
38
38
|
getSecondaryExposures(): Array<SecondaryExposure> | null
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
export declare class ParameterStore {
|
|
42
|
+
name: string
|
|
43
|
+
getValue<T>(paramName: string, fallback?: T): T
|
|
44
|
+
getEvaluationDetails(): EvaluationDetails
|
|
45
|
+
}
|
|
46
|
+
|
|
41
47
|
export declare class StatsigNapiInternal {
|
|
42
48
|
constructor(networkFunc: NapiNetworkFunc, sdkKey: string, options?: StatsigOptions | undefined | null)
|
|
43
49
|
initialize(): Promise<StatsigResult>
|
|
@@ -53,6 +59,7 @@ export declare class StatsigNapiInternal {
|
|
|
53
59
|
getFieldsNeededForExperiment(experimentName: string): Array<string>
|
|
54
60
|
getLayer(user: StatsigUser, layerName: string, options?: LayerEvaluationOptions | undefined | null): Layer
|
|
55
61
|
getFieldsNeededForLayer(layerName: string): Array<string>
|
|
62
|
+
getParameterStore(user: StatsigUser, parameterStoreName: string, options?: ParameterStoreEvaluationOptions | undefined | null): ParameterStore
|
|
56
63
|
getClientInitializeResponse(user: StatsigUser, options?: ClientInitResponseOptions | undefined | null): string
|
|
57
64
|
manuallyLogFeatureGateExposure(user: StatsigUser, gateName: string): void
|
|
58
65
|
manuallyLogDynamicConfigExposure(user: StatsigUser, configName: string): void
|
|
@@ -154,6 +161,7 @@ export interface ObservabilityClient {
|
|
|
154
161
|
increment?: (metricName: string, value: number, tags: Record<string, string>) => void
|
|
155
162
|
gauge?: (metricName: string, value: number, tags: Record<string, string>) => void
|
|
156
163
|
dist?: (metricName: string, value: number, tags: Record<string, string>) => void
|
|
164
|
+
error?: (tag: string, error: string) => void
|
|
157
165
|
}
|
|
158
166
|
|
|
159
167
|
export interface OverrideAdapterConfig {
|
|
@@ -164,6 +172,10 @@ export declare const enum OverrideAdapterType {
|
|
|
164
172
|
LocalOverride = 0
|
|
165
173
|
}
|
|
166
174
|
|
|
175
|
+
export interface ParameterStoreEvaluationOptions {
|
|
176
|
+
disableExposureLogging?: boolean
|
|
177
|
+
}
|
|
178
|
+
|
|
167
179
|
export interface SecondaryExposure {
|
|
168
180
|
gate: string
|
|
169
181
|
gateValue: string
|
|
@@ -179,24 +191,28 @@ export interface SpecAdapterConfig {
|
|
|
179
191
|
export interface StatsigOptions {
|
|
180
192
|
dataStore?: DataStore
|
|
181
193
|
disableAllLogging?: boolean
|
|
194
|
+
disableCountryLookup?: boolean
|
|
195
|
+
disableNetwork?: boolean
|
|
196
|
+
disableUserAgentParsing?: boolean
|
|
182
197
|
enableIdLists?: boolean
|
|
183
|
-
enableUserAgentParsing?: boolean
|
|
184
|
-
enableCountryLookup?: boolean
|
|
185
198
|
environment?: string
|
|
186
199
|
eventLoggingFlushIntervalMs?: number
|
|
187
200
|
eventLoggingMaxQueueSize?: number
|
|
188
201
|
fallbackToStatsigApi?: boolean
|
|
202
|
+
globalCustomFields?: Record<string, string | number | boolean | Array<string | number | boolean>>
|
|
189
203
|
idListsSyncIntervalMs?: number
|
|
190
204
|
idListsUrl?: string
|
|
191
205
|
initTimeoutMs?: number
|
|
192
206
|
logEventUrl?: string
|
|
193
207
|
observabilityClient?: ObservabilityClient
|
|
194
208
|
outputLogLevel?: 'none' | 'debug' | 'info' | 'warn' | 'error'
|
|
209
|
+
overrideAdapterConfig?: Array<OverrideAdapterConfig>
|
|
210
|
+
serviceName?: string
|
|
195
211
|
specAdaptersConfig?: Array<SpecAdapterConfig>
|
|
196
|
-
specsUrl?: string
|
|
197
212
|
specsSyncIntervalMs?: number
|
|
198
|
-
|
|
199
|
-
|
|
213
|
+
specsUrl?: string
|
|
214
|
+
waitForCountryLookupInit?: boolean
|
|
215
|
+
waitForUserAgentInit?: boolean
|
|
200
216
|
}
|
|
201
217
|
|
|
202
218
|
export interface StatsigResult {
|
package/statsig-generated.js
CHANGED
|
@@ -367,6 +367,7 @@ if (!nativeBinding) {
|
|
|
367
367
|
module.exports.DynamicConfig = nativeBinding.DynamicConfig
|
|
368
368
|
module.exports.Experiment = nativeBinding.Experiment
|
|
369
369
|
module.exports.Layer = nativeBinding.Layer
|
|
370
|
+
module.exports.ParameterStore = nativeBinding.ParameterStore
|
|
370
371
|
module.exports.StatsigNapiInternal = nativeBinding.StatsigNapiInternal
|
|
371
372
|
module.exports.StatsigUser = nativeBinding.StatsigUser
|
|
372
373
|
module.exports.__internal__testDataStore = nativeBinding.__internal__testDataStore
|
|
File without changes
|