@statsig/js-client 3.10.0 → 3.11.1

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.
@@ -54,7 +54,7 @@ class StatsigClient extends client_core_1.StatsigClientBase {
54
54
  * @param {FeatureGateEvaluationOptions} [options] - Optional. Additional options to customize the method call.
55
55
  * @returns {FeatureGate} - The {@link FeatureGate} object representing the gate's current evaluation results for the user.
56
56
  */
57
- this.getFeatureGate = this._memoize(this._getFeatureGateImpl.bind(this));
57
+ this.getFeatureGate = this._memoize(client_core_1.MemoPrefix._gate, this._getFeatureGateImpl.bind(this));
58
58
  /**
59
59
  * Retrieves the value of a dynamic config for the current user.
60
60
  *
@@ -62,7 +62,7 @@ class StatsigClient extends client_core_1.StatsigClientBase {
62
62
  * @param {DynamicConfigEvaluationOptions} [options] - Optional. Additional options to customize the method call.
63
63
  * @returns {DynamicConfig} - The {@link DynamicConfig} object representing the dynamic configs's current evaluation results for the user.
64
64
  */
65
- this.getDynamicConfig = this._memoize(this._getDynamicConfigImpl.bind(this));
65
+ this.getDynamicConfig = this._memoize(client_core_1.MemoPrefix._dynamicConfig, this._getDynamicConfigImpl.bind(this));
66
66
  /**
67
67
  * Retrieves the value of a experiment for the current user.
68
68
  *
@@ -70,7 +70,7 @@ class StatsigClient extends client_core_1.StatsigClientBase {
70
70
  * @param {ExperimentEvaluationOptions} [options] - Optional. Additional options to customize the method call.
71
71
  * @returns {Experiment} - The {@link Experiment} object representing the experiments's current evaluation results for the user.
72
72
  */
73
- this.getExperiment = this._memoize(this._getExperimentImpl.bind(this));
73
+ this.getExperiment = this._memoize(client_core_1.MemoPrefix._experiment, this._getExperimentImpl.bind(this));
74
74
  /**
75
75
  * Retrieves the value of a layer for the current user.
76
76
  *
@@ -78,7 +78,7 @@ class StatsigClient extends client_core_1.StatsigClientBase {
78
78
  * @param {LayerEvaluationOptions} [options] - Optional. Additional options to customize the method call.
79
79
  * @returns {Layer} - The {@link Layer} object representing the layers's current evaluation results for the user.
80
80
  */
81
- this.getLayer = this._memoize(this._getLayerImpl.bind(this));
81
+ this.getLayer = this._memoize(client_core_1.MemoPrefix._layer, this._getLayerImpl.bind(this));
82
82
  /**
83
83
  * Retrieves the value of a parameter store for the current user.
84
84
  *
@@ -86,7 +86,7 @@ class StatsigClient extends client_core_1.StatsigClientBase {
86
86
  * @param {ParameterStoreEvaluationOptions} [options] - Optional. Additional options to customize the method call.
87
87
  * @returns {ParameterStore} - The {@link ParameterStore} object representing the parameter store's current mappings for the user.
88
88
  */
89
- this.getParameterStore = this._memoize(this._getParameterStoreImpl.bind(this));
89
+ this.getParameterStore = this._memoize(client_core_1.MemoPrefix._paramStore, this._getParameterStoreImpl.bind(this));
90
90
  this._store = new EvaluationStore_1.default(sdkKey);
91
91
  this._network = network;
92
92
  this._user = this._configureUser(user, options);