@statsig/js-client 3.8.2 → 3.9.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/build/statsig-js-client+session-replay+web-analytics.min.js +4 -4
- package/build/statsig-js-client+session-replay.min.js +4 -4
- package/build/statsig-js-client+web-analytics.min.js +1 -1
- package/build/statsig-js-client.min.js +1 -1
- package/package.json +2 -2
- package/src/StatsigClient.d.ts +93 -6
- package/src/StatsigClient.js +97 -79
package/src/StatsigClient.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataAdapterAsyncOptions, DataAdapterSyncOptions,
|
|
1
|
+
import { DataAdapterAsyncOptions, DataAdapterSyncOptions, EvaluationsDataAdapter, ExperimentEvaluationOptions, FeatureGateEvaluationOptions, PrecomputedEvaluationsContext, PrecomputedEvaluationsInterface, StatsigClientBase, StatsigEvent, StatsigUser } from '@statsig/client-core';
|
|
2
2
|
import type { StatsigOptions } from './StatsigOptions';
|
|
3
3
|
type AsyncUpdateOptions = DataAdapterAsyncOptions;
|
|
4
4
|
type SyncUpdateOptions = DataAdapterSyncOptions;
|
|
@@ -83,7 +83,13 @@ export default class StatsigClient extends StatsigClientBase<EvaluationsDataAdap
|
|
|
83
83
|
* @param {FeatureGateEvaluationOptions} [options] - Optional. Additional options to customize the method call.
|
|
84
84
|
* @returns {FeatureGate} - The {@link FeatureGate} object representing the gate's current evaluation results for the user.
|
|
85
85
|
*/
|
|
86
|
-
getFeatureGate(name: string, options?:
|
|
86
|
+
readonly getFeatureGate: (name: string, options?: import("@statsig/client-core").EvaluationOptionsCommon | undefined) => {
|
|
87
|
+
readonly name: string;
|
|
88
|
+
readonly ruleID: string;
|
|
89
|
+
readonly details: import("@statsig/client-core").EvaluationDetails;
|
|
90
|
+
readonly value: boolean;
|
|
91
|
+
readonly __evaluation: import("@statsig/client-core").GateEvaluation | null;
|
|
92
|
+
};
|
|
87
93
|
/**
|
|
88
94
|
* Retrieves the value of a dynamic config for the current user.
|
|
89
95
|
*
|
|
@@ -91,7 +97,27 @@ export default class StatsigClient extends StatsigClientBase<EvaluationsDataAdap
|
|
|
91
97
|
* @param {DynamicConfigEvaluationOptions} [options] - Optional. Additional options to customize the method call.
|
|
92
98
|
* @returns {DynamicConfig} - The {@link DynamicConfig} object representing the dynamic configs's current evaluation results for the user.
|
|
93
99
|
*/
|
|
94
|
-
getDynamicConfig(name: string, options?:
|
|
100
|
+
readonly getDynamicConfig: (name: string, options?: import("@statsig/client-core").EvaluationOptionsCommon | undefined) => {
|
|
101
|
+
readonly name: string;
|
|
102
|
+
readonly value: Record<string, unknown>;
|
|
103
|
+
readonly ruleID: string;
|
|
104
|
+
readonly details: import("@statsig/client-core").EvaluationDetails;
|
|
105
|
+
readonly __evaluation: {
|
|
106
|
+
id_type: string;
|
|
107
|
+
name: string;
|
|
108
|
+
rule_id: string;
|
|
109
|
+
secondary_exposures: import("@statsig/client-core").SecondaryExposure[];
|
|
110
|
+
value: Record<string, unknown>;
|
|
111
|
+
version?: string | undefined;
|
|
112
|
+
group_name?: string | undefined;
|
|
113
|
+
group: string;
|
|
114
|
+
is_device_based: boolean;
|
|
115
|
+
is_experiment_active?: boolean | undefined;
|
|
116
|
+
is_user_in_experiment?: boolean | undefined;
|
|
117
|
+
passed?: boolean | undefined;
|
|
118
|
+
} | null;
|
|
119
|
+
readonly get: import("@statsig/client-core").TypedGet;
|
|
120
|
+
};
|
|
95
121
|
/**
|
|
96
122
|
* Retrieves the value of a experiment for the current user.
|
|
97
123
|
*
|
|
@@ -99,7 +125,28 @@ export default class StatsigClient extends StatsigClientBase<EvaluationsDataAdap
|
|
|
99
125
|
* @param {ExperimentEvaluationOptions} [options] - Optional. Additional options to customize the method call.
|
|
100
126
|
* @returns {Experiment} - The {@link Experiment} object representing the experiments's current evaluation results for the user.
|
|
101
127
|
*/
|
|
102
|
-
getExperiment(name: string, options?: ExperimentEvaluationOptions)
|
|
128
|
+
readonly getExperiment: (name: string, options?: ExperimentEvaluationOptions | undefined) => {
|
|
129
|
+
readonly name: string;
|
|
130
|
+
readonly ruleID: string;
|
|
131
|
+
readonly details: import("@statsig/client-core").EvaluationDetails;
|
|
132
|
+
readonly value: Record<string, unknown>;
|
|
133
|
+
readonly groupName: string | null;
|
|
134
|
+
readonly __evaluation: {
|
|
135
|
+
id_type: string;
|
|
136
|
+
name: string;
|
|
137
|
+
rule_id: string;
|
|
138
|
+
secondary_exposures: import("@statsig/client-core").SecondaryExposure[];
|
|
139
|
+
value: Record<string, unknown>;
|
|
140
|
+
version?: string | undefined;
|
|
141
|
+
group_name?: string | undefined;
|
|
142
|
+
group: string;
|
|
143
|
+
is_device_based: boolean;
|
|
144
|
+
is_experiment_active?: boolean | undefined;
|
|
145
|
+
is_user_in_experiment?: boolean | undefined;
|
|
146
|
+
passed?: boolean | undefined;
|
|
147
|
+
} | null;
|
|
148
|
+
readonly get: import("@statsig/client-core").TypedGet;
|
|
149
|
+
};
|
|
103
150
|
/**
|
|
104
151
|
* Retrieves the value of a layer for the current user.
|
|
105
152
|
*
|
|
@@ -107,8 +154,43 @@ export default class StatsigClient extends StatsigClientBase<EvaluationsDataAdap
|
|
|
107
154
|
* @param {LayerEvaluationOptions} [options] - Optional. Additional options to customize the method call.
|
|
108
155
|
* @returns {Layer} - The {@link Layer} object representing the layers's current evaluation results for the user.
|
|
109
156
|
*/
|
|
110
|
-
getLayer(name: string, options?:
|
|
111
|
-
|
|
157
|
+
readonly getLayer: (name: string, options?: import("@statsig/client-core").EvaluationOptionsCommon | undefined) => {
|
|
158
|
+
readonly name: string;
|
|
159
|
+
readonly ruleID: string;
|
|
160
|
+
readonly details: import("@statsig/client-core").EvaluationDetails;
|
|
161
|
+
readonly groupName: string | null;
|
|
162
|
+
readonly __value: Record<string, unknown>;
|
|
163
|
+
readonly __evaluation: {
|
|
164
|
+
name: string;
|
|
165
|
+
rule_id: string;
|
|
166
|
+
secondary_exposures: import("@statsig/client-core").SecondaryExposure[];
|
|
167
|
+
value: Record<string, unknown>;
|
|
168
|
+
version?: string | undefined;
|
|
169
|
+
group_name?: string | undefined;
|
|
170
|
+
group: string;
|
|
171
|
+
is_device_based: boolean;
|
|
172
|
+
is_experiment_active?: boolean | undefined;
|
|
173
|
+
is_user_in_experiment?: boolean | undefined;
|
|
174
|
+
passed?: boolean | undefined;
|
|
175
|
+
allocated_experiment_name: string;
|
|
176
|
+
explicit_parameters: string[];
|
|
177
|
+
undelegated_secondary_exposures?: import("@statsig/client-core").SecondaryExposure[] | undefined;
|
|
178
|
+
} | null;
|
|
179
|
+
readonly get: import("@statsig/client-core").TypedGet;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Retrieves the value of a parameter store for the current user.
|
|
183
|
+
*
|
|
184
|
+
* @param {string} name The name of the parameter store to get.
|
|
185
|
+
* @param {ParameterStoreEvaluationOptions} [options] - Optional. Additional options to customize the method call.
|
|
186
|
+
* @returns {ParameterStore} - The {@link ParameterStore} object representing the parameter store's current mappings for the user.
|
|
187
|
+
*/
|
|
188
|
+
readonly getParameterStore: (name: string, options?: import("@statsig/client-core").EvaluationOptionsCommon | undefined) => {
|
|
189
|
+
readonly name: string;
|
|
190
|
+
readonly details: import("@statsig/client-core").EvaluationDetails;
|
|
191
|
+
readonly get: import("@statsig/client-core").TypedGet;
|
|
192
|
+
readonly __configuration: import("@statsig/client-core").ParamStoreConfig | null;
|
|
193
|
+
};
|
|
112
194
|
/**
|
|
113
195
|
* Logs an event to the internal logging system. This function allows logging by either passing a fully formed event object or by specifying the event name with optional value and metadata.
|
|
114
196
|
*
|
|
@@ -122,5 +204,10 @@ export default class StatsigClient extends StatsigClientBase<EvaluationsDataAdap
|
|
|
122
204
|
private _finalizeUpdate;
|
|
123
205
|
private _runPostUpdate;
|
|
124
206
|
private _resetForUser;
|
|
207
|
+
private _getFeatureGateImpl;
|
|
208
|
+
private _getDynamicConfigImpl;
|
|
209
|
+
private _getExperimentImpl;
|
|
210
|
+
private _getLayerImpl;
|
|
211
|
+
private _getParameterStoreImpl;
|
|
125
212
|
}
|
|
126
213
|
export {};
|
package/src/StatsigClient.js
CHANGED
|
@@ -47,6 +47,46 @@ class StatsigClient extends client_core_1.StatsigClientBase {
|
|
|
47
47
|
this.$emt(e);
|
|
48
48
|
});
|
|
49
49
|
super(sdkKey, (_a = options === null || options === void 0 ? void 0 : options.dataAdapter) !== null && _a !== void 0 ? _a : new StatsigEvaluationsDataAdapter_1.StatsigEvaluationsDataAdapter(), network, options);
|
|
50
|
+
/**
|
|
51
|
+
* Retrieves the value of a feature gate for the current user, represented as a {@link FeatureGate} object.
|
|
52
|
+
*
|
|
53
|
+
* @param {string} name - The name of the feature gate to retrieve.
|
|
54
|
+
* @param {FeatureGateEvaluationOptions} [options] - Optional. Additional options to customize the method call.
|
|
55
|
+
* @returns {FeatureGate} - The {@link FeatureGate} object representing the gate's current evaluation results for the user.
|
|
56
|
+
*/
|
|
57
|
+
this.getFeatureGate = this._memoize(this._getFeatureGateImpl.bind(this));
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves the value of a dynamic config for the current user.
|
|
60
|
+
*
|
|
61
|
+
* @param {string} name The name of the dynamic config to get.
|
|
62
|
+
* @param {DynamicConfigEvaluationOptions} [options] - Optional. Additional options to customize the method call.
|
|
63
|
+
* @returns {DynamicConfig} - The {@link DynamicConfig} object representing the dynamic configs's current evaluation results for the user.
|
|
64
|
+
*/
|
|
65
|
+
this.getDynamicConfig = this._memoize(this._getDynamicConfigImpl.bind(this));
|
|
66
|
+
/**
|
|
67
|
+
* Retrieves the value of a experiment for the current user.
|
|
68
|
+
*
|
|
69
|
+
* @param {string} name The name of the experiment to get.
|
|
70
|
+
* @param {ExperimentEvaluationOptions} [options] - Optional. Additional options to customize the method call.
|
|
71
|
+
* @returns {Experiment} - The {@link Experiment} object representing the experiments's current evaluation results for the user.
|
|
72
|
+
*/
|
|
73
|
+
this.getExperiment = this._memoize(this._getExperimentImpl.bind(this));
|
|
74
|
+
/**
|
|
75
|
+
* Retrieves the value of a layer for the current user.
|
|
76
|
+
*
|
|
77
|
+
* @param {string} name The name of the layer to get.
|
|
78
|
+
* @param {LayerEvaluationOptions} [options] - Optional. Additional options to customize the method call.
|
|
79
|
+
* @returns {Layer} - The {@link Layer} object representing the layers's current evaluation results for the user.
|
|
80
|
+
*/
|
|
81
|
+
this.getLayer = this._memoize(this._getLayerImpl.bind(this));
|
|
82
|
+
/**
|
|
83
|
+
* Retrieves the value of a parameter store for the current user.
|
|
84
|
+
*
|
|
85
|
+
* @param {string} name The name of the parameter store to get.
|
|
86
|
+
* @param {ParameterStoreEvaluationOptions} [options] - Optional. Additional options to customize the method call.
|
|
87
|
+
* @returns {ParameterStore} - The {@link ParameterStore} object representing the parameter store's current mappings for the user.
|
|
88
|
+
*/
|
|
89
|
+
this.getParameterStore = this._memoize(this._getParameterStoreImpl.bind(this));
|
|
50
90
|
this._store = new EvaluationStore_1.default(sdkKey);
|
|
51
91
|
this._user = (0, client_core_1._normalizeUser)(user, options);
|
|
52
92
|
const plugins = (_b = options === null || options === void 0 ? void 0 : options.plugins) !== null && _b !== void 0 ? _b : [];
|
|
@@ -173,85 +213,6 @@ class StatsigClient extends client_core_1.StatsigClientBase {
|
|
|
173
213
|
checkGate(name, options) {
|
|
174
214
|
return this.getFeatureGate(name, options).value;
|
|
175
215
|
}
|
|
176
|
-
/**
|
|
177
|
-
* Retrieves the value of a feature gate for the current user, represented as a {@link FeatureGate} object.
|
|
178
|
-
*
|
|
179
|
-
* @param {string} name - The name of the feature gate to retrieve.
|
|
180
|
-
* @param {FeatureGateEvaluationOptions} [options] - Optional. Additional options to customize the method call.
|
|
181
|
-
* @returns {FeatureGate} - The {@link FeatureGate} object representing the gate's current evaluation results for the user.
|
|
182
|
-
*/
|
|
183
|
-
getFeatureGate(name, options) {
|
|
184
|
-
var _a, _b;
|
|
185
|
-
const { result: evaluation, details } = this._store.getGate(name);
|
|
186
|
-
const gate = (0, client_core_1._makeFeatureGate)(name, details, evaluation);
|
|
187
|
-
const overridden = (_b = (_a = this.overrideAdapter) === null || _a === void 0 ? void 0 : _a.getGateOverride) === null || _b === void 0 ? void 0 : _b.call(_a, gate, this._user, options);
|
|
188
|
-
const result = overridden !== null && overridden !== void 0 ? overridden : gate;
|
|
189
|
-
this._enqueueExposure(name, (0, client_core_1._createGateExposure)(this._user, result), options);
|
|
190
|
-
this.$emt({ name: 'gate_evaluation', gate: result });
|
|
191
|
-
return result;
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Retrieves the value of a dynamic config for the current user.
|
|
195
|
-
*
|
|
196
|
-
* @param {string} name The name of the dynamic config to get.
|
|
197
|
-
* @param {DynamicConfigEvaluationOptions} [options] - Optional. Additional options to customize the method call.
|
|
198
|
-
* @returns {DynamicConfig} - The {@link DynamicConfig} object representing the dynamic configs's current evaluation results for the user.
|
|
199
|
-
*/
|
|
200
|
-
getDynamicConfig(name, options) {
|
|
201
|
-
var _a, _b;
|
|
202
|
-
const { result: evaluation, details } = this._store.getConfig(name);
|
|
203
|
-
const config = (0, client_core_1._makeDynamicConfig)(name, details, evaluation);
|
|
204
|
-
const overridden = (_b = (_a = this.overrideAdapter) === null || _a === void 0 ? void 0 : _a.getDynamicConfigOverride) === null || _b === void 0 ? void 0 : _b.call(_a, config, this._user, options);
|
|
205
|
-
const result = overridden !== null && overridden !== void 0 ? overridden : config;
|
|
206
|
-
this._enqueueExposure(name, (0, client_core_1._createConfigExposure)(this._user, result), options);
|
|
207
|
-
this.$emt({ name: 'dynamic_config_evaluation', dynamicConfig: result });
|
|
208
|
-
return result;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Retrieves the value of a experiment for the current user.
|
|
212
|
-
*
|
|
213
|
-
* @param {string} name The name of the experiment to get.
|
|
214
|
-
* @param {ExperimentEvaluationOptions} [options] - Optional. Additional options to customize the method call.
|
|
215
|
-
* @returns {Experiment} - The {@link Experiment} object representing the experiments's current evaluation results for the user.
|
|
216
|
-
*/
|
|
217
|
-
getExperiment(name, options) {
|
|
218
|
-
var _a, _b;
|
|
219
|
-
const { result: evaluation, details } = this._store.getConfig(name);
|
|
220
|
-
const experiment = (0, client_core_1._makeExperiment)(name, details, evaluation);
|
|
221
|
-
const overridden = (_b = (_a = this.overrideAdapter) === null || _a === void 0 ? void 0 : _a.getExperimentOverride) === null || _b === void 0 ? void 0 : _b.call(_a, experiment, this._user, options);
|
|
222
|
-
const result = overridden !== null && overridden !== void 0 ? overridden : experiment;
|
|
223
|
-
this._enqueueExposure(name, (0, client_core_1._createConfigExposure)(this._user, result), options);
|
|
224
|
-
this.$emt({ name: 'experiment_evaluation', experiment: result });
|
|
225
|
-
return result;
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* Retrieves the value of a layer for the current user.
|
|
229
|
-
*
|
|
230
|
-
* @param {string} name The name of the layer to get.
|
|
231
|
-
* @param {LayerEvaluationOptions} [options] - Optional. Additional options to customize the method call.
|
|
232
|
-
* @returns {Layer} - The {@link Layer} object representing the layers's current evaluation results for the user.
|
|
233
|
-
*/
|
|
234
|
-
getLayer(name, options) {
|
|
235
|
-
var _a, _b, _c;
|
|
236
|
-
const { result: evaluation, details } = this._store.getLayer(name);
|
|
237
|
-
const layer = (0, client_core_1._makeLayer)(name, details, evaluation);
|
|
238
|
-
const overridden = (_b = (_a = this.overrideAdapter) === null || _a === void 0 ? void 0 : _a.getLayerOverride) === null || _b === void 0 ? void 0 : _b.call(_a, layer, this._user, options);
|
|
239
|
-
const result = (0, client_core_1._mergeOverride)(layer, overridden, (_c = overridden === null || overridden === void 0 ? void 0 : overridden.__value) !== null && _c !== void 0 ? _c : layer.__value, (param) => {
|
|
240
|
-
this._enqueueExposure(name, (0, client_core_1._createLayerParameterExposure)(this._user, result, param), options);
|
|
241
|
-
});
|
|
242
|
-
this.$emt({ name: 'layer_evaluation', layer: result });
|
|
243
|
-
return result;
|
|
244
|
-
}
|
|
245
|
-
getParameterStore(name, options) {
|
|
246
|
-
const { result: configuration, details } = this._store.getParamStore(name);
|
|
247
|
-
this._logger.incrementNonExposureCount(name);
|
|
248
|
-
return {
|
|
249
|
-
name,
|
|
250
|
-
details,
|
|
251
|
-
__configuration: configuration,
|
|
252
|
-
get: (0, ParamStoreGetterFactory_1._makeParamStoreGetter)(this, configuration, options),
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
216
|
/**
|
|
256
217
|
* Logs an event to the internal logging system. This function allows logging by either passing a fully formed event object or by specifying the event name with optional value and metadata.
|
|
257
218
|
*
|
|
@@ -304,5 +265,62 @@ class StatsigClient extends client_core_1.StatsigClientBase {
|
|
|
304
265
|
client_core_1.StableID.setOverride(stableIdOverride, this._sdkKey);
|
|
305
266
|
}
|
|
306
267
|
}
|
|
268
|
+
_getFeatureGateImpl(name, options) {
|
|
269
|
+
var _a, _b;
|
|
270
|
+
const { result: evaluation, details } = this._store.getGate(name);
|
|
271
|
+
const gate = (0, client_core_1._makeFeatureGate)(name, details, evaluation);
|
|
272
|
+
const overridden = (_b = (_a = this.overrideAdapter) === null || _a === void 0 ? void 0 : _a.getGateOverride) === null || _b === void 0 ? void 0 : _b.call(_a, gate, this._user, options);
|
|
273
|
+
const result = overridden !== null && overridden !== void 0 ? overridden : gate;
|
|
274
|
+
this._enqueueExposure(name, (0, client_core_1._createGateExposure)(this._user, result), options);
|
|
275
|
+
this.$emt({ name: 'gate_evaluation', gate: result });
|
|
276
|
+
return result;
|
|
277
|
+
}
|
|
278
|
+
_getDynamicConfigImpl(name, options) {
|
|
279
|
+
var _a, _b;
|
|
280
|
+
const { result: evaluation, details } = this._store.getConfig(name);
|
|
281
|
+
const config = (0, client_core_1._makeDynamicConfig)(name, details, evaluation);
|
|
282
|
+
const overridden = (_b = (_a = this.overrideAdapter) === null || _a === void 0 ? void 0 : _a.getDynamicConfigOverride) === null || _b === void 0 ? void 0 : _b.call(_a, config, this._user, options);
|
|
283
|
+
const result = overridden !== null && overridden !== void 0 ? overridden : config;
|
|
284
|
+
this._enqueueExposure(name, (0, client_core_1._createConfigExposure)(this._user, result), options);
|
|
285
|
+
this.$emt({ name: 'dynamic_config_evaluation', dynamicConfig: result });
|
|
286
|
+
return result;
|
|
287
|
+
}
|
|
288
|
+
_getExperimentImpl(name, options) {
|
|
289
|
+
var _a, _b;
|
|
290
|
+
const { result: evaluation, details } = this._store.getConfig(name);
|
|
291
|
+
const experiment = (0, client_core_1._makeExperiment)(name, details, evaluation);
|
|
292
|
+
const overridden = (_b = (_a = this.overrideAdapter) === null || _a === void 0 ? void 0 : _a.getExperimentOverride) === null || _b === void 0 ? void 0 : _b.call(_a, experiment, this._user, options);
|
|
293
|
+
const result = overridden !== null && overridden !== void 0 ? overridden : experiment;
|
|
294
|
+
this._enqueueExposure(name, (0, client_core_1._createConfigExposure)(this._user, result), options);
|
|
295
|
+
this.$emt({ name: 'experiment_evaluation', experiment: result });
|
|
296
|
+
return result;
|
|
297
|
+
}
|
|
298
|
+
_getLayerImpl(name, options) {
|
|
299
|
+
var _a, _b, _c;
|
|
300
|
+
const { result: evaluation, details } = this._store.getLayer(name);
|
|
301
|
+
const layer = (0, client_core_1._makeLayer)(name, details, evaluation);
|
|
302
|
+
const overridden = (_b = (_a = this.overrideAdapter) === null || _a === void 0 ? void 0 : _a.getLayerOverride) === null || _b === void 0 ? void 0 : _b.call(_a, layer, this._user, options);
|
|
303
|
+
if (options === null || options === void 0 ? void 0 : options.disableExposureLog) {
|
|
304
|
+
this._logger.incrementNonExposureCount(name);
|
|
305
|
+
}
|
|
306
|
+
const result = (0, client_core_1._mergeOverride)(layer, overridden, (_c = overridden === null || overridden === void 0 ? void 0 : overridden.__value) !== null && _c !== void 0 ? _c : layer.__value, (param) => {
|
|
307
|
+
if (options === null || options === void 0 ? void 0 : options.disableExposureLog) {
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
this._enqueueExposure(name, (0, client_core_1._createLayerParameterExposure)(this._user, result, param), options);
|
|
311
|
+
});
|
|
312
|
+
this.$emt({ name: 'layer_evaluation', layer: result });
|
|
313
|
+
return result;
|
|
314
|
+
}
|
|
315
|
+
_getParameterStoreImpl(name, options) {
|
|
316
|
+
const { result: configuration, details } = this._store.getParamStore(name);
|
|
317
|
+
this._logger.incrementNonExposureCount(name);
|
|
318
|
+
return {
|
|
319
|
+
name,
|
|
320
|
+
details,
|
|
321
|
+
__configuration: configuration,
|
|
322
|
+
get: (0, ParamStoreGetterFactory_1._makeParamStoreGetter)(this, configuration, options),
|
|
323
|
+
};
|
|
324
|
+
}
|
|
307
325
|
}
|
|
308
326
|
exports.default = StatsigClient;
|