@kontent-ai/core-sdk 10.9.0 → 10.10.0

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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sdkInfo = void 0;
4
4
  exports.sdkInfo = {
5
5
  host: 'npmjs.com',
6
- version: '10.9.0',
6
+ version: '10.10.0',
7
7
  name: '@kontent-ai/core-sdk'
8
8
  };
9
9
  //# sourceMappingURL=sdk-info.generated.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-info.generated.js","sourceRoot":"","sources":["../../lib/sdk-info.generated.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAa;IAC7B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,sBAAsB;CAC/B,CAAC"}
1
+ {"version":3,"file":"sdk-info.generated.js","sourceRoot":"","sources":["../../lib/sdk-info.generated.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAa;IAC7B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,sBAAsB;CAC/B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export const sdkInfo = {
2
2
  host: 'npmjs.com',
3
- version: '10.9.0',
3
+ version: '10.10.0',
4
4
  name: '@kontent-ai/core-sdk'
5
5
  };
6
6
  //# sourceMappingURL=sdk-info.generated.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-info.generated.js","sourceRoot":"","sources":["../../lib/sdk-info.generated.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAa;IAC7B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,sBAAsB;CAC/B,CAAC"}
1
+ {"version":3,"file":"sdk-info.generated.js","sourceRoot":"","sources":["../../lib/sdk-info.generated.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAa;IAC7B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,sBAAsB;CAC/B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export const sdkInfo = {
2
2
  host: 'npmjs.com',
3
- version: '10.9.0',
3
+ version: '10.10.0',
4
4
  name: '@kontent-ai/core-sdk'
5
5
  };
6
6
  //# sourceMappingURL=sdk-info.generated.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-info.generated.js","sourceRoot":"","sources":["../../lib/sdk-info.generated.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAa;IAC7B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,sBAAsB;CAC/B,CAAC"}
1
+ {"version":3,"file":"sdk-info.generated.js","sourceRoot":"","sources":["../../lib/sdk-info.generated.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAa;IAC7B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,sBAAsB;CAC/B,CAAC"}
@@ -899,7 +899,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
899
899
  \***************************************************/
900
900
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
901
901
 
902
- // Axios v1.7.9 Copyright (c) 2024 Matt Zabriskie and contributors
902
+ /*! Axios v1.8.2 Copyright (c) 2025 Matt Zabriskie and contributors */
903
903
 
904
904
 
905
905
  function bind(fn, thisArg) {
@@ -1508,26 +1508,6 @@ const toFiniteNumber = (value, defaultValue) => {
1508
1508
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
1509
1509
  };
1510
1510
 
1511
- const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
1512
-
1513
- const DIGIT = '0123456789';
1514
-
1515
- const ALPHABET = {
1516
- DIGIT,
1517
- ALPHA,
1518
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
1519
- };
1520
-
1521
- const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
1522
- let str = '';
1523
- const {length} = alphabet;
1524
- while (size--) {
1525
- str += alphabet[Math.random() * length|0];
1526
- }
1527
-
1528
- return str;
1529
- };
1530
-
1531
1511
  /**
1532
1512
  * If the thing is a FormData object, return true, otherwise return false.
1533
1513
  *
@@ -1655,8 +1635,6 @@ var utils$1 = {
1655
1635
  findKey,
1656
1636
  global: _global,
1657
1637
  isContextDefined,
1658
- ALPHABET,
1659
- generateString,
1660
1638
  isSpecCompliantForm,
1661
1639
  toJSONObject,
1662
1640
  isAsyncFn,
@@ -3149,8 +3127,9 @@ function combineURLs(baseURL, relativeURL) {
3149
3127
  *
3150
3128
  * @returns {string} The combined full path
3151
3129
  */
3152
- function buildFullPath(baseURL, requestedURL) {
3153
- if (baseURL && !isAbsoluteURL(requestedURL)) {
3130
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
3131
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
3132
+ if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
3154
3133
  return combineURLs(baseURL, requestedURL);
3155
3134
  }
3156
3135
  return requestedURL;
@@ -3990,7 +3969,7 @@ function dispatchRequest(config) {
3990
3969
  });
3991
3970
  }
3992
3971
 
3993
- const VERSION = "1.7.9";
3972
+ const VERSION = "1.8.2";
3994
3973
 
3995
3974
  const validators$1 = {};
3996
3975
 
@@ -4175,6 +4154,13 @@ class Axios {
4175
4154
  }
4176
4155
  }
4177
4156
 
4157
+ // Set config.allowAbsoluteUrls
4158
+ if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
4159
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
4160
+ } else {
4161
+ config.allowAbsoluteUrls = true;
4162
+ }
4163
+
4178
4164
  validator.assertOptions(config, {
4179
4165
  baseUrl: validators.spelling('baseURL'),
4180
4166
  withXsrfToken: validators.spelling('withXSRFToken')
@@ -4270,7 +4256,7 @@ class Axios {
4270
4256
 
4271
4257
  getUri(config) {
4272
4258
  config = mergeConfig(this.defaults, config);
4273
- const fullPath = buildFullPath(config.baseURL, config.url);
4259
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
4274
4260
  return buildURL(fullPath, config.params, config.paramsSerializer);
4275
4261
  }
4276
4262
  }