contentful-management 11.39.1 → 11.39.2

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.
@@ -4456,7 +4456,11 @@ class RestAdapter {
4456
4456
  if (!params.accessToken) {
4457
4457
  throw new TypeError('Expected parameter accessToken');
4458
4458
  }
4459
- this.params = _objectSpread(_objectSpread({}, defaultHostParameters), (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(params));
4459
+ const copiedParams = (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(params);
4460
+ // httpAgent and httpsAgent cannot be copied because they can contain private fields
4461
+ copiedParams.httpAgent = params.httpAgent;
4462
+ copiedParams.httpsAgent = params.httpsAgent;
4463
+ this.params = _objectSpread(_objectSpread({}, defaultHostParameters), copiedParams);
4460
4464
  this.axiosInstance = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createHttpClient)(axios__WEBPACK_IMPORTED_MODULE_3__["default"], _objectSpread(_objectSpread({}, this.params), {}, {
4461
4465
  headers: _objectSpread(_objectSpread({
4462
4466
  'Content-Type': 'application/vnd.contentful.management.v1+json'
@@ -30738,7 +30742,7 @@ function createClient(params, opts = {}) {
30738
30742
  const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
30739
30743
  const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
30740
30744
  // @ts-expect-error
30741
- `${sdkMain}/${"11.39.1"}`, params.application, params.integration, params.feature);
30745
+ `${sdkMain}/${"11.39.2"}`, params.application, params.integration, params.feature);
30742
30746
  const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
30743
30747
  userAgent
30744
30748
  }));