posthog-js 1.34.0 → 1.34.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.
package/dist/module.d.ts CHANGED
@@ -189,6 +189,7 @@ interface PostHogConfig {
189
189
  _onCapture: (eventName: string, eventData: CaptureResult) => void;
190
190
  _capture_metrics: boolean;
191
191
  _capture_performance: boolean;
192
+ disable_compression: boolean;
192
193
  bootstrap: {
193
194
  distinctID?: string;
194
195
  isIdentifiedID?: boolean;
package/dist/module.js CHANGED
@@ -921,7 +921,7 @@ var LZString = {
921
921
  }
922
922
  };
923
923
 
924
- var version = "1.34.0";
924
+ var version = "1.34.1";
925
925
 
926
926
  // e.g. Config.DEBUG = Config.DEBUG || instance.get_config('debug')
927
927
 
@@ -4079,8 +4079,9 @@ var Decide = /*#__PURE__*/function () {
4079
4079
  (_this$instance$sessio = this.instance.sessionRecording) === null || _this$instance$sessio === void 0 ? void 0 : _this$instance$sessio.afterDecideResponse(response);
4080
4080
  autocapture.afterDecideResponse(response, this.instance);
4081
4081
  this.instance.featureFlags.receivedFeatureFlags(response);
4082
+ this.instance['compression'] = {};
4082
4083
 
4083
- if (response['supportedCompression']) {
4084
+ if (response['supportedCompression'] && !this.instance.get_config('disable_compression')) {
4084
4085
  var compression = {};
4085
4086
 
4086
4087
  var _iterator = _createForOfIteratorHelper(response['supportedCompression']),
@@ -4098,8 +4099,6 @@ var Decide = /*#__PURE__*/function () {
4098
4099
  }
4099
4100
 
4100
4101
  this.instance['compression'] = compression;
4101
- } else {
4102
- this.instance['compression'] = {};
4103
4102
  }
4104
4103
 
4105
4104
  if (response['siteApps']) {
@@ -6122,7 +6121,8 @@ var defaultConfig = function defaultConfig() {
6122
6121
  _capture_performance: false,
6123
6122
  name: 'posthog',
6124
6123
  callback_fn: 'posthog._jsc',
6125
- bootstrap: {}
6124
+ bootstrap: {},
6125
+ disable_compression: false
6126
6126
  };
6127
6127
  };
6128
6128
  /**