@statsig/statsig-node-core 0.8.7 → 0.8.8-beta.2509130225

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.8.7",
3
+ "version": "0.8.8-beta.2509130225",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "jest --colors"
@@ -9,6 +9,7 @@
9
9
  "author": "",
10
10
  "license": "ISC",
11
11
  "description": "",
12
+ "repository": "https://github.com/statsig-io/statsig-server-core.git",
12
13
  "dependencies": {
13
14
  "@octokit/core": "^6",
14
15
  "https-proxy-agent": "^7.0.6",
@@ -52,13 +53,13 @@
52
53
  ]
53
54
  },
54
55
  "optionalDependencies": {
55
- "@statsig/statsig-node-core-linux-x64-musl": "0.8.7",
56
- "@statsig/statsig-node-core-linux-x64-gnu": "0.8.7",
57
- "@statsig/statsig-node-core-win32-x64-msvc": "0.8.7",
58
- "@statsig/statsig-node-core-darwin-x64": "0.8.7",
59
- "@statsig/statsig-node-core-win32-ia32-msvc": "0.8.7",
60
- "@statsig/statsig-node-core-linux-arm64-musl": "0.8.7",
61
- "@statsig/statsig-node-core-linux-arm64-gnu": "0.8.7",
62
- "@statsig/statsig-node-core-darwin-arm64": "0.8.7"
56
+ "@statsig/statsig-node-core-linux-x64-musl": "0.8.8-beta.2509130225",
57
+ "@statsig/statsig-node-core-linux-x64-gnu": "0.8.8-beta.2509130225",
58
+ "@statsig/statsig-node-core-win32-x64-msvc": "0.8.8-beta.2509130225",
59
+ "@statsig/statsig-node-core-darwin-x64": "0.8.8-beta.2509130225",
60
+ "@statsig/statsig-node-core-win32-ia32-msvc": "0.8.8-beta.2509130225",
61
+ "@statsig/statsig-node-core-linux-arm64-musl": "0.8.8-beta.2509130225",
62
+ "@statsig/statsig-node-core-linux-arm64-gnu": "0.8.8-beta.2509130225",
63
+ "@statsig/statsig-node-core-darwin-arm64": "0.8.8-beta.2509130225"
63
64
  }
64
65
  }
@@ -55,6 +55,7 @@ export declare class StatsigNapiInternal {
55
55
  shutdown(timeoutMs?: number | undefined | null): Promise<StatsigResult>
56
56
  flushEvents(): Promise<StatsigResult>
57
57
  logEvent(user: StatsigUser, eventName: string, value?: string | number | null, metadata?: Record<string, string> | undefined | null): void
58
+ forwardLogLineEvent(user: StatsigUser, logLevel: 'trace' | 'debug' |'log' | 'info' | 'warn' | 'error', value?: string | undefined | null, metadata?: Record<string, string> | undefined | null): void
58
59
  checkGate(user: StatsigUser, gateName: string, options?: FeatureGateEvaluationOptions | undefined | null): boolean
59
60
  getFeatureGate(user: StatsigUser, featureName: string, options?: FeatureGateEvaluationOptions | undefined | null): FeatureGate
60
61
  getFieldsNeededForGate(gateName: string): Array<string>
@@ -87,6 +88,7 @@ export declare class StatsigNapiInternal {
87
88
  getDynamicConfigList(): Array<string>
88
89
  getExperimentList(): Array<string>
89
90
  getParameterStoreList(): Array<string>
91
+ getParsedUserAgentValueForUser(user: StatsigUser): Record<string, string | undefined | null> | null
90
92
  }
91
93
 
92
94
  export declare class StatsigUser {
@@ -167,6 +169,7 @@ export interface FeatureGate {
167
169
  value: boolean
168
170
  ruleID: string
169
171
  idType: string
172
+ details: EvaluationDetails
170
173
  }
171
174
 
172
175
  export interface FeatureGateEvaluationOptions {