contentful-management 10.27.0 → 10.27.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.
- package/dist/contentful-management.browser.js +87 -54
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +2 -2
- package/dist/contentful-management.node.js +87 -54
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +2 -2
- package/dist/es-modules/contentful-management.js +1 -1
- package/package.json +2 -3
|
@@ -2871,6 +2871,33 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2871
2871
|
|
|
2872
2872
|
|
|
2873
2873
|
|
|
2874
|
+
function _iterableToArrayLimit(arr, i) {
|
|
2875
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2876
|
+
if (null != _i) {
|
|
2877
|
+
var _s,
|
|
2878
|
+
_e,
|
|
2879
|
+
_x,
|
|
2880
|
+
_r,
|
|
2881
|
+
_arr = [],
|
|
2882
|
+
_n = !0,
|
|
2883
|
+
_d = !1;
|
|
2884
|
+
try {
|
|
2885
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
2886
|
+
if (Object(_i) !== _i) return;
|
|
2887
|
+
_n = !1;
|
|
2888
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
2889
|
+
} catch (err) {
|
|
2890
|
+
_d = !0, _e = err;
|
|
2891
|
+
} finally {
|
|
2892
|
+
try {
|
|
2893
|
+
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
2894
|
+
} finally {
|
|
2895
|
+
if (_d) throw _e;
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
return _arr;
|
|
2899
|
+
}
|
|
2900
|
+
}
|
|
2874
2901
|
function ownKeys(object, enumerableOnly) {
|
|
2875
2902
|
var keys = Object.keys(object);
|
|
2876
2903
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -2924,12 +2951,18 @@ function _wrapRegExp() {
|
|
|
2924
2951
|
}
|
|
2925
2952
|
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
|
|
2926
2953
|
var result = _super.exec.call(this, str);
|
|
2927
|
-
|
|
2954
|
+
if (result) {
|
|
2955
|
+
result.groups = buildGroups(result, this);
|
|
2956
|
+
var indices = result.indices;
|
|
2957
|
+
indices && (indices.groups = buildGroups(indices, this));
|
|
2958
|
+
}
|
|
2959
|
+
return result;
|
|
2928
2960
|
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
|
|
2929
2961
|
if ("string" == typeof substitution) {
|
|
2930
2962
|
var groups = _groups.get(this);
|
|
2931
2963
|
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
|
|
2932
|
-
|
|
2964
|
+
var group = groups[name];
|
|
2965
|
+
return "$" + (Array.isArray(group) ? group.join("$") : group);
|
|
2933
2966
|
}));
|
|
2934
2967
|
}
|
|
2935
2968
|
if ("function" == typeof substitution) {
|
|
@@ -2943,6 +2976,7 @@ function _wrapRegExp() {
|
|
|
2943
2976
|
}, _wrapRegExp.apply(this, arguments);
|
|
2944
2977
|
}
|
|
2945
2978
|
function _defineProperty(obj, key, value) {
|
|
2979
|
+
key = _toPropertyKey(key);
|
|
2946
2980
|
if (key in obj) {
|
|
2947
2981
|
Object.defineProperty(obj, key, {
|
|
2948
2982
|
value: value,
|
|
@@ -2984,30 +3018,6 @@ function _slicedToArray(arr, i) {
|
|
|
2984
3018
|
function _arrayWithHoles(arr) {
|
|
2985
3019
|
if (Array.isArray(arr)) return arr;
|
|
2986
3020
|
}
|
|
2987
|
-
function _iterableToArrayLimit(arr, i) {
|
|
2988
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2989
|
-
if (_i == null) return;
|
|
2990
|
-
var _arr = [];
|
|
2991
|
-
var _n = true;
|
|
2992
|
-
var _d = false;
|
|
2993
|
-
var _s, _e;
|
|
2994
|
-
try {
|
|
2995
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
2996
|
-
_arr.push(_s.value);
|
|
2997
|
-
if (i && _arr.length === i) break;
|
|
2998
|
-
}
|
|
2999
|
-
} catch (err) {
|
|
3000
|
-
_d = true;
|
|
3001
|
-
_e = err;
|
|
3002
|
-
} finally {
|
|
3003
|
-
try {
|
|
3004
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
3005
|
-
} finally {
|
|
3006
|
-
if (_d) throw _e;
|
|
3007
|
-
}
|
|
3008
|
-
}
|
|
3009
|
-
return _arr;
|
|
3010
|
-
}
|
|
3011
3021
|
function _unsupportedIterableToArray(o, minLen) {
|
|
3012
3022
|
if (!o) return;
|
|
3013
3023
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -3075,16 +3085,28 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
3075
3085
|
}
|
|
3076
3086
|
};
|
|
3077
3087
|
}
|
|
3088
|
+
function _toPrimitive(input, hint) {
|
|
3089
|
+
if (typeof input !== "object" || input === null) return input;
|
|
3090
|
+
var prim = input[Symbol.toPrimitive];
|
|
3091
|
+
if (prim !== undefined) {
|
|
3092
|
+
var res = prim.call(input, hint || "default");
|
|
3093
|
+
if (typeof res !== "object") return res;
|
|
3094
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3095
|
+
}
|
|
3096
|
+
return (hint === "string" ? String : Number)(input);
|
|
3097
|
+
}
|
|
3098
|
+
function _toPropertyKey(arg) {
|
|
3099
|
+
var key = _toPrimitive(arg, "string");
|
|
3100
|
+
return typeof key === "symbol" ? key : String(key);
|
|
3101
|
+
}
|
|
3078
3102
|
|
|
3079
3103
|
function isNode() {
|
|
3080
3104
|
/**
|
|
3081
|
-
*
|
|
3082
|
-
*
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
**/
|
|
3087
|
-
return typeof process !== 'undefined' && !process.browser;
|
|
3105
|
+
* Save way to check for the global scope which should confirm if an environment is node
|
|
3106
|
+
* For reference: https://stackoverflow.com/a/31090240
|
|
3107
|
+
*/
|
|
3108
|
+
var isNodeFunc = new Function('try {return this===global;}catch(e){return false;}');
|
|
3109
|
+
return isNodeFunc();
|
|
3088
3110
|
}
|
|
3089
3111
|
function isReactNative() {
|
|
3090
3112
|
return typeof window !== 'undefined' && 'navigator' in window && 'product' in window.navigator && window.navigator.product === 'ReactNative';
|
|
@@ -3329,14 +3351,6 @@ function createHttpClient(axios, options) {
|
|
|
3329
3351
|
if (!config.headers.Authorization && typeof config.accessToken !== 'function') {
|
|
3330
3352
|
config.headers.Authorization = 'Bearer ' + config.accessToken;
|
|
3331
3353
|
}
|
|
3332
|
-
|
|
3333
|
-
// Set these headers only for node because browsers don't like it when you
|
|
3334
|
-
// override user-agent or accept-encoding.
|
|
3335
|
-
// The SDKs should set their own X-Contentful-User-Agent.
|
|
3336
|
-
if (isNode()) {
|
|
3337
|
-
config.headers['user-agent'] = 'node.js/' + getNodeVersion();
|
|
3338
|
-
config.headers['Accept-Encoding'] = 'gzip';
|
|
3339
|
-
}
|
|
3340
3354
|
var axiosOptions = {
|
|
3341
3355
|
// Axios
|
|
3342
3356
|
baseURL: baseURL,
|
|
@@ -4551,6 +4565,8 @@ var INTRINSICS = {
|
|
|
4551
4565
|
'%AsyncIteratorPrototype%': needsEval,
|
|
4552
4566
|
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
4553
4567
|
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
4568
|
+
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
|
|
4569
|
+
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
|
|
4554
4570
|
'%Boolean%': Boolean,
|
|
4555
4571
|
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
4556
4572
|
'%Date%': Date,
|
|
@@ -4606,6 +4622,14 @@ var INTRINSICS = {
|
|
|
4606
4622
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
4607
4623
|
};
|
|
4608
4624
|
|
|
4625
|
+
try {
|
|
4626
|
+
null.error; // eslint-disable-line no-unused-expressions
|
|
4627
|
+
} catch (e) {
|
|
4628
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
4629
|
+
var errorProto = getProto(getProto(e));
|
|
4630
|
+
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
4631
|
+
}
|
|
4632
|
+
|
|
4609
4633
|
var doEval = function doEval(name) {
|
|
4610
4634
|
var value;
|
|
4611
4635
|
if (name === '%AsyncFunction%') {
|
|
@@ -4691,6 +4715,7 @@ var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
|
4691
4715
|
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
4692
4716
|
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
4693
4717
|
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
4718
|
+
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
4694
4719
|
|
|
4695
4720
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
4696
4721
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -4746,6 +4771,9 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
4746
4771
|
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
4747
4772
|
}
|
|
4748
4773
|
|
|
4774
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
4775
|
+
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
4776
|
+
}
|
|
4749
4777
|
var parts = stringToPath(name);
|
|
4750
4778
|
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
4751
4779
|
|
|
@@ -7161,8 +7189,9 @@ function addNumericSeparator(num, str) {
|
|
|
7161
7189
|
return $replace.call(str, sepRegex, '$&_');
|
|
7162
7190
|
}
|
|
7163
7191
|
|
|
7164
|
-
var
|
|
7165
|
-
var
|
|
7192
|
+
var utilInspect = __webpack_require__(/*! ./util.inspect */ 1);
|
|
7193
|
+
var inspectCustom = utilInspect.custom;
|
|
7194
|
+
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
7166
7195
|
|
|
7167
7196
|
module.exports = function inspect_(obj, options, depth, seen) {
|
|
7168
7197
|
var opts = options || {};
|
|
@@ -7252,7 +7281,7 @@ module.exports = function inspect_(obj, options, depth, seen) {
|
|
|
7252
7281
|
return inspect_(value, opts, depth + 1, seen);
|
|
7253
7282
|
}
|
|
7254
7283
|
|
|
7255
|
-
if (typeof obj === 'function') {
|
|
7284
|
+
if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
|
|
7256
7285
|
var name = nameOf(obj);
|
|
7257
7286
|
var keys = arrObjKeys(obj, inspect);
|
|
7258
7287
|
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
|
@@ -7282,31 +7311,35 @@ module.exports = function inspect_(obj, options, depth, seen) {
|
|
|
7282
7311
|
}
|
|
7283
7312
|
if (isError(obj)) {
|
|
7284
7313
|
var parts = arrObjKeys(obj, inspect);
|
|
7285
|
-
if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
7314
|
+
if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
7286
7315
|
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
|
7287
7316
|
}
|
|
7288
7317
|
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
7289
7318
|
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
|
7290
7319
|
}
|
|
7291
7320
|
if (typeof obj === 'object' && customInspect) {
|
|
7292
|
-
if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
|
|
7293
|
-
return obj
|
|
7321
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
|
|
7322
|
+
return utilInspect(obj, { depth: maxDepth - depth });
|
|
7294
7323
|
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
7295
7324
|
return obj.inspect();
|
|
7296
7325
|
}
|
|
7297
7326
|
}
|
|
7298
7327
|
if (isMap(obj)) {
|
|
7299
7328
|
var mapParts = [];
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7329
|
+
if (mapForEach) {
|
|
7330
|
+
mapForEach.call(obj, function (value, key) {
|
|
7331
|
+
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
7332
|
+
});
|
|
7333
|
+
}
|
|
7303
7334
|
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
7304
7335
|
}
|
|
7305
7336
|
if (isSet(obj)) {
|
|
7306
7337
|
var setParts = [];
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7338
|
+
if (setForEach) {
|
|
7339
|
+
setForEach.call(obj, function (value) {
|
|
7340
|
+
setParts.push(inspect(value, obj));
|
|
7341
|
+
});
|
|
7342
|
+
}
|
|
7310
7343
|
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
7311
7344
|
}
|
|
7312
7345
|
if (isWeakMap(obj)) {
|
|
@@ -13119,7 +13152,7 @@ function createClient(params) {
|
|
|
13119
13152
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
13120
13153
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
13121
13154
|
var userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
|
|
13122
|
-
"".concat(sdkMain, "/").concat("
|
|
13155
|
+
"".concat(sdkMain, "/").concat("0.0.0-determined-by-semantic-release"), params.application, params.integration, params.feature);
|
|
13123
13156
|
var adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params);
|
|
13124
13157
|
|
|
13125
13158
|
// Parameters<?> and ReturnType<?> only return the types of the last overload
|