@kontent-ai/core-sdk 10.10.0 → 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.
- package/dist/cjs/sdk-info.generated.js +1 -1
- package/dist/es6/sdk-info.generated.js +1 -1
- package/dist/esnext/sdk-info.generated.js +1 -1
- package/dist/umd/kontent-core.umd.js +33 -15
- package/dist/umd/kontent-core.umd.js.map +1 -1
- package/dist/umd/kontent-core.umd.min.js +1 -1
- package/dist/umd/kontent-core.umd.min.js.LICENSE.txt +1 -1
- package/dist/umd/kontent-core.umd.min.js.map +1 -1
- package/dist/umd/report.json +1 -1
- package/dist/umd/report.min.json +1 -1
- package/dist/umd/stats.json +27 -27
- package/dist/umd/stats.min.json +27 -27
- package/lib/sdk-info.generated.ts +1 -1
- package/package.json +11 -11
|
@@ -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.
|
|
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) && !(
|
|
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[
|
|
1393
|
+
const generator = obj && obj[iterator];
|
|
1393
1394
|
|
|
1394
|
-
const
|
|
1395
|
+
const _iterator = generator.call(obj);
|
|
1395
1396
|
|
|
1396
1397
|
let result;
|
|
1397
1398
|
|
|
1398
|
-
while ((result =
|
|
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[
|
|
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.
|
|
2629
|
-
|
|
2630
|
-
|
|
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
|
}
|
|
@@ -3129,7 +3147,7 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
3129
3147
|
*/
|
|
3130
3148
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
3131
3149
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
3132
|
-
if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
|
|
3150
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
3133
3151
|
return combineURLs(baseURL, requestedURL);
|
|
3134
3152
|
}
|
|
3135
3153
|
return requestedURL;
|
|
@@ -3244,7 +3262,7 @@ var resolveConfig = (config) => {
|
|
|
3244
3262
|
|
|
3245
3263
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
3246
3264
|
|
|
3247
|
-
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
3265
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
3248
3266
|
|
|
3249
3267
|
// HTTP basic authentication
|
|
3250
3268
|
if (auth) {
|
|
@@ -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.
|
|
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()
|