posthog-node 2.2.1 → 2.2.3

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/lib/index.esm.js CHANGED
@@ -155,7 +155,7 @@ function __spreadArray(to, from, pack) {
155
155
  return to.concat(ar || Array.prototype.slice.call(from));
156
156
  }
157
157
 
158
- var version = "2.2.1";
158
+ var version = "2.2.3";
159
159
 
160
160
  var PostHogPersistedProperty;
161
161
  (function (PostHogPersistedProperty) {
@@ -733,7 +733,7 @@ var PostHogCore = /** @class */ (function () {
733
733
  retryCount: (_c = options === null || options === void 0 ? void 0 : options.fetchRetryCount) !== null && _c !== void 0 ? _c : 3,
734
734
  retryDelay: (_d = options === null || options === void 0 ? void 0 : options.fetchRetryDelay) !== null && _d !== void 0 ? _d : 3000,
735
735
  };
736
- this.requestTimeout = (_e = options === null || options === void 0 ? void 0 : options.requestTimeout) !== null && _e !== void 0 ? _e : 10;
736
+ this.requestTimeout = (_e = options === null || options === void 0 ? void 0 : options.requestTimeout) !== null && _e !== void 0 ? _e : 10000; // 10 seconds
737
737
  this._sessionExpirationTimeSeconds = (_f = options === null || options === void 0 ? void 0 : options.sessionExpirationTimeSeconds) !== null && _f !== void 0 ? _f : 1800; // 30 minutes
738
738
  // NOTE: It is important we don't initiate anything in the constructor as some async IO may still be underway on the parent
739
739
  if ((options === null || options === void 0 ? void 0 : options.preloadFeatureFlags) !== false) {
@@ -2001,7 +2001,7 @@ function () {
2001
2001
  pollingInterval: typeof options.featureFlagsPollingInterval === 'number' ? options.featureFlagsPollingInterval : THIRTY_SECONDS,
2002
2002
  personalApiKey: options.personalApiKey,
2003
2003
  projectApiKey: apiKey,
2004
- timeout: (_a = options.requestTimeout) !== null && _a !== void 0 ? _a : 10,
2004
+ timeout: (_a = options.requestTimeout) !== null && _a !== void 0 ? _a : 10000,
2005
2005
  host: this._sharedClient.host,
2006
2006
  fetch: options.fetch
2007
2007
  });