@statsig/client-core 1.8.0-beta.10 → 1.8.0-beta.11

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.8.0-beta.10",
3
+ "version": "1.8.0-beta.11",
4
4
  "dependencies": {},
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -131,6 +131,7 @@ class NetworkCore {
131
131
  }
132
132
  console.log('network success!!');
133
133
  if (!url.includes('https://prodregistryv2.org')) {
134
+ console.log('pushing success network event!!');
134
135
  this.networkEvents.push({
135
136
  value: isProxy ? 'proxy' : 'statsig',
136
137
  eventName: 'proxy::network_request_tracking',
@@ -151,6 +152,7 @@ class NetworkCore {
151
152
  catch (error) {
152
153
  console.log('network error!!', error);
153
154
  if (!url.includes('https://prodregistryv2.org')) {
155
+ console.log('pushing failure network event!!');
154
156
  this.networkEvents.push({
155
157
  value: isProxy ? 'proxy' : 'statsig',
156
158
  eventName: 'proxy::network_request_tracking',
@@ -231,10 +233,10 @@ class NetworkCore {
231
233
  }
232
234
  _flushNetworkEvents() {
233
235
  var _a;
236
+ console.log('flushing network events!!', this.networkEvents);
234
237
  if (this.networkEvents.length === 0) {
235
238
  return;
236
239
  }
237
- console.log('flushing network events!!', this.networkEvents);
238
240
  this.post({
239
241
  sdkKey: (_a = this.sdkKey) !== null && _a !== void 0 ? _a : '',
240
242
  url: 'https://prodregistryv2.org/v1/rgstr',
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "1.8.0-beta.10";
1
+ export declare const SDK_VERSION = "1.8.0-beta.11";
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.8.0-beta.10';
4
+ exports.SDK_VERSION = '1.8.0-beta.11';
5
5
  let metadata = {
6
6
  sdkVersion: exports.SDK_VERSION,
7
7
  sdkType: 'js-mono', // js-mono is overwritten by Precomp and OnDevice clients