@statsig/js-client 3.12.2 → 3.13.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.
@@ -18,9 +18,14 @@ class StatsigEvaluationsDataAdapter extends client_core_1.DataAdapterCore {
18
18
  this._network = null;
19
19
  this._options = null;
20
20
  }
21
- attach(sdkKey, options) {
22
- super.attach(sdkKey, options);
23
- this._network = new Network_1.default(options !== null && options !== void 0 ? options : {});
21
+ attach(sdkKey, options, network) {
22
+ super.attach(sdkKey, options, network);
23
+ if (network !== null && network instanceof Network_1.default) {
24
+ this._network = network;
25
+ }
26
+ else {
27
+ this._network = new Network_1.default(options !== null && options !== void 0 ? options : {});
28
+ }
24
29
  }
25
30
  getDataAsync(current, user, options) {
26
31
  return this._getDataAsyncImpl(current, (0, client_core_1._normalizeUser)(user, this._options), options);