@kontent-ai/core-sdk 10.10.1 → 10.11.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.10.1',
6
+ version: '10.11.0',
7
7
  name: '@kontent-ai/core-sdk'
8
8
  };
9
9
  //# sourceMappingURL=sdk-info.generated.js.map
@@ -1,6 +1,6 @@
1
1
  export const sdkInfo = {
2
2
  host: 'npmjs.com',
3
- version: '10.10.1',
3
+ version: '10.11.0',
4
4
  name: '@kontent-ai/core-sdk'
5
5
  };
6
6
  //# sourceMappingURL=sdk-info.generated.js.map
@@ -1,6 +1,6 @@
1
1
  export const sdkInfo = {
2
2
  host: 'npmjs.com',
3
- version: '10.10.1',
3
+ version: '10.11.0',
4
4
  name: '@kontent-ai/core-sdk'
5
5
  };
6
6
  //# sourceMappingURL=sdk-info.generated.js.map
@@ -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.8.4 Copyright (c) 2025 Matt Zabriskie and contributors */
902
+ /*! Axios v1.9.0 Copyright (c) 2025 Matt Zabriskie and contributors */
903
903
 
904
904
 
905
905
  function bind(fn, thisArg) {
@@ -912,6 +912,7 @@ function bind(fn, thisArg) {
912
912
 
913
913
  const {toString} = Object.prototype;
914
914
  const {getPrototypeOf} = Object;
915
+ const {iterator, toStringTag} = Symbol;
915
916
 
916
917
  const kindOf = (cache => thing => {
917
918
  const str = toString.call(thing);
@@ -1038,7 +1039,7 @@ const isPlainObject = (val) => {
1038
1039
  }
1039
1040
 
1040
1041
  const prototype = getPrototypeOf(val);
1041
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
1042
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
1042
1043
  };
1043
1044
 
1044
1045
  /**
@@ -1389,13 +1390,13 @@ const isTypedArray = (TypedArray => {
1389
1390
  * @returns {void}
1390
1391
  */
1391
1392
  const forEachEntry = (obj, fn) => {
1392
- const generator = obj && obj[Symbol.iterator];
1393
+ const generator = obj && obj[iterator];
1393
1394
 
1394
- const iterator = generator.call(obj);
1395
+ const _iterator = generator.call(obj);
1395
1396
 
1396
1397
  let result;
1397
1398
 
1398
- while ((result = iterator.next()) && !result.done) {
1399
+ while ((result = _iterator.next()) && !result.done) {
1399
1400
  const pair = result.value;
1400
1401
  fn.call(obj, pair[0], pair[1]);
1401
1402
  }
@@ -1516,7 +1517,7 @@ const toFiniteNumber = (value, defaultValue) => {
1516
1517
  * @returns {boolean}
1517
1518
  */
1518
1519
  function isSpecCompliantForm(thing) {
1519
- return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);
1520
+ return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
1520
1521
  }
1521
1522
 
1522
1523
  const toJSONObject = (obj) => {
@@ -1585,6 +1586,10 @@ const asap = typeof queueMicrotask !== 'undefined' ?
1585
1586
 
1586
1587
  // *********************
1587
1588
 
1589
+
1590
+ const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
1591
+
1592
+
1588
1593
  var utils$1 = {
1589
1594
  isArray,
1590
1595
  isArrayBuffer,
@@ -1640,7 +1645,8 @@ var utils$1 = {
1640
1645
  isAsyncFn,
1641
1646
  isThenable,
1642
1647
  setImmediate: _setImmediate,
1643
- asap
1648
+ asap,
1649
+ isIterable
1644
1650
  };
1645
1651
 
1646
1652
  /**
@@ -2625,10 +2631,18 @@ class AxiosHeaders {
2625
2631
  setHeaders(header, valueOrRewrite);
2626
2632
  } else if(utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
2627
2633
  setHeaders(parseHeaders(header), valueOrRewrite);
2628
- } else if (utils$1.isHeaders(header)) {
2629
- for (const [key, value] of header.entries()) {
2630
- setHeader(value, key, rewrite);
2634
+ } else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
2635
+ let obj = {}, dest, key;
2636
+ for (const entry of header) {
2637
+ if (!utils$1.isArray(entry)) {
2638
+ throw TypeError('Object iterator must return a key-value pair');
2639
+ }
2640
+
2641
+ obj[key = entry[0]] = (dest = obj[key]) ?
2642
+ (utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];
2631
2643
  }
2644
+
2645
+ setHeaders(obj, valueOrRewrite);
2632
2646
  } else {
2633
2647
  header != null && setHeader(valueOrRewrite, header, rewrite);
2634
2648
  }
@@ -2770,6 +2784,10 @@ class AxiosHeaders {
2770
2784
  return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
2771
2785
  }
2772
2786
 
2787
+ getSetCookie() {
2788
+ return this.get("set-cookie") || [];
2789
+ }
2790
+
2773
2791
  get [Symbol.toStringTag]() {
2774
2792
  return 'AxiosHeaders';
2775
2793
  }
@@ -3809,7 +3827,7 @@ var fetchAdapter = isFetchSupported && (async (config) => {
3809
3827
  } catch (err) {
3810
3828
  unsubscribe && unsubscribe();
3811
3829
 
3812
- if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {
3830
+ if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
3813
3831
  throw Object.assign(
3814
3832
  new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
3815
3833
  {
@@ -3969,7 +3987,7 @@ function dispatchRequest(config) {
3969
3987
  });
3970
3988
  }
3971
3989
 
3972
- const VERSION = "1.8.4";
3990
+ const VERSION = "1.9.0";
3973
3991
 
3974
3992
  const validators$1 = {};
3975
3993
 
@@ -4077,7 +4095,7 @@ const validators = validator.validators;
4077
4095
  */
4078
4096
  class Axios {
4079
4097
  constructor(instanceConfig) {
4080
- this.defaults = instanceConfig;
4098
+ this.defaults = instanceConfig || {};
4081
4099
  this.interceptors = {
4082
4100
  request: new InterceptorManager$1(),
4083
4101
  response: new InterceptorManager$1()