@statsig/statsig-node-core 0.8.2 → 0.8.3
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 +9 -9
- package/statsig-generated.d.ts +12 -0
- package/statsig-generated.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statsig/statsig-node-core",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest --colors"
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
54
|
"optionalDependencies": {
|
|
55
|
-
"@statsig/statsig-node-core-linux-x64-musl": "0.8.
|
|
56
|
-
"@statsig/statsig-node-core-linux-x64-gnu": "0.8.
|
|
57
|
-
"@statsig/statsig-node-core-win32-x64-msvc": "0.8.
|
|
58
|
-
"@statsig/statsig-node-core-darwin-x64": "0.8.
|
|
59
|
-
"@statsig/statsig-node-core-win32-ia32-msvc": "0.8.
|
|
60
|
-
"@statsig/statsig-node-core-linux-arm64-musl": "0.8.
|
|
61
|
-
"@statsig/statsig-node-core-linux-arm64-gnu": "0.8.
|
|
62
|
-
"@statsig/statsig-node-core-darwin-arm64": "0.8.
|
|
55
|
+
"@statsig/statsig-node-core-linux-x64-musl": "0.8.3",
|
|
56
|
+
"@statsig/statsig-node-core-linux-x64-gnu": "0.8.3",
|
|
57
|
+
"@statsig/statsig-node-core-win32-x64-msvc": "0.8.3",
|
|
58
|
+
"@statsig/statsig-node-core-darwin-x64": "0.8.3",
|
|
59
|
+
"@statsig/statsig-node-core-win32-ia32-msvc": "0.8.3",
|
|
60
|
+
"@statsig/statsig-node-core-linux-arm64-musl": "0.8.3",
|
|
61
|
+
"@statsig/statsig-node-core-linux-arm64-gnu": "0.8.3",
|
|
62
|
+
"@statsig/statsig-node-core-darwin-arm64": "0.8.3"
|
|
63
63
|
}
|
|
64
64
|
}
|
package/statsig-generated.d.ts
CHANGED
|
@@ -119,6 +119,8 @@ export declare function __internal__testDataStore(store: DataStore, path: string
|
|
|
119
119
|
|
|
120
120
|
export declare function __internal__testObservabilityClient(client: ObservabilityClient, action: string, metricName: string, value: number, tags?: Record<string, string> | undefined | null): Promise<void>
|
|
121
121
|
|
|
122
|
+
export declare function __internal__testOutputLogger(logger: OutputLoggerProvider, action: string, tag?: string | undefined | null, message?: string | undefined | null): Promise<void>
|
|
123
|
+
|
|
122
124
|
export declare function __internal__testPersistentStorage(store: PersistentStorage, action: string, key?: string | undefined | null, configName?: string | undefined | null, data?: any | undefined | null): Promise<Record<string, string> | null>
|
|
123
125
|
|
|
124
126
|
export interface ClientInitResponseOptions {
|
|
@@ -190,6 +192,15 @@ export interface ObservabilityClient {
|
|
|
190
192
|
error?: (tag: string, error: string) => void
|
|
191
193
|
}
|
|
192
194
|
|
|
195
|
+
export interface OutputLoggerProvider {
|
|
196
|
+
initialize?: () => void
|
|
197
|
+
debug?: (tag: string, message: string) => void
|
|
198
|
+
info?: (tag: string, message: string) => void
|
|
199
|
+
warn?: (tag: string, message: string) => void
|
|
200
|
+
error?: (tag: string, message: string) => void
|
|
201
|
+
shutdown?: () => void
|
|
202
|
+
}
|
|
203
|
+
|
|
193
204
|
export interface OverrideAdapterConfig {
|
|
194
205
|
adapterType: OverrideAdapterType
|
|
195
206
|
}
|
|
@@ -250,6 +261,7 @@ export interface StatsigOptions {
|
|
|
250
261
|
logEventUrl?: string
|
|
251
262
|
observabilityClient?: ObservabilityClient
|
|
252
263
|
outputLogLevel?: 'none' | 'debug' | 'info' | 'warn' | 'error'
|
|
264
|
+
outputLoggerProvider?: OutputLoggerProvider
|
|
253
265
|
configCompressionMode?: 'gzip' | 'dictionary'
|
|
254
266
|
overrideAdapterConfig?: Array<OverrideAdapterConfig>
|
|
255
267
|
serviceName?: string
|
package/statsig-generated.js
CHANGED
|
@@ -372,5 +372,6 @@ module.exports.StatsigNapiInternal = nativeBinding.StatsigNapiInternal
|
|
|
372
372
|
module.exports.StatsigUser = nativeBinding.StatsigUser
|
|
373
373
|
module.exports.__internal__testDataStore = nativeBinding.__internal__testDataStore
|
|
374
374
|
module.exports.__internal__testObservabilityClient = nativeBinding.__internal__testObservabilityClient
|
|
375
|
+
module.exports.__internal__testOutputLogger = nativeBinding.__internal__testOutputLogger
|
|
375
376
|
module.exports.__internal__testPersistentStorage = nativeBinding.__internal__testPersistentStorage
|
|
376
377
|
module.exports.OverrideAdapterType = nativeBinding.OverrideAdapterType
|