contentful-management 11.48.0 → 11.48.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.
@@ -23597,6 +23597,15 @@ class Axios {
23597
23597
  }
23598
23598
  }
23599
23599
 
23600
+ // Set config.allowAbsoluteUrls
23601
+ if (config.allowAbsoluteUrls !== undefined) {
23602
+ // do nothing
23603
+ } else if (this.defaults.allowAbsoluteUrls !== undefined) {
23604
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
23605
+ } else {
23606
+ config.allowAbsoluteUrls = true;
23607
+ }
23608
+
23600
23609
  _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].assertOptions(config, {
23601
23610
  baseUrl: validators.spelling('baseURL'),
23602
23611
  withXsrfToken: validators.spelling('withXSRFToken')
@@ -23692,7 +23701,7 @@ class Axios {
23692
23701
 
23693
23702
  getUri(config) {
23694
23703
  config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this.defaults, config);
23695
- const fullPath = (0,_buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__["default"])(config.baseURL, config.url);
23704
+ const fullPath = (0,_buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__["default"])(config.baseURL, config.url, config.allowAbsoluteUrls);
23696
23705
  return (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__["default"])(fullPath, config.params, config.paramsSerializer);
23697
23706
  }
23698
23707
  }
@@ -24279,8 +24288,9 @@ __webpack_require__.r(__webpack_exports__);
24279
24288
  *
24280
24289
  * @returns {string} The combined full path
24281
24290
  */
24282
- function buildFullPath(baseURL, requestedURL) {
24283
- if (baseURL && !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__["default"])(requestedURL)) {
24291
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
24292
+ let isRelativeUrl = !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__["default"])(requestedURL);
24293
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
24284
24294
  return (0,_helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__["default"])(baseURL, requestedURL);
24285
24295
  }
24286
24296
  return requestedURL;
@@ -24813,7 +24823,7 @@ __webpack_require__.r(__webpack_exports__);
24813
24823
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24814
24824
  /* harmony export */ VERSION: function() { return /* binding */ VERSION; }
24815
24825
  /* harmony export */ });
24816
- const VERSION = "1.7.9";
24826
+ const VERSION = "1.8.4";
24817
24827
 
24818
24828
  /***/ }),
24819
24829
 
@@ -25622,7 +25632,7 @@ __webpack_require__.r(__webpack_exports__);
25622
25632
 
25623
25633
  newConfig.headers = headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(headers);
25624
25634
 
25625
- 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);
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);
25626
25636
 
25627
25637
  // HTTP basic authentication
25628
25638
  if (auth) {
@@ -27093,26 +27103,6 @@ const toFiniteNumber = (value, defaultValue) => {
27093
27103
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
27094
27104
  }
27095
27105
 
27096
- const ALPHA = 'abcdefghijklmnopqrstuvwxyz'
27097
-
27098
- const DIGIT = '0123456789';
27099
-
27100
- const ALPHABET = {
27101
- DIGIT,
27102
- ALPHA,
27103
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
27104
- }
27105
-
27106
- const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
27107
- let str = '';
27108
- const {length} = alphabet;
27109
- while (size--) {
27110
- str += alphabet[Math.random() * length|0]
27111
- }
27112
-
27113
- return str;
27114
- }
27115
-
27116
27106
  /**
27117
27107
  * If the thing is a FormData object, return true, otherwise return false.
27118
27108
  *
@@ -27240,8 +27230,6 @@ const asap = typeof queueMicrotask !== 'undefined' ?
27240
27230
  findKey,
27241
27231
  global: _global,
27242
27232
  isContextDefined,
27243
- ALPHABET,
27244
- generateString,
27245
27233
  isSpecCompliantForm,
27246
27234
  toJSONObject,
27247
27235
  isAsyncFn,
@@ -28704,7 +28692,7 @@ function createClient(params) {
28704
28692
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
28705
28693
  var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
28706
28694
  var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(// @ts-expect-error
28707
- "".concat(sdkMain, "/").concat("11.48.0"), params.application, params.integration, params.feature);
28695
+ "".concat(sdkMain, "/").concat("11.48.2"), params.application, params.integration, params.feature);
28708
28696
  var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
28709
28697
  userAgent: userAgent
28710
28698
  }));