@statsig/statsig-node-core 0.0.6-beta.8 → 0.0.7
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 +7 -7
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare class DynamicConfig {
|
|
|
5
5
|
value: Record<string, any>
|
|
6
6
|
ruleID: string
|
|
7
7
|
idType: string
|
|
8
|
-
|
|
8
|
+
getValue(param_name: string, fallback: boolean | number | string | object | Array<any> | null): any
|
|
9
9
|
getRuleId(): string
|
|
10
10
|
getIdType(): string
|
|
11
11
|
getEvaluationDetails(): EvaluationDetails
|
|
@@ -18,7 +18,7 @@ export declare class Experiment {
|
|
|
18
18
|
ruleID: string
|
|
19
19
|
idType: string
|
|
20
20
|
groupName?: string
|
|
21
|
-
|
|
21
|
+
getValue(param_name: string, fallback: boolean | number | string | object | Array<any> | null): any
|
|
22
22
|
getRuleId(): string
|
|
23
23
|
getIdType(): string
|
|
24
24
|
getGroupName(): string | null
|
|
@@ -31,7 +31,7 @@ export declare class Layer {
|
|
|
31
31
|
ruleID: string
|
|
32
32
|
groupName?: string
|
|
33
33
|
allocatedExperimentName?: string
|
|
34
|
-
|
|
34
|
+
getValue(param_name: string, fallback: boolean | number | string | object | Array<any> | null): any
|
|
35
35
|
getRuleId(): string
|
|
36
36
|
getGroupName(): string | null
|
|
37
37
|
getEvaluationDetails(): EvaluationDetails
|
|
@@ -66,9 +66,9 @@ export declare class Statsig {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export declare class StatsigUser {
|
|
69
|
-
constructor(args: StatsigUserArgs)
|
|
69
|
+
constructor(args: ({userID: string} | {customIDs: Record<string, string> }) & StatsigUserArgs)
|
|
70
70
|
static withUserID(userId: string): StatsigUser
|
|
71
|
-
static withCustomIDs(customIds: Record<string,
|
|
71
|
+
static withCustomIDs(customIds: Record<string, string>): StatsigUser
|
|
72
72
|
get customIDs(): Record<string, string> | null
|
|
73
73
|
set customIDs(value: Record<string, string> | null)
|
|
74
74
|
get custom(): Record<string, string> | null
|
|
@@ -199,8 +199,8 @@ export interface StatsigResult {
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
export interface StatsigUserArgs {
|
|
202
|
-
userID
|
|
203
|
-
customIDs
|
|
202
|
+
userID?: string
|
|
203
|
+
customIDs?: Record<string, string>
|
|
204
204
|
email?: string
|
|
205
205
|
ip?: string
|
|
206
206
|
userAgent?: string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statsig/statsig-node-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest --colors",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"optionalDependencies": {
|
|
43
|
-
"@statsig/statsig-node-core-win32-x64-msvc": "0.0.
|
|
44
|
-
"@statsig/statsig-node-core-win32-ia32-msvc": "0.0.
|
|
45
|
-
"@statsig/statsig-node-core-linux-x64-musl": "0.0.
|
|
46
|
-
"@statsig/statsig-node-core-linux-x64-gnu": "0.0.
|
|
47
|
-
"@statsig/statsig-node-core-linux-arm64-musl": "0.0.
|
|
48
|
-
"@statsig/statsig-node-core-linux-arm64-gnu": "0.0.
|
|
49
|
-
"@statsig/statsig-node-core-darwin-x64": "0.0.
|
|
50
|
-
"@statsig/statsig-node-core-darwin-arm64": "0.0.
|
|
43
|
+
"@statsig/statsig-node-core-win32-x64-msvc": "0.0.7",
|
|
44
|
+
"@statsig/statsig-node-core-win32-ia32-msvc": "0.0.7",
|
|
45
|
+
"@statsig/statsig-node-core-linux-x64-musl": "0.0.7",
|
|
46
|
+
"@statsig/statsig-node-core-linux-x64-gnu": "0.0.7",
|
|
47
|
+
"@statsig/statsig-node-core-linux-arm64-musl": "0.0.7",
|
|
48
|
+
"@statsig/statsig-node-core-linux-arm64-gnu": "0.0.7",
|
|
49
|
+
"@statsig/statsig-node-core-darwin-x64": "0.0.7",
|
|
50
|
+
"@statsig/statsig-node-core-darwin-arm64": "0.0.7"
|
|
51
51
|
}
|
|
52
52
|
}
|