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.
@@ -4715,7 +4715,7 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
4715
4715
  var makeRequest = /*#__PURE__*/function () {
4716
4716
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
4717
4717
  var _endpoints$entityType;
4718
- var axiosInstance, entityType, actionInput, params, payload, headers, userAgent, action, endpoint;
4718
+ var axiosInstance, entityType, actionInput, params, payload, headers, userAgent, action, endpoint, response;
4719
4719
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4720
4720
  while (1) switch (_context.prev = _context.next) {
4721
4721
  case 0:
@@ -4736,8 +4736,18 @@ var makeRequest = /*#__PURE__*/function () {
4736
4736
  'X-Contentful-User-Agent': userAgent
4737
4737
  } : {}));
4738
4738
  case 7:
4739
+ response = _context.sent;
4740
+ if (!(response instanceof ReadableStream)) {
4741
+ _context.next = 12;
4742
+ break;
4743
+ }
4744
+ _context.next = 11;
4745
+ return new Response(response).json();
4746
+ case 11:
4739
4747
  return _context.abrupt("return", _context.sent);
4740
- case 8:
4748
+ case 12:
4749
+ return _context.abrupt("return", response);
4750
+ case 13:
4741
4751
  case "end":
4742
4752
  return _context.stop();
4743
4753
  }
@@ -24290,7 +24300,7 @@ __webpack_require__.r(__webpack_exports__);
24290
24300
  */
24291
24301
  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
24292
24302
  let isRelativeUrl = !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__["default"])(requestedURL);
24293
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
24303
+ if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
24294
24304
  return (0,_helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__["default"])(baseURL, requestedURL);
24295
24305
  }
24296
24306
  return requestedURL;
@@ -24823,7 +24833,7 @@ __webpack_require__.r(__webpack_exports__);
24823
24833
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24824
24834
  /* harmony export */ VERSION: function() { return /* binding */ VERSION; }
24825
24835
  /* harmony export */ });
24826
- const VERSION = "1.8.4";
24836
+ const VERSION = "1.8.2";
24827
24837
 
24828
24838
  /***/ }),
24829
24839
 
@@ -25632,7 +25642,7 @@ __webpack_require__.r(__webpack_exports__);
25632
25642
 
25633
25643
  newConfig.headers = headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(headers);
25634
25644
 
25635
- 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);
25645
+ 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);
25636
25646
 
25637
25647
  // HTTP basic authentication
25638
25648
  if (auth) {
@@ -28692,7 +28702,7 @@ function createClient(params) {
28692
28702
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
28693
28703
  var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
28694
28704
  var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(// @ts-expect-error
28695
- "".concat(sdkMain, "/").concat("11.48.1"), params.application, params.integration, params.feature);
28705
+ "".concat(sdkMain, "/").concat("11.49.0-beta.1"), params.application, params.integration, params.feature);
28696
28706
  var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
28697
28707
  userAgent: userAgent
28698
28708
  }));