@statsig/client-core 1.5.0-beta.1 → 1.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statsig/client-core",
3
- "version": "1.5.0-beta.1",
3
+ "version": "1.6.0",
4
4
  "dependencies": {},
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -53,8 +53,8 @@ class EventLogger {
53
53
  _safeFlushAndForget(_sdkKey);
54
54
  }
55
55
  });
56
- // this._retryFailedLogs();
57
- // this._startBackgroundFlushInterval();
56
+ this._retryFailedLogs();
57
+ this._startBackgroundFlushInterval();
58
58
  }
59
59
  setLoggingDisabled(isDisabled) {
60
60
  this._isLoggingDisabled = isDisabled;
@@ -109,7 +109,7 @@ class EventLogger {
109
109
  if (Date.now() - this._creationTime > QUICK_FLUSH_WINDOW_MS) {
110
110
  return;
111
111
  }
112
- // setTimeout(() => _safeFlushAndForget(this._sdkKey), QUICK_FLUSH_WINDOW_MS);
112
+ setTimeout(() => _safeFlushAndForget(this._sdkKey), QUICK_FLUSH_WINDOW_MS);
113
113
  }
114
114
  _shouldLogEvent(event) {
115
115
  if (!(0, StatsigEvent_1._isExposureEvent)(event)) {
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "1.5.0-beta.1";
1
+ export declare const SDK_VERSION = "1.6.0";
2
2
  export type StatsigMetadata = {
3
3
  readonly [key: string]: string | undefined;
4
4
  readonly appVersion?: string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StatsigMetadataProvider = exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = '1.5.0-beta.1';
4
+ exports.SDK_VERSION = '1.6.0';
5
5
  let metadata = {
6
6
  sdkVersion: exports.SDK_VERSION,
7
7
  sdkType: 'js-mono', // js-mono is overwritten by Precomp and OnDevice clients