contentful-management 11.48.1 → 11.49.0-beta.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.
@@ -4746,9 +4746,13 @@ const makeRequest = async ({
4746
4746
  if (endpoint === undefined) {
4747
4747
  throw new Error('Unknown endpoint');
4748
4748
  }
4749
- return await endpoint(axiosInstance, params, payload, _objectSpread(_objectSpread({}, headers), userAgent ? {
4749
+ const response = await endpoint(axiosInstance, params, payload, _objectSpread(_objectSpread({}, headers), userAgent ? {
4750
4750
  'X-Contentful-User-Agent': userAgent
4751
4751
  } : {}));
4752
+ if (response instanceof ReadableStream) {
4753
+ return await new Response(response).json();
4754
+ }
4755
+ return response;
4752
4756
  };
4753
4757
 
4754
4758
  /***/ }),
@@ -27110,7 +27114,7 @@ __webpack_require__.r(__webpack_exports__);
27110
27114
  */
27111
27115
  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
27112
27116
  let isRelativeUrl = !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__["default"])(requestedURL);
27113
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
27117
+ if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
27114
27118
  return (0,_helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__["default"])(baseURL, requestedURL);
27115
27119
  }
27116
27120
  return requestedURL;
@@ -27649,7 +27653,7 @@ __webpack_require__.r(__webpack_exports__);
27649
27653
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27650
27654
  /* harmony export */ VERSION: () => (/* binding */ VERSION)
27651
27655
  /* harmony export */ });
27652
- const VERSION = "1.8.4";
27656
+ const VERSION = "1.8.2";
27653
27657
 
27654
27658
  /***/ }),
27655
27659
 
@@ -28937,7 +28941,7 @@ __webpack_require__.r(__webpack_exports__);
28937
28941
 
28938
28942
  newConfig.headers = headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(headers);
28939
28943
 
28940
- newConfig.url = (0,_buildURL_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__["default"])(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
28944
+ newConfig.url = (0,_buildURL_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__["default"])(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
28941
28945
 
28942
28946
  // HTTP basic authentication
28943
28947
  if (auth) {
@@ -32036,7 +32040,7 @@ function createClient(params, opts = {}) {
32036
32040
  const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
32037
32041
  const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
32038
32042
  // @ts-expect-error
32039
- `${sdkMain}/${"11.48.1"}`, params.application, params.integration, params.feature);
32043
+ `${sdkMain}/${"11.49.0-beta.1"}`, params.application, params.integration, params.feature);
32040
32044
  const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
32041
32045
  userAgent
32042
32046
  }));