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/es.js CHANGED
@@ -917,7 +917,7 @@ var LZString = {
917
917
  }
918
918
  };
919
919
 
920
- var version = "1.34.0";
920
+ var version = "1.34.1";
921
921
 
922
922
  // e.g. Config.DEBUG = Config.DEBUG || instance.get_config('debug')
923
923
 
@@ -4075,8 +4075,9 @@ var Decide = /*#__PURE__*/function () {
4075
4075
  (_this$instance$sessio = this.instance.sessionRecording) === null || _this$instance$sessio === void 0 ? void 0 : _this$instance$sessio.afterDecideResponse(response);
4076
4076
  autocapture.afterDecideResponse(response, this.instance);
4077
4077
  this.instance.featureFlags.receivedFeatureFlags(response);
4078
+ this.instance['compression'] = {};
4078
4079
 
4079
- if (response['supportedCompression']) {
4080
+ if (response['supportedCompression'] && !this.instance.get_config('disable_compression')) {
4080
4081
  var compression = {};
4081
4082
 
4082
4083
  var _iterator = _createForOfIteratorHelper(response['supportedCompression']),
@@ -4094,8 +4095,6 @@ var Decide = /*#__PURE__*/function () {
4094
4095
  }
4095
4096
 
4096
4097
  this.instance['compression'] = compression;
4097
- } else {
4098
- this.instance['compression'] = {};
4099
4098
  }
4100
4099
 
4101
4100
  if (response['siteApps']) {
@@ -6118,7 +6117,8 @@ var defaultConfig = function defaultConfig() {
6118
6117
  _capture_performance: false,
6119
6118
  name: 'posthog',
6120
6119
  callback_fn: 'posthog._jsc',
6121
- bootstrap: {}
6120
+ bootstrap: {},
6121
+ disable_compression: false
6122
6122
  };
6123
6123
  };
6124
6124
  /**