@statsig/statsig-node-core 0.1.0 → 0.2.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 +9 -9
- package/statsig-generated.d.ts +10 -5
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",
|
|
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",
|
|
48
|
+
"@statsig/statsig-node-core-linux-x64-gnu": "0.2.0",
|
|
49
|
+
"@statsig/statsig-node-core-win32-x64-msvc": "0.2.0",
|
|
50
|
+
"@statsig/statsig-node-core-darwin-x64": "0.2.0",
|
|
51
|
+
"@statsig/statsig-node-core-win32-ia32-msvc": "0.2.0",
|
|
52
|
+
"@statsig/statsig-node-core-linux-arm64-musl": "0.2.0",
|
|
53
|
+
"@statsig/statsig-node-core-linux-arm64-gnu": "0.2.0",
|
|
54
|
+
"@statsig/statsig-node-core-darwin-arm64": "0.2.0"
|
|
55
55
|
}
|
|
56
56
|
}
|
package/statsig-generated.d.ts
CHANGED
|
@@ -161,6 +161,7 @@ export interface ObservabilityClient {
|
|
|
161
161
|
increment?: (metricName: string, value: number, tags: Record<string, string>) => void
|
|
162
162
|
gauge?: (metricName: string, value: number, tags: Record<string, string>) => void
|
|
163
163
|
dist?: (metricName: string, value: number, tags: Record<string, string>) => void
|
|
164
|
+
error?: (tag: string, error: string) => void
|
|
164
165
|
}
|
|
165
166
|
|
|
166
167
|
export interface OverrideAdapterConfig {
|
|
@@ -190,24 +191,28 @@ export interface SpecAdapterConfig {
|
|
|
190
191
|
export interface StatsigOptions {
|
|
191
192
|
dataStore?: DataStore
|
|
192
193
|
disableAllLogging?: boolean
|
|
194
|
+
disableCountryLookup?: boolean
|
|
195
|
+
disableNetwork?: boolean
|
|
196
|
+
disableUserAgentParsing?: boolean
|
|
193
197
|
enableIdLists?: boolean
|
|
194
|
-
enableUserAgentParsing?: boolean
|
|
195
|
-
enableCountryLookup?: boolean
|
|
196
198
|
environment?: string
|
|
197
199
|
eventLoggingFlushIntervalMs?: number
|
|
198
200
|
eventLoggingMaxQueueSize?: number
|
|
199
201
|
fallbackToStatsigApi?: boolean
|
|
202
|
+
globalCustomFields?: Record<string, string | number | boolean | Array<string | number | boolean>>
|
|
200
203
|
idListsSyncIntervalMs?: number
|
|
201
204
|
idListsUrl?: string
|
|
202
205
|
initTimeoutMs?: number
|
|
203
206
|
logEventUrl?: string
|
|
204
207
|
observabilityClient?: ObservabilityClient
|
|
205
208
|
outputLogLevel?: 'none' | 'debug' | 'info' | 'warn' | 'error'
|
|
209
|
+
overrideAdapterConfig?: Array<OverrideAdapterConfig>
|
|
210
|
+
serviceName?: string
|
|
206
211
|
specAdaptersConfig?: Array<SpecAdapterConfig>
|
|
207
|
-
specsUrl?: string
|
|
208
212
|
specsSyncIntervalMs?: number
|
|
209
|
-
|
|
210
|
-
|
|
213
|
+
specsUrl?: string
|
|
214
|
+
waitForCountryLookupInit?: boolean
|
|
215
|
+
waitForUserAgentInit?: boolean
|
|
211
216
|
}
|
|
212
217
|
|
|
213
218
|
export interface StatsigResult {
|