contentful-management 11.31.3 → 11.31.5
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 +543 -137
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +542 -136
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/constants/editor-interface-defaults/controls-defaults.js +1 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/typings/constants/editor-interface-defaults/controls-defaults.d.ts +1 -5
- package/package.json +4 -2
|
@@ -4722,7 +4722,7 @@ function getDefaultControlOfField(field) {
|
|
|
4722
4722
|
return {
|
|
4723
4723
|
widgetId: 'dropdown',
|
|
4724
4724
|
fieldId: field.id,
|
|
4725
|
-
|
|
4725
|
+
widgetNamespace: 'builtin'
|
|
4726
4726
|
};
|
|
4727
4727
|
}
|
|
4728
4728
|
return getDefaultWidget(fieldType, field.id);
|
|
@@ -17430,38 +17430,26 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
17430
17430
|
|
|
17431
17431
|
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
17432
17432
|
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
17433
|
+
var setFunctionLength = __webpack_require__(/*! set-function-length */ "../node_modules/set-function-length/index.js");
|
|
17433
17434
|
|
|
17435
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
17434
17436
|
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
17435
17437
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
17436
17438
|
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
17437
17439
|
|
|
17438
|
-
var $
|
|
17439
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
17440
|
+
var $defineProperty = __webpack_require__(/*! es-define-property */ "../node_modules/es-define-property/index.js");
|
|
17440
17441
|
var $max = GetIntrinsic('%Math.max%');
|
|
17441
17442
|
|
|
17442
|
-
if ($defineProperty) {
|
|
17443
|
-
try {
|
|
17444
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
17445
|
-
} catch (e) {
|
|
17446
|
-
// IE 8 has a broken defineProperty
|
|
17447
|
-
$defineProperty = null;
|
|
17448
|
-
}
|
|
17449
|
-
}
|
|
17450
|
-
|
|
17451
17443
|
module.exports = function callBind(originalFunction) {
|
|
17452
|
-
|
|
17453
|
-
|
|
17454
|
-
var desc = $gOPD(func, 'length');
|
|
17455
|
-
if (desc.configurable) {
|
|
17456
|
-
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
17457
|
-
$defineProperty(
|
|
17458
|
-
func,
|
|
17459
|
-
'length',
|
|
17460
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
17461
|
-
);
|
|
17462
|
-
}
|
|
17444
|
+
if (typeof originalFunction !== 'function') {
|
|
17445
|
+
throw new $TypeError('a function is required');
|
|
17463
17446
|
}
|
|
17464
|
-
|
|
17447
|
+
var func = $reflectApply(bind, $call, arguments);
|
|
17448
|
+
return setFunctionLength(
|
|
17449
|
+
func,
|
|
17450
|
+
1 + $max(0, originalFunction.length - (arguments.length - 1)),
|
|
17451
|
+
true
|
|
17452
|
+
);
|
|
17465
17453
|
};
|
|
17466
17454
|
|
|
17467
17455
|
var applyBind = function applyBind() {
|
|
@@ -17496,14 +17484,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17496
17484
|
/* harmony export */ });
|
|
17497
17485
|
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/contentful-sdk-core/node_modules/fast-copy/dist/fast-copy.js");
|
|
17498
17486
|
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_0__);
|
|
17499
|
-
/* harmony import */ var
|
|
17500
|
-
/* harmony import */ var
|
|
17501
|
-
/* harmony import */ var
|
|
17502
|
-
/* harmony import */ var
|
|
17503
|
-
/* harmony import */ var
|
|
17504
|
-
/* harmony import */ var
|
|
17505
|
-
/* harmony import */ var
|
|
17506
|
-
/* harmony import */ var
|
|
17487
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! qs */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/index.js");
|
|
17488
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_4__);
|
|
17489
|
+
/* harmony import */ var lodash_isstring__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash.isstring */ "../node_modules/lodash.isstring/index.js");
|
|
17490
|
+
/* harmony import */ var lodash_isstring__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isstring__WEBPACK_IMPORTED_MODULE_1__);
|
|
17491
|
+
/* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! p-throttle */ "../node_modules/p-throttle/index.js");
|
|
17492
|
+
/* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(p_throttle__WEBPACK_IMPORTED_MODULE_2__);
|
|
17493
|
+
/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash.isplainobject */ "../node_modules/lodash.isplainobject/index.js");
|
|
17494
|
+
/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isplainobject__WEBPACK_IMPORTED_MODULE_3__);
|
|
17507
17495
|
|
|
17508
17496
|
|
|
17509
17497
|
|
|
@@ -18206,7 +18194,7 @@ function calculateLimit(type) {
|
|
|
18206
18194
|
}
|
|
18207
18195
|
function createThrottle(limit, logger) {
|
|
18208
18196
|
logger('info', "Throttle request to ".concat(limit, "/s"));
|
|
18209
|
-
return
|
|
18197
|
+
return p_throttle__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
18210
18198
|
limit: limit,
|
|
18211
18199
|
interval: 1000,
|
|
18212
18200
|
strict: false
|
|
@@ -18216,7 +18204,7 @@ var rateLimitThrottle = (function (axiosInstance) {
|
|
|
18216
18204
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'auto';
|
|
18217
18205
|
var _axiosInstance$defaul = axiosInstance.defaults.logHandler,
|
|
18218
18206
|
logHandler = _axiosInstance$defaul === void 0 ? noop : _axiosInstance$defaul;
|
|
18219
|
-
var limit =
|
|
18207
|
+
var limit = lodash_isstring__WEBPACK_IMPORTED_MODULE_1___default()(type) ? calculateLimit(type) : calculateLimit('auto', type);
|
|
18220
18208
|
var throttle = createThrottle(limit, logHandler);
|
|
18221
18209
|
var isCalculated = false;
|
|
18222
18210
|
var requestInterceptorId = axiosInstance.interceptors.request.use(function (config) {
|
|
@@ -18227,7 +18215,7 @@ var rateLimitThrottle = (function (axiosInstance) {
|
|
|
18227
18215
|
return Promise.reject(error);
|
|
18228
18216
|
});
|
|
18229
18217
|
var responseInterceptorId = axiosInstance.interceptors.response.use(function (response) {
|
|
18230
|
-
if (!isCalculated &&
|
|
18218
|
+
if (!isCalculated && lodash_isstring__WEBPACK_IMPORTED_MODULE_1___default()(type) && (type === 'auto' || PERCENTAGE_REGEX.test(type)) && response.headers && response.headers['x-contentful-ratelimit-second-limit']) {
|
|
18231
18219
|
var rawLimit = parseInt(response.headers['x-contentful-ratelimit-second-limit']);
|
|
18232
18220
|
var nextLimit = calculateLimit(type, rawLimit);
|
|
18233
18221
|
if (nextLimit !== limit) {
|
|
@@ -18339,7 +18327,7 @@ function createHttpClient(axios, options) {
|
|
|
18339
18327
|
maxBodyLength: config.maxBodyLength,
|
|
18340
18328
|
paramsSerializer: {
|
|
18341
18329
|
serialize: function serialize(params) {
|
|
18342
|
-
return
|
|
18330
|
+
return qs__WEBPACK_IMPORTED_MODULE_4___default().stringify(params);
|
|
18343
18331
|
}
|
|
18344
18332
|
},
|
|
18345
18333
|
// Contentful
|
|
@@ -18554,7 +18542,7 @@ function errorHandler(errorResponse) {
|
|
|
18554
18542
|
var token = "...".concat(config.headers['Authorization'].toString().substr(-5));
|
|
18555
18543
|
config.headers['Authorization'] = "Bearer ".concat(token);
|
|
18556
18544
|
}
|
|
18557
|
-
if (!
|
|
18545
|
+
if (!lodash_isplainobject__WEBPACK_IMPORTED_MODULE_3___default()(response) || !lodash_isplainobject__WEBPACK_IMPORTED_MODULE_3___default()(config)) {
|
|
18558
18546
|
throw errorResponse;
|
|
18559
18547
|
}
|
|
18560
18548
|
var data = response === null || response === void 0 ? void 0 : response.data;
|
|
@@ -18564,7 +18552,7 @@ function errorHandler(errorResponse) {
|
|
|
18564
18552
|
message: '',
|
|
18565
18553
|
details: {}
|
|
18566
18554
|
};
|
|
18567
|
-
if (config &&
|
|
18555
|
+
if (config && lodash_isplainobject__WEBPACK_IMPORTED_MODULE_3___default()(config)) {
|
|
18568
18556
|
errorData.request = {
|
|
18569
18557
|
url: config.url,
|
|
18570
18558
|
headers: config.headers,
|
|
@@ -19037,20 +19025,24 @@ var isArray = Array.isArray;
|
|
|
19037
19025
|
|
|
19038
19026
|
var defaults = {
|
|
19039
19027
|
allowDots: false,
|
|
19028
|
+
allowEmptyArrays: false,
|
|
19040
19029
|
allowPrototypes: false,
|
|
19041
19030
|
allowSparse: false,
|
|
19042
19031
|
arrayLimit: 20,
|
|
19043
19032
|
charset: 'utf-8',
|
|
19044
19033
|
charsetSentinel: false,
|
|
19045
19034
|
comma: false,
|
|
19035
|
+
decodeDotInKeys: false,
|
|
19046
19036
|
decoder: utils.decode,
|
|
19047
19037
|
delimiter: '&',
|
|
19048
19038
|
depth: 5,
|
|
19039
|
+
duplicates: 'combine',
|
|
19049
19040
|
ignoreQueryPrefix: false,
|
|
19050
19041
|
interpretNumericEntities: false,
|
|
19051
19042
|
parameterLimit: 1000,
|
|
19052
19043
|
parseArrays: true,
|
|
19053
19044
|
plainObjects: false,
|
|
19045
|
+
strictDepth: false,
|
|
19054
19046
|
strictNullHandling: false
|
|
19055
19047
|
};
|
|
19056
19048
|
|
|
@@ -19082,6 +19074,7 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
19082
19074
|
var obj = { __proto__: null };
|
|
19083
19075
|
|
|
19084
19076
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
19077
|
+
cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
|
|
19085
19078
|
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
19086
19079
|
var parts = cleanStr.split(options.delimiter, limit);
|
|
19087
19080
|
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
@@ -19133,9 +19126,10 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
19133
19126
|
val = isArray(val) ? [val] : val;
|
|
19134
19127
|
}
|
|
19135
19128
|
|
|
19136
|
-
|
|
19129
|
+
var existing = has.call(obj, key);
|
|
19130
|
+
if (existing && options.duplicates === 'combine') {
|
|
19137
19131
|
obj[key] = utils.combine(obj[key], val);
|
|
19138
|
-
} else {
|
|
19132
|
+
} else if (!existing || options.duplicates === 'last') {
|
|
19139
19133
|
obj[key] = val;
|
|
19140
19134
|
}
|
|
19141
19135
|
}
|
|
@@ -19151,24 +19145,27 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
19151
19145
|
var root = chain[i];
|
|
19152
19146
|
|
|
19153
19147
|
if (root === '[]' && options.parseArrays) {
|
|
19154
|
-
obj =
|
|
19148
|
+
obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))
|
|
19149
|
+
? []
|
|
19150
|
+
: [].concat(leaf);
|
|
19155
19151
|
} else {
|
|
19156
19152
|
obj = options.plainObjects ? Object.create(null) : {};
|
|
19157
19153
|
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
19158
|
-
var
|
|
19159
|
-
|
|
19154
|
+
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
|
|
19155
|
+
var index = parseInt(decodedRoot, 10);
|
|
19156
|
+
if (!options.parseArrays && decodedRoot === '') {
|
|
19160
19157
|
obj = { 0: leaf };
|
|
19161
19158
|
} else if (
|
|
19162
19159
|
!isNaN(index)
|
|
19163
|
-
&& root !==
|
|
19164
|
-
&& String(index) ===
|
|
19160
|
+
&& root !== decodedRoot
|
|
19161
|
+
&& String(index) === decodedRoot
|
|
19165
19162
|
&& index >= 0
|
|
19166
19163
|
&& (options.parseArrays && index <= options.arrayLimit)
|
|
19167
19164
|
) {
|
|
19168
19165
|
obj = [];
|
|
19169
19166
|
obj[index] = leaf;
|
|
19170
|
-
} else if (
|
|
19171
|
-
obj[
|
|
19167
|
+
} else if (decodedRoot !== '__proto__') {
|
|
19168
|
+
obj[decodedRoot] = leaf;
|
|
19172
19169
|
}
|
|
19173
19170
|
}
|
|
19174
19171
|
|
|
@@ -19223,9 +19220,12 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesPars
|
|
|
19223
19220
|
keys.push(segment[1]);
|
|
19224
19221
|
}
|
|
19225
19222
|
|
|
19226
|
-
// If there's a remainder, just add whatever is left
|
|
19223
|
+
// If there's a remainder, check strictDepth option for throw, else just add whatever is left
|
|
19227
19224
|
|
|
19228
19225
|
if (segment) {
|
|
19226
|
+
if (options.strictDepth === true) {
|
|
19227
|
+
throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
|
|
19228
|
+
}
|
|
19229
19229
|
keys.push('[' + key.slice(segment.index) + ']');
|
|
19230
19230
|
}
|
|
19231
19231
|
|
|
@@ -19237,7 +19237,15 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
19237
19237
|
return defaults;
|
|
19238
19238
|
}
|
|
19239
19239
|
|
|
19240
|
-
if (
|
|
19240
|
+
if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {
|
|
19241
|
+
throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
|
|
19242
|
+
}
|
|
19243
|
+
|
|
19244
|
+
if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') {
|
|
19245
|
+
throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');
|
|
19246
|
+
}
|
|
19247
|
+
|
|
19248
|
+
if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') {
|
|
19241
19249
|
throw new TypeError('Decoder has to be a function.');
|
|
19242
19250
|
}
|
|
19243
19251
|
|
|
@@ -19246,23 +19254,35 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
19246
19254
|
}
|
|
19247
19255
|
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
19248
19256
|
|
|
19257
|
+
var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;
|
|
19258
|
+
|
|
19259
|
+
if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') {
|
|
19260
|
+
throw new TypeError('The duplicates option must be either combine, first, or last');
|
|
19261
|
+
}
|
|
19262
|
+
|
|
19263
|
+
var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
19264
|
+
|
|
19249
19265
|
return {
|
|
19250
|
-
allowDots:
|
|
19266
|
+
allowDots: allowDots,
|
|
19267
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
19251
19268
|
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
19252
19269
|
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
19253
19270
|
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
19254
19271
|
charset: charset,
|
|
19255
19272
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
19256
19273
|
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
19274
|
+
decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
19257
19275
|
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
19258
19276
|
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
19259
19277
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
19260
19278
|
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
19279
|
+
duplicates: duplicates,
|
|
19261
19280
|
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
19262
19281
|
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
19263
19282
|
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
19264
19283
|
parseArrays: opts.parseArrays !== false,
|
|
19265
19284
|
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
19285
|
+
strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,
|
|
19266
19286
|
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
19267
19287
|
};
|
|
19268
19288
|
};
|
|
@@ -19335,10 +19355,13 @@ var defaultFormat = formats['default'];
|
|
|
19335
19355
|
var defaults = {
|
|
19336
19356
|
addQueryPrefix: false,
|
|
19337
19357
|
allowDots: false,
|
|
19358
|
+
allowEmptyArrays: false,
|
|
19359
|
+
arrayFormat: 'indices',
|
|
19338
19360
|
charset: 'utf-8',
|
|
19339
19361
|
charsetSentinel: false,
|
|
19340
19362
|
delimiter: '&',
|
|
19341
19363
|
encode: true,
|
|
19364
|
+
encodeDotInKeys: false,
|
|
19342
19365
|
encoder: utils.encode,
|
|
19343
19366
|
encodeValuesOnly: false,
|
|
19344
19367
|
format: defaultFormat,
|
|
@@ -19367,8 +19390,10 @@ var stringify = function stringify(
|
|
|
19367
19390
|
prefix,
|
|
19368
19391
|
generateArrayPrefix,
|
|
19369
19392
|
commaRoundTrip,
|
|
19393
|
+
allowEmptyArrays,
|
|
19370
19394
|
strictNullHandling,
|
|
19371
19395
|
skipNulls,
|
|
19396
|
+
encodeDotInKeys,
|
|
19372
19397
|
encoder,
|
|
19373
19398
|
filter,
|
|
19374
19399
|
sort,
|
|
@@ -19450,7 +19475,13 @@ var stringify = function stringify(
|
|
|
19450
19475
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
19451
19476
|
}
|
|
19452
19477
|
|
|
19453
|
-
var
|
|
19478
|
+
var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
|
|
19479
|
+
|
|
19480
|
+
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
|
|
19481
|
+
|
|
19482
|
+
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
19483
|
+
return adjustedPrefix + '[]';
|
|
19484
|
+
}
|
|
19454
19485
|
|
|
19455
19486
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
19456
19487
|
var key = objKeys[j];
|
|
@@ -19460,9 +19491,10 @@ var stringify = function stringify(
|
|
|
19460
19491
|
continue;
|
|
19461
19492
|
}
|
|
19462
19493
|
|
|
19494
|
+
var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
|
|
19463
19495
|
var keyPrefix = isArray(obj)
|
|
19464
|
-
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix,
|
|
19465
|
-
: adjustedPrefix + (allowDots ? '.' +
|
|
19496
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix
|
|
19497
|
+
: adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
|
|
19466
19498
|
|
|
19467
19499
|
sideChannel.set(object, step);
|
|
19468
19500
|
var valueSideChannel = getSideChannel();
|
|
@@ -19472,8 +19504,10 @@ var stringify = function stringify(
|
|
|
19472
19504
|
keyPrefix,
|
|
19473
19505
|
generateArrayPrefix,
|
|
19474
19506
|
commaRoundTrip,
|
|
19507
|
+
allowEmptyArrays,
|
|
19475
19508
|
strictNullHandling,
|
|
19476
19509
|
skipNulls,
|
|
19510
|
+
encodeDotInKeys,
|
|
19477
19511
|
generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,
|
|
19478
19512
|
filter,
|
|
19479
19513
|
sort,
|
|
@@ -19495,6 +19529,14 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
19495
19529
|
return defaults;
|
|
19496
19530
|
}
|
|
19497
19531
|
|
|
19532
|
+
if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {
|
|
19533
|
+
throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
|
|
19534
|
+
}
|
|
19535
|
+
|
|
19536
|
+
if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') {
|
|
19537
|
+
throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided');
|
|
19538
|
+
}
|
|
19539
|
+
|
|
19498
19540
|
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
|
19499
19541
|
throw new TypeError('Encoder has to be a function.');
|
|
19500
19542
|
}
|
|
@@ -19518,13 +19560,32 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
19518
19560
|
filter = opts.filter;
|
|
19519
19561
|
}
|
|
19520
19562
|
|
|
19563
|
+
var arrayFormat;
|
|
19564
|
+
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
19565
|
+
arrayFormat = opts.arrayFormat;
|
|
19566
|
+
} else if ('indices' in opts) {
|
|
19567
|
+
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
19568
|
+
} else {
|
|
19569
|
+
arrayFormat = defaults.arrayFormat;
|
|
19570
|
+
}
|
|
19571
|
+
|
|
19572
|
+
if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
19573
|
+
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
19574
|
+
}
|
|
19575
|
+
|
|
19576
|
+
var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
19577
|
+
|
|
19521
19578
|
return {
|
|
19522
19579
|
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
19523
|
-
allowDots:
|
|
19580
|
+
allowDots: allowDots,
|
|
19581
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
19582
|
+
arrayFormat: arrayFormat,
|
|
19524
19583
|
charset: charset,
|
|
19525
19584
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
19585
|
+
commaRoundTrip: opts.commaRoundTrip,
|
|
19526
19586
|
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
19527
19587
|
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
19588
|
+
encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
19528
19589
|
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
19529
19590
|
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
19530
19591
|
filter: filter,
|
|
@@ -19558,20 +19619,8 @@ module.exports = function (object, opts) {
|
|
|
19558
19619
|
return '';
|
|
19559
19620
|
}
|
|
19560
19621
|
|
|
19561
|
-
var arrayFormat;
|
|
19562
|
-
|
|
19563
|
-
arrayFormat = opts.arrayFormat;
|
|
19564
|
-
} else if (opts && 'indices' in opts) {
|
|
19565
|
-
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
19566
|
-
} else {
|
|
19567
|
-
arrayFormat = 'indices';
|
|
19568
|
-
}
|
|
19569
|
-
|
|
19570
|
-
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
19571
|
-
if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
19572
|
-
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
19573
|
-
}
|
|
19574
|
-
var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
|
|
19622
|
+
var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
|
|
19623
|
+
var commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip;
|
|
19575
19624
|
|
|
19576
19625
|
if (!objKeys) {
|
|
19577
19626
|
objKeys = Object.keys(obj);
|
|
@@ -19593,8 +19642,10 @@ module.exports = function (object, opts) {
|
|
|
19593
19642
|
key,
|
|
19594
19643
|
generateArrayPrefix,
|
|
19595
19644
|
commaRoundTrip,
|
|
19645
|
+
options.allowEmptyArrays,
|
|
19596
19646
|
options.strictNullHandling,
|
|
19597
19647
|
options.skipNulls,
|
|
19648
|
+
options.encodeDotInKeys,
|
|
19598
19649
|
options.encode ? options.encoder : null,
|
|
19599
19650
|
options.filter,
|
|
19600
19651
|
options.sort,
|
|
@@ -19758,6 +19809,10 @@ var decode = function (str, decoder, charset) {
|
|
|
19758
19809
|
}
|
|
19759
19810
|
};
|
|
19760
19811
|
|
|
19812
|
+
var limit = 1024;
|
|
19813
|
+
|
|
19814
|
+
/* eslint operator-linebreak: [2, "before"] */
|
|
19815
|
+
|
|
19761
19816
|
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
19762
19817
|
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
19763
19818
|
// It has been adapted here for stricter adherence to RFC 3986
|
|
@@ -19779,45 +19834,54 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
|
19779
19834
|
}
|
|
19780
19835
|
|
|
19781
19836
|
var out = '';
|
|
19782
|
-
for (var
|
|
19783
|
-
var
|
|
19784
|
-
|
|
19785
|
-
if (
|
|
19786
|
-
c === 0x2D // -
|
|
19787
|
-
|| c === 0x2E // .
|
|
19788
|
-
|| c === 0x5F // _
|
|
19789
|
-
|| c === 0x7E // ~
|
|
19790
|
-
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
19791
|
-
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
19792
|
-
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
19793
|
-
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
19794
|
-
) {
|
|
19795
|
-
out += string.charAt(i);
|
|
19796
|
-
continue;
|
|
19797
|
-
}
|
|
19837
|
+
for (var j = 0; j < string.length; j += limit) {
|
|
19838
|
+
var segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
19839
|
+
var arr = [];
|
|
19798
19840
|
|
|
19799
|
-
|
|
19800
|
-
|
|
19801
|
-
|
|
19802
|
-
|
|
19841
|
+
for (var i = 0; i < segment.length; ++i) {
|
|
19842
|
+
var c = segment.charCodeAt(i);
|
|
19843
|
+
if (
|
|
19844
|
+
c === 0x2D // -
|
|
19845
|
+
|| c === 0x2E // .
|
|
19846
|
+
|| c === 0x5F // _
|
|
19847
|
+
|| c === 0x7E // ~
|
|
19848
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
19849
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
19850
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
19851
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
19852
|
+
) {
|
|
19853
|
+
arr[arr.length] = segment.charAt(i);
|
|
19854
|
+
continue;
|
|
19855
|
+
}
|
|
19803
19856
|
|
|
19804
|
-
|
|
19805
|
-
|
|
19806
|
-
|
|
19807
|
-
|
|
19857
|
+
if (c < 0x80) {
|
|
19858
|
+
arr[arr.length] = hexTable[c];
|
|
19859
|
+
continue;
|
|
19860
|
+
}
|
|
19808
19861
|
|
|
19809
|
-
|
|
19810
|
-
|
|
19811
|
-
|
|
19862
|
+
if (c < 0x800) {
|
|
19863
|
+
arr[arr.length] = hexTable[0xC0 | (c >> 6)]
|
|
19864
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
19865
|
+
continue;
|
|
19866
|
+
}
|
|
19867
|
+
|
|
19868
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
19869
|
+
arr[arr.length] = hexTable[0xE0 | (c >> 12)]
|
|
19870
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
19871
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
19872
|
+
continue;
|
|
19873
|
+
}
|
|
19874
|
+
|
|
19875
|
+
i += 1;
|
|
19876
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));
|
|
19877
|
+
|
|
19878
|
+
arr[arr.length] = hexTable[0xF0 | (c >> 18)]
|
|
19879
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
19880
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
19881
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
19812
19882
|
}
|
|
19813
19883
|
|
|
19814
|
-
|
|
19815
|
-
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
19816
|
-
/* eslint operator-linebreak: [2, "before"] */
|
|
19817
|
-
out += hexTable[0xF0 | (c >> 18)]
|
|
19818
|
-
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
19819
|
-
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
19820
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
19884
|
+
out += arr.join('');
|
|
19821
19885
|
}
|
|
19822
19886
|
|
|
19823
19887
|
return out;
|
|
@@ -19888,6 +19952,205 @@ module.exports = {
|
|
|
19888
19952
|
};
|
|
19889
19953
|
|
|
19890
19954
|
|
|
19955
|
+
/***/ }),
|
|
19956
|
+
|
|
19957
|
+
/***/ "../node_modules/define-data-property/index.js":
|
|
19958
|
+
/*!*****************************************************!*\
|
|
19959
|
+
!*** ../node_modules/define-data-property/index.js ***!
|
|
19960
|
+
\*****************************************************/
|
|
19961
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19962
|
+
|
|
19963
|
+
"use strict";
|
|
19964
|
+
|
|
19965
|
+
|
|
19966
|
+
var $defineProperty = __webpack_require__(/*! es-define-property */ "../node_modules/es-define-property/index.js");
|
|
19967
|
+
|
|
19968
|
+
var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "../node_modules/es-errors/syntax.js");
|
|
19969
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
19970
|
+
|
|
19971
|
+
var gopd = __webpack_require__(/*! gopd */ "../node_modules/gopd/index.js");
|
|
19972
|
+
|
|
19973
|
+
/** @type {import('.')} */
|
|
19974
|
+
module.exports = function defineDataProperty(
|
|
19975
|
+
obj,
|
|
19976
|
+
property,
|
|
19977
|
+
value
|
|
19978
|
+
) {
|
|
19979
|
+
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
19980
|
+
throw new $TypeError('`obj` must be an object or a function`');
|
|
19981
|
+
}
|
|
19982
|
+
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
19983
|
+
throw new $TypeError('`property` must be a string or a symbol`');
|
|
19984
|
+
}
|
|
19985
|
+
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
19986
|
+
throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
|
|
19987
|
+
}
|
|
19988
|
+
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
19989
|
+
throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
|
|
19990
|
+
}
|
|
19991
|
+
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
19992
|
+
throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
|
|
19993
|
+
}
|
|
19994
|
+
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
19995
|
+
throw new $TypeError('`loose`, if provided, must be a boolean');
|
|
19996
|
+
}
|
|
19997
|
+
|
|
19998
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
19999
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
20000
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
20001
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
20002
|
+
|
|
20003
|
+
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
20004
|
+
var desc = !!gopd && gopd(obj, property);
|
|
20005
|
+
|
|
20006
|
+
if ($defineProperty) {
|
|
20007
|
+
$defineProperty(obj, property, {
|
|
20008
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
20009
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
20010
|
+
value: value,
|
|
20011
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
20012
|
+
});
|
|
20013
|
+
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
20014
|
+
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
20015
|
+
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
20016
|
+
} else {
|
|
20017
|
+
throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
20018
|
+
}
|
|
20019
|
+
};
|
|
20020
|
+
|
|
20021
|
+
|
|
20022
|
+
/***/ }),
|
|
20023
|
+
|
|
20024
|
+
/***/ "../node_modules/es-define-property/index.js":
|
|
20025
|
+
/*!***************************************************!*\
|
|
20026
|
+
!*** ../node_modules/es-define-property/index.js ***!
|
|
20027
|
+
\***************************************************/
|
|
20028
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20029
|
+
|
|
20030
|
+
"use strict";
|
|
20031
|
+
|
|
20032
|
+
|
|
20033
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
20034
|
+
|
|
20035
|
+
/** @type {import('.')} */
|
|
20036
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;
|
|
20037
|
+
if ($defineProperty) {
|
|
20038
|
+
try {
|
|
20039
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
20040
|
+
} catch (e) {
|
|
20041
|
+
// IE 8 has a broken defineProperty
|
|
20042
|
+
$defineProperty = false;
|
|
20043
|
+
}
|
|
20044
|
+
}
|
|
20045
|
+
|
|
20046
|
+
module.exports = $defineProperty;
|
|
20047
|
+
|
|
20048
|
+
|
|
20049
|
+
/***/ }),
|
|
20050
|
+
|
|
20051
|
+
/***/ "../node_modules/es-errors/eval.js":
|
|
20052
|
+
/*!*****************************************!*\
|
|
20053
|
+
!*** ../node_modules/es-errors/eval.js ***!
|
|
20054
|
+
\*****************************************/
|
|
20055
|
+
/***/ (function(module) {
|
|
20056
|
+
|
|
20057
|
+
"use strict";
|
|
20058
|
+
|
|
20059
|
+
|
|
20060
|
+
/** @type {import('./eval')} */
|
|
20061
|
+
module.exports = EvalError;
|
|
20062
|
+
|
|
20063
|
+
|
|
20064
|
+
/***/ }),
|
|
20065
|
+
|
|
20066
|
+
/***/ "../node_modules/es-errors/index.js":
|
|
20067
|
+
/*!******************************************!*\
|
|
20068
|
+
!*** ../node_modules/es-errors/index.js ***!
|
|
20069
|
+
\******************************************/
|
|
20070
|
+
/***/ (function(module) {
|
|
20071
|
+
|
|
20072
|
+
"use strict";
|
|
20073
|
+
|
|
20074
|
+
|
|
20075
|
+
/** @type {import('.')} */
|
|
20076
|
+
module.exports = Error;
|
|
20077
|
+
|
|
20078
|
+
|
|
20079
|
+
/***/ }),
|
|
20080
|
+
|
|
20081
|
+
/***/ "../node_modules/es-errors/range.js":
|
|
20082
|
+
/*!******************************************!*\
|
|
20083
|
+
!*** ../node_modules/es-errors/range.js ***!
|
|
20084
|
+
\******************************************/
|
|
20085
|
+
/***/ (function(module) {
|
|
20086
|
+
|
|
20087
|
+
"use strict";
|
|
20088
|
+
|
|
20089
|
+
|
|
20090
|
+
/** @type {import('./range')} */
|
|
20091
|
+
module.exports = RangeError;
|
|
20092
|
+
|
|
20093
|
+
|
|
20094
|
+
/***/ }),
|
|
20095
|
+
|
|
20096
|
+
/***/ "../node_modules/es-errors/ref.js":
|
|
20097
|
+
/*!****************************************!*\
|
|
20098
|
+
!*** ../node_modules/es-errors/ref.js ***!
|
|
20099
|
+
\****************************************/
|
|
20100
|
+
/***/ (function(module) {
|
|
20101
|
+
|
|
20102
|
+
"use strict";
|
|
20103
|
+
|
|
20104
|
+
|
|
20105
|
+
/** @type {import('./ref')} */
|
|
20106
|
+
module.exports = ReferenceError;
|
|
20107
|
+
|
|
20108
|
+
|
|
20109
|
+
/***/ }),
|
|
20110
|
+
|
|
20111
|
+
/***/ "../node_modules/es-errors/syntax.js":
|
|
20112
|
+
/*!*******************************************!*\
|
|
20113
|
+
!*** ../node_modules/es-errors/syntax.js ***!
|
|
20114
|
+
\*******************************************/
|
|
20115
|
+
/***/ (function(module) {
|
|
20116
|
+
|
|
20117
|
+
"use strict";
|
|
20118
|
+
|
|
20119
|
+
|
|
20120
|
+
/** @type {import('./syntax')} */
|
|
20121
|
+
module.exports = SyntaxError;
|
|
20122
|
+
|
|
20123
|
+
|
|
20124
|
+
/***/ }),
|
|
20125
|
+
|
|
20126
|
+
/***/ "../node_modules/es-errors/type.js":
|
|
20127
|
+
/*!*****************************************!*\
|
|
20128
|
+
!*** ../node_modules/es-errors/type.js ***!
|
|
20129
|
+
\*****************************************/
|
|
20130
|
+
/***/ (function(module) {
|
|
20131
|
+
|
|
20132
|
+
"use strict";
|
|
20133
|
+
|
|
20134
|
+
|
|
20135
|
+
/** @type {import('./type')} */
|
|
20136
|
+
module.exports = TypeError;
|
|
20137
|
+
|
|
20138
|
+
|
|
20139
|
+
/***/ }),
|
|
20140
|
+
|
|
20141
|
+
/***/ "../node_modules/es-errors/uri.js":
|
|
20142
|
+
/*!****************************************!*\
|
|
20143
|
+
!*** ../node_modules/es-errors/uri.js ***!
|
|
20144
|
+
\****************************************/
|
|
20145
|
+
/***/ (function(module) {
|
|
20146
|
+
|
|
20147
|
+
"use strict";
|
|
20148
|
+
|
|
20149
|
+
|
|
20150
|
+
/** @type {import('./uri')} */
|
|
20151
|
+
module.exports = URIError;
|
|
20152
|
+
|
|
20153
|
+
|
|
19891
20154
|
/***/ }),
|
|
19892
20155
|
|
|
19893
20156
|
/***/ "../node_modules/function-bind/implementation.js":
|
|
@@ -20012,9 +20275,15 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
20012
20275
|
|
|
20013
20276
|
var undefined;
|
|
20014
20277
|
|
|
20015
|
-
var $
|
|
20278
|
+
var $Error = __webpack_require__(/*! es-errors */ "../node_modules/es-errors/index.js");
|
|
20279
|
+
var $EvalError = __webpack_require__(/*! es-errors/eval */ "../node_modules/es-errors/eval.js");
|
|
20280
|
+
var $RangeError = __webpack_require__(/*! es-errors/range */ "../node_modules/es-errors/range.js");
|
|
20281
|
+
var $ReferenceError = __webpack_require__(/*! es-errors/ref */ "../node_modules/es-errors/ref.js");
|
|
20282
|
+
var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "../node_modules/es-errors/syntax.js");
|
|
20283
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
20284
|
+
var $URIError = __webpack_require__(/*! es-errors/uri */ "../node_modules/es-errors/uri.js");
|
|
20285
|
+
|
|
20016
20286
|
var $Function = Function;
|
|
20017
|
-
var $TypeError = TypeError;
|
|
20018
20287
|
|
|
20019
20288
|
// eslint-disable-next-line consistent-return
|
|
20020
20289
|
var getEvalledConstructor = function (expressionSyntax) {
|
|
@@ -20066,6 +20335,7 @@ var needsEval = {};
|
|
|
20066
20335
|
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
20067
20336
|
|
|
20068
20337
|
var INTRINSICS = {
|
|
20338
|
+
__proto__: null,
|
|
20069
20339
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
20070
20340
|
'%Array%': Array,
|
|
20071
20341
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
@@ -20086,9 +20356,9 @@ var INTRINSICS = {
|
|
|
20086
20356
|
'%decodeURIComponent%': decodeURIComponent,
|
|
20087
20357
|
'%encodeURI%': encodeURI,
|
|
20088
20358
|
'%encodeURIComponent%': encodeURIComponent,
|
|
20089
|
-
'%Error%': Error,
|
|
20359
|
+
'%Error%': $Error,
|
|
20090
20360
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
20091
|
-
'%EvalError%': EvalError,
|
|
20361
|
+
'%EvalError%': $EvalError,
|
|
20092
20362
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
20093
20363
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
20094
20364
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
@@ -20110,8 +20380,8 @@ var INTRINSICS = {
|
|
|
20110
20380
|
'%parseInt%': parseInt,
|
|
20111
20381
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
20112
20382
|
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
20113
|
-
'%RangeError%': RangeError,
|
|
20114
|
-
'%ReferenceError%': ReferenceError,
|
|
20383
|
+
'%RangeError%': $RangeError,
|
|
20384
|
+
'%ReferenceError%': $ReferenceError,
|
|
20115
20385
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
20116
20386
|
'%RegExp%': RegExp,
|
|
20117
20387
|
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
@@ -20128,7 +20398,7 @@ var INTRINSICS = {
|
|
|
20128
20398
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
20129
20399
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
20130
20400
|
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
20131
|
-
'%URIError%': URIError,
|
|
20401
|
+
'%URIError%': $URIError,
|
|
20132
20402
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
20133
20403
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
20134
20404
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
@@ -20170,6 +20440,7 @@ var doEval = function doEval(name) {
|
|
|
20170
20440
|
};
|
|
20171
20441
|
|
|
20172
20442
|
var LEGACY_ALIASES = {
|
|
20443
|
+
__proto__: null,
|
|
20173
20444
|
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
20174
20445
|
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
20175
20446
|
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
@@ -20224,7 +20495,7 @@ var LEGACY_ALIASES = {
|
|
|
20224
20495
|
};
|
|
20225
20496
|
|
|
20226
20497
|
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
20227
|
-
var hasOwn = __webpack_require__(/*!
|
|
20498
|
+
var hasOwn = __webpack_require__(/*! hasown */ "../node_modules/hasown/index.js");
|
|
20228
20499
|
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
20229
20500
|
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
20230
20501
|
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
@@ -20361,6 +20632,66 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
20361
20632
|
};
|
|
20362
20633
|
|
|
20363
20634
|
|
|
20635
|
+
/***/ }),
|
|
20636
|
+
|
|
20637
|
+
/***/ "../node_modules/gopd/index.js":
|
|
20638
|
+
/*!*************************************!*\
|
|
20639
|
+
!*** ../node_modules/gopd/index.js ***!
|
|
20640
|
+
\*************************************/
|
|
20641
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20642
|
+
|
|
20643
|
+
"use strict";
|
|
20644
|
+
|
|
20645
|
+
|
|
20646
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
20647
|
+
|
|
20648
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
20649
|
+
|
|
20650
|
+
if ($gOPD) {
|
|
20651
|
+
try {
|
|
20652
|
+
$gOPD([], 'length');
|
|
20653
|
+
} catch (e) {
|
|
20654
|
+
// IE 8 has a broken gOPD
|
|
20655
|
+
$gOPD = null;
|
|
20656
|
+
}
|
|
20657
|
+
}
|
|
20658
|
+
|
|
20659
|
+
module.exports = $gOPD;
|
|
20660
|
+
|
|
20661
|
+
|
|
20662
|
+
/***/ }),
|
|
20663
|
+
|
|
20664
|
+
/***/ "../node_modules/has-property-descriptors/index.js":
|
|
20665
|
+
/*!*********************************************************!*\
|
|
20666
|
+
!*** ../node_modules/has-property-descriptors/index.js ***!
|
|
20667
|
+
\*********************************************************/
|
|
20668
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20669
|
+
|
|
20670
|
+
"use strict";
|
|
20671
|
+
|
|
20672
|
+
|
|
20673
|
+
var $defineProperty = __webpack_require__(/*! es-define-property */ "../node_modules/es-define-property/index.js");
|
|
20674
|
+
|
|
20675
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
20676
|
+
return !!$defineProperty;
|
|
20677
|
+
};
|
|
20678
|
+
|
|
20679
|
+
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
20680
|
+
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
20681
|
+
if (!$defineProperty) {
|
|
20682
|
+
return null;
|
|
20683
|
+
}
|
|
20684
|
+
try {
|
|
20685
|
+
return $defineProperty([], 'length', { value: 1 }).length !== 1;
|
|
20686
|
+
} catch (e) {
|
|
20687
|
+
// In Firefox 4-22, defining length on an array throws an exception.
|
|
20688
|
+
return true;
|
|
20689
|
+
}
|
|
20690
|
+
};
|
|
20691
|
+
|
|
20692
|
+
module.exports = hasPropertyDescriptors;
|
|
20693
|
+
|
|
20694
|
+
|
|
20364
20695
|
/***/ }),
|
|
20365
20696
|
|
|
20366
20697
|
/***/ "../node_modules/has-proto/index.js":
|
|
@@ -20462,18 +20793,21 @@ module.exports = function hasSymbols() {
|
|
|
20462
20793
|
|
|
20463
20794
|
/***/ }),
|
|
20464
20795
|
|
|
20465
|
-
/***/ "../node_modules/
|
|
20466
|
-
|
|
20467
|
-
!*** ../node_modules/
|
|
20468
|
-
|
|
20796
|
+
/***/ "../node_modules/hasown/index.js":
|
|
20797
|
+
/*!***************************************!*\
|
|
20798
|
+
!*** ../node_modules/hasown/index.js ***!
|
|
20799
|
+
\***************************************/
|
|
20469
20800
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20470
20801
|
|
|
20471
20802
|
"use strict";
|
|
20472
20803
|
|
|
20473
20804
|
|
|
20805
|
+
var call = Function.prototype.call;
|
|
20806
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
20474
20807
|
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
20475
20808
|
|
|
20476
|
-
|
|
20809
|
+
/** @type {import('.')} */
|
|
20810
|
+
module.exports = bind.call(call, $hasOwn);
|
|
20477
20811
|
|
|
20478
20812
|
|
|
20479
20813
|
/***/ }),
|
|
@@ -20979,6 +21313,17 @@ module.exports = function inspect_(obj, options, depth, seen) {
|
|
|
20979
21313
|
if (isString(obj)) {
|
|
20980
21314
|
return markBoxed(inspect(String(obj)));
|
|
20981
21315
|
}
|
|
21316
|
+
// note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
|
|
21317
|
+
/* eslint-env browser */
|
|
21318
|
+
if (typeof window !== 'undefined' && obj === window) {
|
|
21319
|
+
return '{ [object Window] }';
|
|
21320
|
+
}
|
|
21321
|
+
if (
|
|
21322
|
+
(typeof globalThis !== 'undefined' && obj === globalThis)
|
|
21323
|
+
|| (typeof __webpack_require__.g !== 'undefined' && obj === __webpack_require__.g)
|
|
21324
|
+
) {
|
|
21325
|
+
return '{ [object globalThis] }';
|
|
21326
|
+
}
|
|
20982
21327
|
if (!isDate(obj) && !isRegExp(obj)) {
|
|
20983
21328
|
var ys = arrObjKeys(obj, inspect);
|
|
20984
21329
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
@@ -21369,6 +21714,59 @@ module.exports = pThrottle;
|
|
|
21369
21714
|
module.exports.AbortError = AbortError;
|
|
21370
21715
|
|
|
21371
21716
|
|
|
21717
|
+
/***/ }),
|
|
21718
|
+
|
|
21719
|
+
/***/ "../node_modules/set-function-length/index.js":
|
|
21720
|
+
/*!****************************************************!*\
|
|
21721
|
+
!*** ../node_modules/set-function-length/index.js ***!
|
|
21722
|
+
\****************************************************/
|
|
21723
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21724
|
+
|
|
21725
|
+
"use strict";
|
|
21726
|
+
|
|
21727
|
+
|
|
21728
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
21729
|
+
var define = __webpack_require__(/*! define-data-property */ "../node_modules/define-data-property/index.js");
|
|
21730
|
+
var hasDescriptors = __webpack_require__(/*! has-property-descriptors */ "../node_modules/has-property-descriptors/index.js")();
|
|
21731
|
+
var gOPD = __webpack_require__(/*! gopd */ "../node_modules/gopd/index.js");
|
|
21732
|
+
|
|
21733
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
21734
|
+
var $floor = GetIntrinsic('%Math.floor%');
|
|
21735
|
+
|
|
21736
|
+
/** @type {import('.')} */
|
|
21737
|
+
module.exports = function setFunctionLength(fn, length) {
|
|
21738
|
+
if (typeof fn !== 'function') {
|
|
21739
|
+
throw new $TypeError('`fn` is not a function');
|
|
21740
|
+
}
|
|
21741
|
+
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
|
|
21742
|
+
throw new $TypeError('`length` must be a positive 32-bit integer');
|
|
21743
|
+
}
|
|
21744
|
+
|
|
21745
|
+
var loose = arguments.length > 2 && !!arguments[2];
|
|
21746
|
+
|
|
21747
|
+
var functionLengthIsConfigurable = true;
|
|
21748
|
+
var functionLengthIsWritable = true;
|
|
21749
|
+
if ('length' in fn && gOPD) {
|
|
21750
|
+
var desc = gOPD(fn, 'length');
|
|
21751
|
+
if (desc && !desc.configurable) {
|
|
21752
|
+
functionLengthIsConfigurable = false;
|
|
21753
|
+
}
|
|
21754
|
+
if (desc && !desc.writable) {
|
|
21755
|
+
functionLengthIsWritable = false;
|
|
21756
|
+
}
|
|
21757
|
+
}
|
|
21758
|
+
|
|
21759
|
+
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
21760
|
+
if (hasDescriptors) {
|
|
21761
|
+
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
|
|
21762
|
+
} else {
|
|
21763
|
+
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
|
|
21764
|
+
}
|
|
21765
|
+
}
|
|
21766
|
+
return fn;
|
|
21767
|
+
};
|
|
21768
|
+
|
|
21769
|
+
|
|
21372
21770
|
/***/ }),
|
|
21373
21771
|
|
|
21374
21772
|
/***/ "../node_modules/side-channel/index.js":
|
|
@@ -21384,7 +21782,7 @@ var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get
|
|
|
21384
21782
|
var callBound = __webpack_require__(/*! call-bind/callBound */ "../node_modules/call-bind/callBound.js");
|
|
21385
21783
|
var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/object-inspect/index.js");
|
|
21386
21784
|
|
|
21387
|
-
var $TypeError =
|
|
21785
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
21388
21786
|
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
21389
21787
|
var $Map = GetIntrinsic('%Map%', true);
|
|
21390
21788
|
|
|
@@ -21396,49 +21794,58 @@ var $mapSet = callBound('Map.prototype.set', true);
|
|
|
21396
21794
|
var $mapHas = callBound('Map.prototype.has', true);
|
|
21397
21795
|
|
|
21398
21796
|
/*
|
|
21399
|
-
|
|
21400
|
-
|
|
21401
|
-
|
|
21402
|
-
|
|
21403
|
-
|
|
21404
|
-
* used nodes can be accessed relatively quickly.
|
|
21405
|
-
*/
|
|
21797
|
+
* This function traverses the list returning the node corresponding to the given key.
|
|
21798
|
+
*
|
|
21799
|
+
* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list. By doing so, all the recently used nodes can be accessed relatively quickly.
|
|
21800
|
+
*/
|
|
21801
|
+
/** @type {import('.').listGetNode} */
|
|
21406
21802
|
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
21407
|
-
|
|
21803
|
+
/** @type {typeof list | NonNullable<(typeof list)['next']>} */
|
|
21804
|
+
var prev = list;
|
|
21805
|
+
/** @type {(typeof list)['next']} */
|
|
21806
|
+
var curr;
|
|
21807
|
+
for (; (curr = prev.next) !== null; prev = curr) {
|
|
21408
21808
|
if (curr.key === key) {
|
|
21409
21809
|
prev.next = curr.next;
|
|
21410
|
-
|
|
21810
|
+
// eslint-disable-next-line no-extra-parens
|
|
21811
|
+
curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
|
|
21411
21812
|
list.next = curr; // eslint-disable-line no-param-reassign
|
|
21412
21813
|
return curr;
|
|
21413
21814
|
}
|
|
21414
21815
|
}
|
|
21415
21816
|
};
|
|
21416
21817
|
|
|
21818
|
+
/** @type {import('.').listGet} */
|
|
21417
21819
|
var listGet = function (objects, key) {
|
|
21418
21820
|
var node = listGetNode(objects, key);
|
|
21419
21821
|
return node && node.value;
|
|
21420
21822
|
};
|
|
21823
|
+
/** @type {import('.').listSet} */
|
|
21421
21824
|
var listSet = function (objects, key, value) {
|
|
21422
21825
|
var node = listGetNode(objects, key);
|
|
21423
21826
|
if (node) {
|
|
21424
21827
|
node.value = value;
|
|
21425
21828
|
} else {
|
|
21426
21829
|
// Prepend the new node to the beginning of the list
|
|
21427
|
-
objects.next = { // eslint-disable-line no-param-reassign
|
|
21830
|
+
objects.next = /** @type {import('.').ListNode<typeof value>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
21428
21831
|
key: key,
|
|
21429
21832
|
next: objects.next,
|
|
21430
21833
|
value: value
|
|
21431
|
-
};
|
|
21834
|
+
});
|
|
21432
21835
|
}
|
|
21433
21836
|
};
|
|
21837
|
+
/** @type {import('.').listHas} */
|
|
21434
21838
|
var listHas = function (objects, key) {
|
|
21435
21839
|
return !!listGetNode(objects, key);
|
|
21436
21840
|
};
|
|
21437
21841
|
|
|
21842
|
+
/** @type {import('.')} */
|
|
21438
21843
|
module.exports = function getSideChannel() {
|
|
21439
|
-
var $wm;
|
|
21440
|
-
var $m;
|
|
21441
|
-
var $o;
|
|
21844
|
+
/** @type {WeakMap<object, unknown>} */ var $wm;
|
|
21845
|
+
/** @type {Map<object, unknown>} */ var $m;
|
|
21846
|
+
/** @type {import('.').RootNode<unknown>} */ var $o;
|
|
21847
|
+
|
|
21848
|
+
/** @type {import('.').Channel} */
|
|
21442
21849
|
var channel = {
|
|
21443
21850
|
assert: function (key) {
|
|
21444
21851
|
if (!channel.has(key)) {
|
|
@@ -21489,11 +21896,7 @@ module.exports = function getSideChannel() {
|
|
|
21489
21896
|
$mapSet($m, key, value);
|
|
21490
21897
|
} else {
|
|
21491
21898
|
if (!$o) {
|
|
21492
|
-
|
|
21493
|
-
* Initialize the linked list as an empty node, so that we don't have
|
|
21494
|
-
* to special-case handling of the first node: we can always refer to
|
|
21495
|
-
* it as (previous node).next, instead of something like (list).head
|
|
21496
|
-
*/
|
|
21899
|
+
// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
|
|
21497
21900
|
$o = { key: {}, next: null };
|
|
21498
21901
|
}
|
|
21499
21902
|
listSet($o, key, value);
|
|
@@ -21782,7 +22185,10 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
21782
22185
|
}
|
|
21783
22186
|
}
|
|
21784
22187
|
|
|
21785
|
-
|
|
22188
|
+
// credential field is set by default (https://github.com/axios/axios/pull/6505)
|
|
22189
|
+
// which is causing issue when running cloudflare worker (https://github.com/cloudflare/workers-sdk/issues/2514)
|
|
22190
|
+
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
22191
|
+
if (isCredentialsSupported && !_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(withCredentials)) {
|
|
21786
22192
|
withCredentials = withCredentials ? 'include' : 'omit';
|
|
21787
22193
|
}
|
|
21788
22194
|
|
|
@@ -26749,7 +27155,7 @@ function createClient(params) {
|
|
|
26749
27155
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
26750
27156
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
26751
27157
|
var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)( // @ts-expect-error
|
|
26752
|
-
"".concat(sdkMain, "/").concat("11.31.
|
|
27158
|
+
"".concat(sdkMain, "/").concat("11.31.5"), params.application, params.integration, params.feature);
|
|
26753
27159
|
var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
26754
27160
|
userAgent: userAgent
|
|
26755
27161
|
}));
|