contentful-management 11.30.1 → 11.31.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/contentful-management.browser.js +143 -536
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +138 -531
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/entities/content-type-fields.js +1 -1
- package/dist/es-modules/plain/pagination-helper.js +5 -0
- package/dist/typings/adapters/REST/endpoints/access-token.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/api-key.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-access-token.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-action-call.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-action.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-bundle.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-definition.d.ts +2 -2
- package/dist/typings/adapters/REST/endpoints/app-details.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-event-subscription.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-installation.d.ts +2 -2
- package/dist/typings/adapters/REST/endpoints/app-key.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-signed-request.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-signing-secret.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-upload.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/asset-key.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/asset.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/bulk-action.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/comment.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/concept-scheme.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/concept.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/content-type.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/editor-interface.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/entry.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/environment-alias.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/environment-template-installation.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/environment-template.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/environment.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/extension.d.ts +2 -2
- package/dist/typings/adapters/REST/endpoints/http.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/locale.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/organization-invitation.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/organization-membership.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/organization.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/personal-access-token.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/preview-api-key.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/raw.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/release-action.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/release.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/role.d.ts +2 -2
- package/dist/typings/adapters/REST/endpoints/scheduled-action.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/snapshot.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/space-member.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/space-membership.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/space.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/tag.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/task.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/team-membership.d.ts +3 -3
- package/dist/typings/adapters/REST/endpoints/team-space-membership.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/team.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/ui-config.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/upload.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/usage.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/user-ui-config.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/user.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/utils.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/webhook.d.ts +4 -4
- package/dist/typings/adapters/REST/endpoints/workflow-definition.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/workflow.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/workflows-changelog.d.ts +1 -1
- package/dist/typings/adapters/REST/rest-adapter.d.ts +2 -2
- package/dist/typings/adapters/REST/types.d.ts +2 -2
- package/dist/typings/common-types.d.ts +60 -59
- package/dist/typings/common-utils.d.ts +1 -1
- package/dist/typings/constants/editor-interface-defaults/controls-defaults.d.ts +1 -1
- package/dist/typings/contentful-management.d.ts +2 -2
- package/dist/typings/create-adapter.d.ts +2 -2
- package/dist/typings/create-app-definition-api.d.ts +2 -2
- package/dist/typings/create-contentful-api.d.ts +9 -9
- package/dist/typings/create-entry-api.d.ts +4 -4
- package/dist/typings/create-environment-api.d.ts +6 -6
- package/dist/typings/create-environment-template-api.d.ts +3 -3
- package/dist/typings/create-organization-api.d.ts +23 -23
- package/dist/typings/create-space-api.d.ts +9 -9
- package/dist/typings/create-ui-config-api.d.ts +1 -1
- package/dist/typings/create-user-ui-config-api.d.ts +1 -1
- package/dist/typings/entities/access-token.d.ts +1 -1
- package/dist/typings/entities/api-key.d.ts +1 -1
- package/dist/typings/entities/app-access-token.d.ts +2 -2
- package/dist/typings/entities/app-action-call.d.ts +3 -3
- package/dist/typings/entities/app-action.d.ts +3 -3
- package/dist/typings/entities/app-bundle.d.ts +2 -2
- package/dist/typings/entities/app-definition.d.ts +7 -7
- package/dist/typings/entities/app-details.d.ts +2 -2
- package/dist/typings/entities/app-event-subscription.d.ts +2 -2
- package/dist/typings/entities/app-installation.d.ts +3 -3
- package/dist/typings/entities/app-key.d.ts +2 -2
- package/dist/typings/entities/app-signed-request.d.ts +2 -2
- package/dist/typings/entities/app-signing-secret.d.ts +2 -2
- package/dist/typings/entities/app-upload.d.ts +2 -2
- package/dist/typings/entities/asset-key.d.ts +1 -1
- package/dist/typings/entities/asset.d.ts +2 -2
- package/dist/typings/entities/bulk-action.d.ts +2 -2
- package/dist/typings/entities/comment.d.ts +2 -2
- package/dist/typings/entities/concept-scheme.d.ts +3 -3
- package/dist/typings/entities/concept.d.ts +2 -2
- package/dist/typings/entities/content-type-fields.d.ts +2 -2
- package/dist/typings/entities/content-type.d.ts +5 -5
- package/dist/typings/entities/editor-interface.d.ts +2 -2
- package/dist/typings/entities/entry.d.ts +3 -3
- package/dist/typings/entities/environment-alias.d.ts +1 -1
- package/dist/typings/entities/environment-template-installation.d.ts +1 -1
- package/dist/typings/entities/environment-template.d.ts +4 -4
- package/dist/typings/entities/environment.d.ts +2 -2
- package/dist/typings/entities/extension.d.ts +4 -4
- package/dist/typings/entities/function.d.ts +1 -1
- package/dist/typings/entities/locale.d.ts +2 -2
- package/dist/typings/entities/organization-invitation.d.ts +1 -1
- package/dist/typings/entities/organization-membership.d.ts +1 -1
- package/dist/typings/entities/organization.d.ts +2 -2
- package/dist/typings/entities/personal-access-token.d.ts +1 -1
- package/dist/typings/entities/preview-api-key.d.ts +1 -1
- package/dist/typings/entities/release-action.d.ts +2 -2
- package/dist/typings/entities/release.d.ts +4 -3
- package/dist/typings/entities/role.d.ts +1 -1
- package/dist/typings/entities/scheduled-action.d.ts +1 -1
- package/dist/typings/entities/snapshot.d.ts +1 -1
- package/dist/typings/entities/space-member.d.ts +1 -1
- package/dist/typings/entities/space-membership.d.ts +1 -1
- package/dist/typings/entities/space.d.ts +2 -2
- package/dist/typings/entities/tag.d.ts +1 -1
- package/dist/typings/entities/task.d.ts +1 -1
- package/dist/typings/entities/team-membership.d.ts +1 -1
- package/dist/typings/entities/team-space-membership.d.ts +1 -1
- package/dist/typings/entities/team.d.ts +1 -1
- package/dist/typings/entities/ui-config.d.ts +1 -1
- package/dist/typings/entities/upload.d.ts +1 -1
- package/dist/typings/entities/usage.d.ts +1 -1
- package/dist/typings/entities/user-ui-config.d.ts +1 -1
- package/dist/typings/entities/user.d.ts +1 -1
- package/dist/typings/entities/webhook.d.ts +2 -2
- package/dist/typings/entities/workflow-definition.d.ts +1 -1
- package/dist/typings/entities/workflow.d.ts +1 -1
- package/dist/typings/entities/workflows-changelog-entry.d.ts +2 -1
- package/dist/typings/methods/bulk-action.d.ts +3 -3
- package/dist/typings/methods/content-type.d.ts +2 -2
- package/dist/typings/methods/release-action.d.ts +3 -3
- package/dist/typings/plain/as-iterator.d.ts +1 -1
- package/dist/typings/plain/checks.d.ts +1 -1
- package/dist/typings/plain/common-types.d.ts +61 -61
- package/dist/typings/plain/entities/app-access-token.d.ts +3 -3
- package/dist/typings/plain/entities/app-action-call.d.ts +3 -3
- package/dist/typings/plain/entities/app-action.d.ts +3 -3
- package/dist/typings/plain/entities/app-bundle.d.ts +3 -3
- package/dist/typings/plain/entities/app-definition.d.ts +4 -4
- package/dist/typings/plain/entities/app-details.d.ts +3 -3
- package/dist/typings/plain/entities/app-event-subscription.d.ts +3 -3
- package/dist/typings/plain/entities/app-installation.d.ts +5 -5
- package/dist/typings/plain/entities/app-key.d.ts +3 -3
- package/dist/typings/plain/entities/app-signed-request.d.ts +3 -3
- package/dist/typings/plain/entities/app-signing-secret.d.ts +3 -3
- package/dist/typings/plain/entities/app-upload.d.ts +4 -4
- package/dist/typings/plain/entities/comment.d.ts +4 -4
- package/dist/typings/plain/entities/concept-scheme.d.ts +4 -4
- package/dist/typings/plain/entities/concept.d.ts +4 -4
- package/dist/typings/plain/entities/editor-interface.d.ts +4 -4
- package/dist/typings/plain/entities/environment-alias.d.ts +4 -4
- package/dist/typings/plain/entities/environment.d.ts +4 -4
- package/dist/typings/plain/entities/extension.d.ts +4 -4
- package/dist/typings/plain/entities/locale.d.ts +4 -4
- package/dist/typings/plain/entities/organization.d.ts +3 -3
- package/dist/typings/plain/entities/role.d.ts +4 -4
- package/dist/typings/plain/entities/space-member.d.ts +3 -3
- package/dist/typings/plain/entities/space-membership.d.ts +4 -4
- package/dist/typings/plain/entities/space.d.ts +4 -4
- package/dist/typings/plain/entities/tag.d.ts +5 -5
- package/dist/typings/plain/entities/task.d.ts +4 -4
- package/dist/typings/plain/entities/team-membership.d.ts +4 -4
- package/dist/typings/plain/entities/team-space-membership.d.ts +4 -4
- package/dist/typings/plain/entities/team.d.ts +4 -4
- package/dist/typings/plain/entities/ui-config.d.ts +3 -3
- package/dist/typings/plain/entities/upload.d.ts +3 -3
- package/dist/typings/plain/entities/usage.d.ts +3 -3
- package/dist/typings/plain/entities/user-ui-config.d.ts +3 -3
- package/dist/typings/plain/entities/user.d.ts +3 -3
- package/dist/typings/plain/entities/webhook.d.ts +4 -4
- package/dist/typings/plain/entities/workflow-definition.d.ts +4 -4
- package/dist/typings/plain/entities/workflow.d.ts +4 -4
- package/dist/typings/plain/entities/workflows-changelog.d.ts +4 -4
- package/dist/typings/plain/pagination-helper.d.ts +6 -2
- package/dist/typings/plain/plain-client.d.ts +3 -3
- package/dist/typings/plain/wrappers/wrap.d.ts +1 -1
- package/package.json +1 -1
|
@@ -302,7 +302,7 @@ function _callAppActionResult() {
|
|
|
302
302
|
retryInterval = params.retryInterval || APP_ACTION_CALL_RETRY_INTERVAL;
|
|
303
303
|
retries = params.retries || APP_ACTION_CALL_RETRIES;
|
|
304
304
|
return _context3.abrupt("return", new Promise(function (resolve, reject) {
|
|
305
|
-
var
|
|
305
|
+
var _poll = /*#__PURE__*/function () {
|
|
306
306
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
307
307
|
var _result$response, _result$response2, result, error, _error;
|
|
308
308
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -340,7 +340,7 @@ function _callAppActionResult() {
|
|
|
340
340
|
_context2.next = 17;
|
|
341
341
|
return (0,_common_utils__WEBPACK_IMPORTED_MODULE_1__.waitFor)(retryInterval);
|
|
342
342
|
case 17:
|
|
343
|
-
|
|
343
|
+
_poll();
|
|
344
344
|
_context2.next = 22;
|
|
345
345
|
break;
|
|
346
346
|
case 20:
|
|
@@ -363,7 +363,7 @@ function _callAppActionResult() {
|
|
|
363
363
|
_context2.next = 32;
|
|
364
364
|
return (0,_common_utils__WEBPACK_IMPORTED_MODULE_1__.waitFor)(retryInterval);
|
|
365
365
|
case 32:
|
|
366
|
-
|
|
366
|
+
_poll();
|
|
367
367
|
case 33:
|
|
368
368
|
case "end":
|
|
369
369
|
return _context2.stop();
|
|
@@ -374,7 +374,7 @@ function _callAppActionResult() {
|
|
|
374
374
|
return _ref3.apply(this, arguments);
|
|
375
375
|
};
|
|
376
376
|
}();
|
|
377
|
-
|
|
377
|
+
_poll();
|
|
378
378
|
}));
|
|
379
379
|
case 5:
|
|
380
380
|
case "end":
|
|
@@ -16653,6 +16653,11 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
16653
16653
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16654
16654
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
16655
16655
|
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
16656
|
+
/**
|
|
16657
|
+
* `sys.type` tends to cause type clashes downstream because it more commonly types less strict
|
|
16658
|
+
* as 'string'. Because we don't rely on it for this functionality, we are fine with omitting it.
|
|
16659
|
+
*/
|
|
16660
|
+
|
|
16656
16661
|
function isOffsetBasedCollection(collection) {
|
|
16657
16662
|
return 'total' in collection;
|
|
16658
16663
|
}
|
|
@@ -17425,26 +17430,38 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
17425
17430
|
|
|
17426
17431
|
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
17427
17432
|
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
17428
|
-
var setFunctionLength = __webpack_require__(/*! set-function-length */ "../node_modules/set-function-length/index.js");
|
|
17429
17433
|
|
|
17430
|
-
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
17431
17434
|
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
17432
17435
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
17433
17436
|
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
17434
17437
|
|
|
17435
|
-
var $
|
|
17438
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
17439
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
17436
17440
|
var $max = GetIntrinsic('%Math.max%');
|
|
17437
17441
|
|
|
17438
|
-
|
|
17439
|
-
|
|
17440
|
-
|
|
17442
|
+
if ($defineProperty) {
|
|
17443
|
+
try {
|
|
17444
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
17445
|
+
} catch (e) {
|
|
17446
|
+
// IE 8 has a broken defineProperty
|
|
17447
|
+
$defineProperty = null;
|
|
17441
17448
|
}
|
|
17449
|
+
}
|
|
17450
|
+
|
|
17451
|
+
module.exports = function callBind(originalFunction) {
|
|
17442
17452
|
var func = $reflectApply(bind, $call, arguments);
|
|
17443
|
-
|
|
17444
|
-
func,
|
|
17445
|
-
|
|
17446
|
-
|
|
17447
|
-
|
|
17453
|
+
if ($gOPD && $defineProperty) {
|
|
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
|
+
}
|
|
17463
|
+
}
|
|
17464
|
+
return func;
|
|
17448
17465
|
};
|
|
17449
17466
|
|
|
17450
17467
|
var applyBind = function applyBind() {
|
|
@@ -17479,14 +17496,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17479
17496
|
/* harmony export */ });
|
|
17480
17497
|
/* 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");
|
|
17481
17498
|
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_0__);
|
|
17482
|
-
/* harmony import */ var
|
|
17483
|
-
/* harmony import */ var
|
|
17484
|
-
/* harmony import */ var
|
|
17485
|
-
/* harmony import */ var
|
|
17486
|
-
/* harmony import */ var
|
|
17487
|
-
/* harmony import */ var
|
|
17488
|
-
/* harmony import */ var
|
|
17489
|
-
/* harmony import */ var
|
|
17499
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! qs */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/index.js");
|
|
17500
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_1__);
|
|
17501
|
+
/* harmony import */ var lodash_isstring__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash.isstring */ "../node_modules/lodash.isstring/index.js");
|
|
17502
|
+
/* harmony import */ var lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isstring__WEBPACK_IMPORTED_MODULE_2__);
|
|
17503
|
+
/* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! p-throttle */ "../node_modules/p-throttle/index.js");
|
|
17504
|
+
/* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(p_throttle__WEBPACK_IMPORTED_MODULE_3__);
|
|
17505
|
+
/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash.isplainobject */ "../node_modules/lodash.isplainobject/index.js");
|
|
17506
|
+
/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4__);
|
|
17490
17507
|
|
|
17491
17508
|
|
|
17492
17509
|
|
|
@@ -18189,7 +18206,7 @@ function calculateLimit(type) {
|
|
|
18189
18206
|
}
|
|
18190
18207
|
function createThrottle(limit, logger) {
|
|
18191
18208
|
logger('info', "Throttle request to ".concat(limit, "/s"));
|
|
18192
|
-
return
|
|
18209
|
+
return p_throttle__WEBPACK_IMPORTED_MODULE_3___default()({
|
|
18193
18210
|
limit: limit,
|
|
18194
18211
|
interval: 1000,
|
|
18195
18212
|
strict: false
|
|
@@ -18199,7 +18216,7 @@ var rateLimitThrottle = (function (axiosInstance) {
|
|
|
18199
18216
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'auto';
|
|
18200
18217
|
var _axiosInstance$defaul = axiosInstance.defaults.logHandler,
|
|
18201
18218
|
logHandler = _axiosInstance$defaul === void 0 ? noop : _axiosInstance$defaul;
|
|
18202
|
-
var limit =
|
|
18219
|
+
var limit = lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default()(type) ? calculateLimit(type) : calculateLimit('auto', type);
|
|
18203
18220
|
var throttle = createThrottle(limit, logHandler);
|
|
18204
18221
|
var isCalculated = false;
|
|
18205
18222
|
var requestInterceptorId = axiosInstance.interceptors.request.use(function (config) {
|
|
@@ -18210,7 +18227,7 @@ var rateLimitThrottle = (function (axiosInstance) {
|
|
|
18210
18227
|
return Promise.reject(error);
|
|
18211
18228
|
});
|
|
18212
18229
|
var responseInterceptorId = axiosInstance.interceptors.response.use(function (response) {
|
|
18213
|
-
if (!isCalculated &&
|
|
18230
|
+
if (!isCalculated && lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default()(type) && (type === 'auto' || PERCENTAGE_REGEX.test(type)) && response.headers && response.headers['x-contentful-ratelimit-second-limit']) {
|
|
18214
18231
|
var rawLimit = parseInt(response.headers['x-contentful-ratelimit-second-limit']);
|
|
18215
18232
|
var nextLimit = calculateLimit(type, rawLimit);
|
|
18216
18233
|
if (nextLimit !== limit) {
|
|
@@ -18322,7 +18339,7 @@ function createHttpClient(axios, options) {
|
|
|
18322
18339
|
maxBodyLength: config.maxBodyLength,
|
|
18323
18340
|
paramsSerializer: {
|
|
18324
18341
|
serialize: function serialize(params) {
|
|
18325
|
-
return
|
|
18342
|
+
return qs__WEBPACK_IMPORTED_MODULE_1___default().stringify(params);
|
|
18326
18343
|
}
|
|
18327
18344
|
},
|
|
18328
18345
|
// Contentful
|
|
@@ -18537,7 +18554,7 @@ function errorHandler(errorResponse) {
|
|
|
18537
18554
|
var token = "...".concat(config.headers['Authorization'].toString().substr(-5));
|
|
18538
18555
|
config.headers['Authorization'] = "Bearer ".concat(token);
|
|
18539
18556
|
}
|
|
18540
|
-
if (!
|
|
18557
|
+
if (!lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(response) || !lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(config)) {
|
|
18541
18558
|
throw errorResponse;
|
|
18542
18559
|
}
|
|
18543
18560
|
var data = response === null || response === void 0 ? void 0 : response.data;
|
|
@@ -18547,7 +18564,7 @@ function errorHandler(errorResponse) {
|
|
|
18547
18564
|
message: '',
|
|
18548
18565
|
details: {}
|
|
18549
18566
|
};
|
|
18550
|
-
if (config &&
|
|
18567
|
+
if (config && lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(config)) {
|
|
18551
18568
|
errorData.request = {
|
|
18552
18569
|
url: config.url,
|
|
18553
18570
|
headers: config.headers,
|
|
@@ -19020,18 +19037,15 @@ var isArray = Array.isArray;
|
|
|
19020
19037
|
|
|
19021
19038
|
var defaults = {
|
|
19022
19039
|
allowDots: false,
|
|
19023
|
-
allowEmptyArrays: false,
|
|
19024
19040
|
allowPrototypes: false,
|
|
19025
19041
|
allowSparse: false,
|
|
19026
19042
|
arrayLimit: 20,
|
|
19027
19043
|
charset: 'utf-8',
|
|
19028
19044
|
charsetSentinel: false,
|
|
19029
19045
|
comma: false,
|
|
19030
|
-
decodeDotInKeys: false,
|
|
19031
19046
|
decoder: utils.decode,
|
|
19032
19047
|
delimiter: '&',
|
|
19033
19048
|
depth: 5,
|
|
19034
|
-
duplicates: 'combine',
|
|
19035
19049
|
ignoreQueryPrefix: false,
|
|
19036
19050
|
interpretNumericEntities: false,
|
|
19037
19051
|
parameterLimit: 1000,
|
|
@@ -19068,7 +19082,6 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
19068
19082
|
var obj = { __proto__: null };
|
|
19069
19083
|
|
|
19070
19084
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
19071
|
-
cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
|
|
19072
19085
|
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
19073
19086
|
var parts = cleanStr.split(options.delimiter, limit);
|
|
19074
19087
|
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
@@ -19120,10 +19133,9 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
19120
19133
|
val = isArray(val) ? [val] : val;
|
|
19121
19134
|
}
|
|
19122
19135
|
|
|
19123
|
-
|
|
19124
|
-
if (existing && options.duplicates === 'combine') {
|
|
19136
|
+
if (has.call(obj, key)) {
|
|
19125
19137
|
obj[key] = utils.combine(obj[key], val);
|
|
19126
|
-
} else
|
|
19138
|
+
} else {
|
|
19127
19139
|
obj[key] = val;
|
|
19128
19140
|
}
|
|
19129
19141
|
}
|
|
@@ -19139,27 +19151,24 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
19139
19151
|
var root = chain[i];
|
|
19140
19152
|
|
|
19141
19153
|
if (root === '[]' && options.parseArrays) {
|
|
19142
|
-
obj =
|
|
19143
|
-
? []
|
|
19144
|
-
: [].concat(leaf);
|
|
19154
|
+
obj = [].concat(leaf);
|
|
19145
19155
|
} else {
|
|
19146
19156
|
obj = options.plainObjects ? Object.create(null) : {};
|
|
19147
19157
|
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
19148
|
-
var
|
|
19149
|
-
|
|
19150
|
-
if (!options.parseArrays && decodedRoot === '') {
|
|
19158
|
+
var index = parseInt(cleanRoot, 10);
|
|
19159
|
+
if (!options.parseArrays && cleanRoot === '') {
|
|
19151
19160
|
obj = { 0: leaf };
|
|
19152
19161
|
} else if (
|
|
19153
19162
|
!isNaN(index)
|
|
19154
|
-
&& root !==
|
|
19155
|
-
&& String(index) ===
|
|
19163
|
+
&& root !== cleanRoot
|
|
19164
|
+
&& String(index) === cleanRoot
|
|
19156
19165
|
&& index >= 0
|
|
19157
19166
|
&& (options.parseArrays && index <= options.arrayLimit)
|
|
19158
19167
|
) {
|
|
19159
19168
|
obj = [];
|
|
19160
19169
|
obj[index] = leaf;
|
|
19161
|
-
} else if (
|
|
19162
|
-
obj[
|
|
19170
|
+
} else if (cleanRoot !== '__proto__') {
|
|
19171
|
+
obj[cleanRoot] = leaf;
|
|
19163
19172
|
}
|
|
19164
19173
|
}
|
|
19165
19174
|
|
|
@@ -19228,15 +19237,7 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
19228
19237
|
return defaults;
|
|
19229
19238
|
}
|
|
19230
19239
|
|
|
19231
|
-
if (
|
|
19232
|
-
throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
|
|
19233
|
-
}
|
|
19234
|
-
|
|
19235
|
-
if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') {
|
|
19236
|
-
throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');
|
|
19237
|
-
}
|
|
19238
|
-
|
|
19239
|
-
if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') {
|
|
19240
|
+
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
|
19240
19241
|
throw new TypeError('Decoder has to be a function.');
|
|
19241
19242
|
}
|
|
19242
19243
|
|
|
@@ -19245,29 +19246,18 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
19245
19246
|
}
|
|
19246
19247
|
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
19247
19248
|
|
|
19248
|
-
var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;
|
|
19249
|
-
|
|
19250
|
-
if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') {
|
|
19251
|
-
throw new TypeError('The duplicates option must be either combine, first, or last');
|
|
19252
|
-
}
|
|
19253
|
-
|
|
19254
|
-
var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
19255
|
-
|
|
19256
19249
|
return {
|
|
19257
|
-
allowDots: allowDots,
|
|
19258
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
19250
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
19259
19251
|
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
19260
19252
|
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
19261
19253
|
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
19262
19254
|
charset: charset,
|
|
19263
19255
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
19264
19256
|
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
19265
|
-
decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
19266
19257
|
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
19267
19258
|
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
19268
19259
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
19269
19260
|
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
19270
|
-
duplicates: duplicates,
|
|
19271
19261
|
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
19272
19262
|
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
19273
19263
|
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
@@ -19345,13 +19335,10 @@ var defaultFormat = formats['default'];
|
|
|
19345
19335
|
var defaults = {
|
|
19346
19336
|
addQueryPrefix: false,
|
|
19347
19337
|
allowDots: false,
|
|
19348
|
-
allowEmptyArrays: false,
|
|
19349
|
-
arrayFormat: 'indices',
|
|
19350
19338
|
charset: 'utf-8',
|
|
19351
19339
|
charsetSentinel: false,
|
|
19352
19340
|
delimiter: '&',
|
|
19353
19341
|
encode: true,
|
|
19354
|
-
encodeDotInKeys: false,
|
|
19355
19342
|
encoder: utils.encode,
|
|
19356
19343
|
encodeValuesOnly: false,
|
|
19357
19344
|
format: defaultFormat,
|
|
@@ -19380,10 +19367,8 @@ var stringify = function stringify(
|
|
|
19380
19367
|
prefix,
|
|
19381
19368
|
generateArrayPrefix,
|
|
19382
19369
|
commaRoundTrip,
|
|
19383
|
-
allowEmptyArrays,
|
|
19384
19370
|
strictNullHandling,
|
|
19385
19371
|
skipNulls,
|
|
19386
|
-
encodeDotInKeys,
|
|
19387
19372
|
encoder,
|
|
19388
19373
|
filter,
|
|
19389
19374
|
sort,
|
|
@@ -19465,13 +19450,7 @@ var stringify = function stringify(
|
|
|
19465
19450
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
19466
19451
|
}
|
|
19467
19452
|
|
|
19468
|
-
var
|
|
19469
|
-
|
|
19470
|
-
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
|
|
19471
|
-
|
|
19472
|
-
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
19473
|
-
return adjustedPrefix + '[]';
|
|
19474
|
-
}
|
|
19453
|
+
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
|
|
19475
19454
|
|
|
19476
19455
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
19477
19456
|
var key = objKeys[j];
|
|
@@ -19481,10 +19460,9 @@ var stringify = function stringify(
|
|
|
19481
19460
|
continue;
|
|
19482
19461
|
}
|
|
19483
19462
|
|
|
19484
|
-
var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
|
|
19485
19463
|
var keyPrefix = isArray(obj)
|
|
19486
|
-
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix,
|
|
19487
|
-
: adjustedPrefix + (allowDots ? '.' +
|
|
19464
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
|
|
19465
|
+
: adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
19488
19466
|
|
|
19489
19467
|
sideChannel.set(object, step);
|
|
19490
19468
|
var valueSideChannel = getSideChannel();
|
|
@@ -19494,10 +19472,8 @@ var stringify = function stringify(
|
|
|
19494
19472
|
keyPrefix,
|
|
19495
19473
|
generateArrayPrefix,
|
|
19496
19474
|
commaRoundTrip,
|
|
19497
|
-
allowEmptyArrays,
|
|
19498
19475
|
strictNullHandling,
|
|
19499
19476
|
skipNulls,
|
|
19500
|
-
encodeDotInKeys,
|
|
19501
19477
|
generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,
|
|
19502
19478
|
filter,
|
|
19503
19479
|
sort,
|
|
@@ -19519,14 +19495,6 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
19519
19495
|
return defaults;
|
|
19520
19496
|
}
|
|
19521
19497
|
|
|
19522
|
-
if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {
|
|
19523
|
-
throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
|
|
19524
|
-
}
|
|
19525
|
-
|
|
19526
|
-
if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') {
|
|
19527
|
-
throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided');
|
|
19528
|
-
}
|
|
19529
|
-
|
|
19530
19498
|
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
|
19531
19499
|
throw new TypeError('Encoder has to be a function.');
|
|
19532
19500
|
}
|
|
@@ -19550,32 +19518,13 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
19550
19518
|
filter = opts.filter;
|
|
19551
19519
|
}
|
|
19552
19520
|
|
|
19553
|
-
var arrayFormat;
|
|
19554
|
-
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
19555
|
-
arrayFormat = opts.arrayFormat;
|
|
19556
|
-
} else if ('indices' in opts) {
|
|
19557
|
-
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
19558
|
-
} else {
|
|
19559
|
-
arrayFormat = defaults.arrayFormat;
|
|
19560
|
-
}
|
|
19561
|
-
|
|
19562
|
-
if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
19563
|
-
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
19564
|
-
}
|
|
19565
|
-
|
|
19566
|
-
var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
19567
|
-
|
|
19568
19521
|
return {
|
|
19569
19522
|
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
19570
|
-
allowDots: allowDots,
|
|
19571
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
19572
|
-
arrayFormat: arrayFormat,
|
|
19523
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
19573
19524
|
charset: charset,
|
|
19574
19525
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
19575
|
-
commaRoundTrip: opts.commaRoundTrip,
|
|
19576
19526
|
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
19577
19527
|
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
19578
|
-
encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
19579
19528
|
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
19580
19529
|
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
19581
19530
|
filter: filter,
|
|
@@ -19609,8 +19558,20 @@ module.exports = function (object, opts) {
|
|
|
19609
19558
|
return '';
|
|
19610
19559
|
}
|
|
19611
19560
|
|
|
19612
|
-
var
|
|
19613
|
-
|
|
19561
|
+
var arrayFormat;
|
|
19562
|
+
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
|
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;
|
|
19614
19575
|
|
|
19615
19576
|
if (!objKeys) {
|
|
19616
19577
|
objKeys = Object.keys(obj);
|
|
@@ -19632,10 +19593,8 @@ module.exports = function (object, opts) {
|
|
|
19632
19593
|
key,
|
|
19633
19594
|
generateArrayPrefix,
|
|
19634
19595
|
commaRoundTrip,
|
|
19635
|
-
options.allowEmptyArrays,
|
|
19636
19596
|
options.strictNullHandling,
|
|
19637
19597
|
options.skipNulls,
|
|
19638
|
-
options.encodeDotInKeys,
|
|
19639
19598
|
options.encode ? options.encoder : null,
|
|
19640
19599
|
options.filter,
|
|
19641
19600
|
options.sort,
|
|
@@ -19799,10 +19758,6 @@ var decode = function (str, decoder, charset) {
|
|
|
19799
19758
|
}
|
|
19800
19759
|
};
|
|
19801
19760
|
|
|
19802
|
-
var limit = 1024;
|
|
19803
|
-
|
|
19804
|
-
/* eslint operator-linebreak: [2, "before"] */
|
|
19805
|
-
|
|
19806
19761
|
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
19807
19762
|
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
19808
19763
|
// It has been adapted here for stricter adherence to RFC 3986
|
|
@@ -19824,54 +19779,45 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
|
19824
19779
|
}
|
|
19825
19780
|
|
|
19826
19781
|
var out = '';
|
|
19827
|
-
for (var
|
|
19828
|
-
var
|
|
19829
|
-
|
|
19830
|
-
|
|
19831
|
-
|
|
19832
|
-
|
|
19833
|
-
|
|
19834
|
-
|
|
19835
|
-
|
|
19836
|
-
|
|
19837
|
-
|
|
19838
|
-
|
|
19839
|
-
|
|
19840
|
-
|
|
19841
|
-
|
|
19842
|
-
|
|
19843
|
-
arr[arr.length] = segment.charAt(i);
|
|
19844
|
-
continue;
|
|
19845
|
-
}
|
|
19846
|
-
|
|
19847
|
-
if (c < 0x80) {
|
|
19848
|
-
arr[arr.length] = hexTable[c];
|
|
19849
|
-
continue;
|
|
19850
|
-
}
|
|
19851
|
-
|
|
19852
|
-
if (c < 0x800) {
|
|
19853
|
-
arr[arr.length] = hexTable[0xC0 | (c >> 6)]
|
|
19854
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
19855
|
-
continue;
|
|
19856
|
-
}
|
|
19782
|
+
for (var i = 0; i < string.length; ++i) {
|
|
19783
|
+
var c = string.charCodeAt(i);
|
|
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
|
+
}
|
|
19857
19798
|
|
|
19858
|
-
|
|
19859
|
-
|
|
19860
|
-
|
|
19861
|
-
|
|
19862
|
-
continue;
|
|
19863
|
-
}
|
|
19799
|
+
if (c < 0x80) {
|
|
19800
|
+
out = out + hexTable[c];
|
|
19801
|
+
continue;
|
|
19802
|
+
}
|
|
19864
19803
|
|
|
19865
|
-
|
|
19866
|
-
|
|
19804
|
+
if (c < 0x800) {
|
|
19805
|
+
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
|
19806
|
+
continue;
|
|
19807
|
+
}
|
|
19867
19808
|
|
|
19868
|
-
|
|
19869
|
-
|
|
19870
|
-
|
|
19871
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
19809
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
19810
|
+
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
|
19811
|
+
continue;
|
|
19872
19812
|
}
|
|
19873
19813
|
|
|
19874
|
-
|
|
19814
|
+
i += 1;
|
|
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)];
|
|
19875
19821
|
}
|
|
19876
19822
|
|
|
19877
19823
|
return out;
|
|
@@ -19942,205 +19888,6 @@ module.exports = {
|
|
|
19942
19888
|
};
|
|
19943
19889
|
|
|
19944
19890
|
|
|
19945
|
-
/***/ }),
|
|
19946
|
-
|
|
19947
|
-
/***/ "../node_modules/define-data-property/index.js":
|
|
19948
|
-
/*!*****************************************************!*\
|
|
19949
|
-
!*** ../node_modules/define-data-property/index.js ***!
|
|
19950
|
-
\*****************************************************/
|
|
19951
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19952
|
-
|
|
19953
|
-
"use strict";
|
|
19954
|
-
|
|
19955
|
-
|
|
19956
|
-
var $defineProperty = __webpack_require__(/*! es-define-property */ "../node_modules/es-define-property/index.js");
|
|
19957
|
-
|
|
19958
|
-
var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "../node_modules/es-errors/syntax.js");
|
|
19959
|
-
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
19960
|
-
|
|
19961
|
-
var gopd = __webpack_require__(/*! gopd */ "../node_modules/gopd/index.js");
|
|
19962
|
-
|
|
19963
|
-
/** @type {import('.')} */
|
|
19964
|
-
module.exports = function defineDataProperty(
|
|
19965
|
-
obj,
|
|
19966
|
-
property,
|
|
19967
|
-
value
|
|
19968
|
-
) {
|
|
19969
|
-
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
19970
|
-
throw new $TypeError('`obj` must be an object or a function`');
|
|
19971
|
-
}
|
|
19972
|
-
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
19973
|
-
throw new $TypeError('`property` must be a string or a symbol`');
|
|
19974
|
-
}
|
|
19975
|
-
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
19976
|
-
throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
|
|
19977
|
-
}
|
|
19978
|
-
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
19979
|
-
throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
|
|
19980
|
-
}
|
|
19981
|
-
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
19982
|
-
throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
|
|
19983
|
-
}
|
|
19984
|
-
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
19985
|
-
throw new $TypeError('`loose`, if provided, must be a boolean');
|
|
19986
|
-
}
|
|
19987
|
-
|
|
19988
|
-
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
19989
|
-
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
19990
|
-
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
19991
|
-
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
19992
|
-
|
|
19993
|
-
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
19994
|
-
var desc = !!gopd && gopd(obj, property);
|
|
19995
|
-
|
|
19996
|
-
if ($defineProperty) {
|
|
19997
|
-
$defineProperty(obj, property, {
|
|
19998
|
-
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
19999
|
-
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
20000
|
-
value: value,
|
|
20001
|
-
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
20002
|
-
});
|
|
20003
|
-
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
20004
|
-
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
20005
|
-
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
20006
|
-
} else {
|
|
20007
|
-
throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
20008
|
-
}
|
|
20009
|
-
};
|
|
20010
|
-
|
|
20011
|
-
|
|
20012
|
-
/***/ }),
|
|
20013
|
-
|
|
20014
|
-
/***/ "../node_modules/es-define-property/index.js":
|
|
20015
|
-
/*!***************************************************!*\
|
|
20016
|
-
!*** ../node_modules/es-define-property/index.js ***!
|
|
20017
|
-
\***************************************************/
|
|
20018
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20019
|
-
|
|
20020
|
-
"use strict";
|
|
20021
|
-
|
|
20022
|
-
|
|
20023
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
20024
|
-
|
|
20025
|
-
/** @type {import('.')} */
|
|
20026
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;
|
|
20027
|
-
if ($defineProperty) {
|
|
20028
|
-
try {
|
|
20029
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
20030
|
-
} catch (e) {
|
|
20031
|
-
// IE 8 has a broken defineProperty
|
|
20032
|
-
$defineProperty = false;
|
|
20033
|
-
}
|
|
20034
|
-
}
|
|
20035
|
-
|
|
20036
|
-
module.exports = $defineProperty;
|
|
20037
|
-
|
|
20038
|
-
|
|
20039
|
-
/***/ }),
|
|
20040
|
-
|
|
20041
|
-
/***/ "../node_modules/es-errors/eval.js":
|
|
20042
|
-
/*!*****************************************!*\
|
|
20043
|
-
!*** ../node_modules/es-errors/eval.js ***!
|
|
20044
|
-
\*****************************************/
|
|
20045
|
-
/***/ (function(module) {
|
|
20046
|
-
|
|
20047
|
-
"use strict";
|
|
20048
|
-
|
|
20049
|
-
|
|
20050
|
-
/** @type {import('./eval')} */
|
|
20051
|
-
module.exports = EvalError;
|
|
20052
|
-
|
|
20053
|
-
|
|
20054
|
-
/***/ }),
|
|
20055
|
-
|
|
20056
|
-
/***/ "../node_modules/es-errors/index.js":
|
|
20057
|
-
/*!******************************************!*\
|
|
20058
|
-
!*** ../node_modules/es-errors/index.js ***!
|
|
20059
|
-
\******************************************/
|
|
20060
|
-
/***/ (function(module) {
|
|
20061
|
-
|
|
20062
|
-
"use strict";
|
|
20063
|
-
|
|
20064
|
-
|
|
20065
|
-
/** @type {import('.')} */
|
|
20066
|
-
module.exports = Error;
|
|
20067
|
-
|
|
20068
|
-
|
|
20069
|
-
/***/ }),
|
|
20070
|
-
|
|
20071
|
-
/***/ "../node_modules/es-errors/range.js":
|
|
20072
|
-
/*!******************************************!*\
|
|
20073
|
-
!*** ../node_modules/es-errors/range.js ***!
|
|
20074
|
-
\******************************************/
|
|
20075
|
-
/***/ (function(module) {
|
|
20076
|
-
|
|
20077
|
-
"use strict";
|
|
20078
|
-
|
|
20079
|
-
|
|
20080
|
-
/** @type {import('./range')} */
|
|
20081
|
-
module.exports = RangeError;
|
|
20082
|
-
|
|
20083
|
-
|
|
20084
|
-
/***/ }),
|
|
20085
|
-
|
|
20086
|
-
/***/ "../node_modules/es-errors/ref.js":
|
|
20087
|
-
/*!****************************************!*\
|
|
20088
|
-
!*** ../node_modules/es-errors/ref.js ***!
|
|
20089
|
-
\****************************************/
|
|
20090
|
-
/***/ (function(module) {
|
|
20091
|
-
|
|
20092
|
-
"use strict";
|
|
20093
|
-
|
|
20094
|
-
|
|
20095
|
-
/** @type {import('./ref')} */
|
|
20096
|
-
module.exports = ReferenceError;
|
|
20097
|
-
|
|
20098
|
-
|
|
20099
|
-
/***/ }),
|
|
20100
|
-
|
|
20101
|
-
/***/ "../node_modules/es-errors/syntax.js":
|
|
20102
|
-
/*!*******************************************!*\
|
|
20103
|
-
!*** ../node_modules/es-errors/syntax.js ***!
|
|
20104
|
-
\*******************************************/
|
|
20105
|
-
/***/ (function(module) {
|
|
20106
|
-
|
|
20107
|
-
"use strict";
|
|
20108
|
-
|
|
20109
|
-
|
|
20110
|
-
/** @type {import('./syntax')} */
|
|
20111
|
-
module.exports = SyntaxError;
|
|
20112
|
-
|
|
20113
|
-
|
|
20114
|
-
/***/ }),
|
|
20115
|
-
|
|
20116
|
-
/***/ "../node_modules/es-errors/type.js":
|
|
20117
|
-
/*!*****************************************!*\
|
|
20118
|
-
!*** ../node_modules/es-errors/type.js ***!
|
|
20119
|
-
\*****************************************/
|
|
20120
|
-
/***/ (function(module) {
|
|
20121
|
-
|
|
20122
|
-
"use strict";
|
|
20123
|
-
|
|
20124
|
-
|
|
20125
|
-
/** @type {import('./type')} */
|
|
20126
|
-
module.exports = TypeError;
|
|
20127
|
-
|
|
20128
|
-
|
|
20129
|
-
/***/ }),
|
|
20130
|
-
|
|
20131
|
-
/***/ "../node_modules/es-errors/uri.js":
|
|
20132
|
-
/*!****************************************!*\
|
|
20133
|
-
!*** ../node_modules/es-errors/uri.js ***!
|
|
20134
|
-
\****************************************/
|
|
20135
|
-
/***/ (function(module) {
|
|
20136
|
-
|
|
20137
|
-
"use strict";
|
|
20138
|
-
|
|
20139
|
-
|
|
20140
|
-
/** @type {import('./uri')} */
|
|
20141
|
-
module.exports = URIError;
|
|
20142
|
-
|
|
20143
|
-
|
|
20144
19891
|
/***/ }),
|
|
20145
19892
|
|
|
20146
19893
|
/***/ "../node_modules/function-bind/implementation.js":
|
|
@@ -20265,15 +20012,9 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
20265
20012
|
|
|
20266
20013
|
var undefined;
|
|
20267
20014
|
|
|
20268
|
-
var $
|
|
20269
|
-
var $EvalError = __webpack_require__(/*! es-errors/eval */ "../node_modules/es-errors/eval.js");
|
|
20270
|
-
var $RangeError = __webpack_require__(/*! es-errors/range */ "../node_modules/es-errors/range.js");
|
|
20271
|
-
var $ReferenceError = __webpack_require__(/*! es-errors/ref */ "../node_modules/es-errors/ref.js");
|
|
20272
|
-
var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "../node_modules/es-errors/syntax.js");
|
|
20273
|
-
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
20274
|
-
var $URIError = __webpack_require__(/*! es-errors/uri */ "../node_modules/es-errors/uri.js");
|
|
20275
|
-
|
|
20015
|
+
var $SyntaxError = SyntaxError;
|
|
20276
20016
|
var $Function = Function;
|
|
20017
|
+
var $TypeError = TypeError;
|
|
20277
20018
|
|
|
20278
20019
|
// eslint-disable-next-line consistent-return
|
|
20279
20020
|
var getEvalledConstructor = function (expressionSyntax) {
|
|
@@ -20325,7 +20066,6 @@ var needsEval = {};
|
|
|
20325
20066
|
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
20326
20067
|
|
|
20327
20068
|
var INTRINSICS = {
|
|
20328
|
-
__proto__: null,
|
|
20329
20069
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
20330
20070
|
'%Array%': Array,
|
|
20331
20071
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
@@ -20346,9 +20086,9 @@ var INTRINSICS = {
|
|
|
20346
20086
|
'%decodeURIComponent%': decodeURIComponent,
|
|
20347
20087
|
'%encodeURI%': encodeURI,
|
|
20348
20088
|
'%encodeURIComponent%': encodeURIComponent,
|
|
20349
|
-
'%Error%':
|
|
20089
|
+
'%Error%': Error,
|
|
20350
20090
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
20351
|
-
'%EvalError%':
|
|
20091
|
+
'%EvalError%': EvalError,
|
|
20352
20092
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
20353
20093
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
20354
20094
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
@@ -20370,8 +20110,8 @@ var INTRINSICS = {
|
|
|
20370
20110
|
'%parseInt%': parseInt,
|
|
20371
20111
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
20372
20112
|
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
20373
|
-
'%RangeError%':
|
|
20374
|
-
'%ReferenceError%':
|
|
20113
|
+
'%RangeError%': RangeError,
|
|
20114
|
+
'%ReferenceError%': ReferenceError,
|
|
20375
20115
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
20376
20116
|
'%RegExp%': RegExp,
|
|
20377
20117
|
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
@@ -20388,7 +20128,7 @@ var INTRINSICS = {
|
|
|
20388
20128
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
20389
20129
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
20390
20130
|
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
20391
|
-
'%URIError%':
|
|
20131
|
+
'%URIError%': URIError,
|
|
20392
20132
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
20393
20133
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
20394
20134
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
@@ -20430,7 +20170,6 @@ var doEval = function doEval(name) {
|
|
|
20430
20170
|
};
|
|
20431
20171
|
|
|
20432
20172
|
var LEGACY_ALIASES = {
|
|
20433
|
-
__proto__: null,
|
|
20434
20173
|
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
20435
20174
|
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
20436
20175
|
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
@@ -20485,7 +20224,7 @@ var LEGACY_ALIASES = {
|
|
|
20485
20224
|
};
|
|
20486
20225
|
|
|
20487
20226
|
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
20488
|
-
var hasOwn = __webpack_require__(/*!
|
|
20227
|
+
var hasOwn = __webpack_require__(/*! has */ "../node_modules/has/src/index.js");
|
|
20489
20228
|
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
20490
20229
|
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
20491
20230
|
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
@@ -20622,66 +20361,6 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
20622
20361
|
};
|
|
20623
20362
|
|
|
20624
20363
|
|
|
20625
|
-
/***/ }),
|
|
20626
|
-
|
|
20627
|
-
/***/ "../node_modules/gopd/index.js":
|
|
20628
|
-
/*!*************************************!*\
|
|
20629
|
-
!*** ../node_modules/gopd/index.js ***!
|
|
20630
|
-
\*************************************/
|
|
20631
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20632
|
-
|
|
20633
|
-
"use strict";
|
|
20634
|
-
|
|
20635
|
-
|
|
20636
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
20637
|
-
|
|
20638
|
-
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
20639
|
-
|
|
20640
|
-
if ($gOPD) {
|
|
20641
|
-
try {
|
|
20642
|
-
$gOPD([], 'length');
|
|
20643
|
-
} catch (e) {
|
|
20644
|
-
// IE 8 has a broken gOPD
|
|
20645
|
-
$gOPD = null;
|
|
20646
|
-
}
|
|
20647
|
-
}
|
|
20648
|
-
|
|
20649
|
-
module.exports = $gOPD;
|
|
20650
|
-
|
|
20651
|
-
|
|
20652
|
-
/***/ }),
|
|
20653
|
-
|
|
20654
|
-
/***/ "../node_modules/has-property-descriptors/index.js":
|
|
20655
|
-
/*!*********************************************************!*\
|
|
20656
|
-
!*** ../node_modules/has-property-descriptors/index.js ***!
|
|
20657
|
-
\*********************************************************/
|
|
20658
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20659
|
-
|
|
20660
|
-
"use strict";
|
|
20661
|
-
|
|
20662
|
-
|
|
20663
|
-
var $defineProperty = __webpack_require__(/*! es-define-property */ "../node_modules/es-define-property/index.js");
|
|
20664
|
-
|
|
20665
|
-
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
20666
|
-
return !!$defineProperty;
|
|
20667
|
-
};
|
|
20668
|
-
|
|
20669
|
-
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
20670
|
-
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
20671
|
-
if (!$defineProperty) {
|
|
20672
|
-
return null;
|
|
20673
|
-
}
|
|
20674
|
-
try {
|
|
20675
|
-
return $defineProperty([], 'length', { value: 1 }).length !== 1;
|
|
20676
|
-
} catch (e) {
|
|
20677
|
-
// In Firefox 4-22, defining length on an array throws an exception.
|
|
20678
|
-
return true;
|
|
20679
|
-
}
|
|
20680
|
-
};
|
|
20681
|
-
|
|
20682
|
-
module.exports = hasPropertyDescriptors;
|
|
20683
|
-
|
|
20684
|
-
|
|
20685
20364
|
/***/ }),
|
|
20686
20365
|
|
|
20687
20366
|
/***/ "../node_modules/has-proto/index.js":
|
|
@@ -20783,21 +20462,18 @@ module.exports = function hasSymbols() {
|
|
|
20783
20462
|
|
|
20784
20463
|
/***/ }),
|
|
20785
20464
|
|
|
20786
|
-
/***/ "../node_modules/
|
|
20787
|
-
|
|
20788
|
-
!*** ../node_modules/
|
|
20789
|
-
|
|
20465
|
+
/***/ "../node_modules/has/src/index.js":
|
|
20466
|
+
/*!****************************************!*\
|
|
20467
|
+
!*** ../node_modules/has/src/index.js ***!
|
|
20468
|
+
\****************************************/
|
|
20790
20469
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20791
20470
|
|
|
20792
20471
|
"use strict";
|
|
20793
20472
|
|
|
20794
20473
|
|
|
20795
|
-
var call = Function.prototype.call;
|
|
20796
|
-
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
20797
20474
|
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
20798
20475
|
|
|
20799
|
-
|
|
20800
|
-
module.exports = bind.call(call, $hasOwn);
|
|
20476
|
+
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
20801
20477
|
|
|
20802
20478
|
|
|
20803
20479
|
/***/ }),
|
|
@@ -21303,17 +20979,6 @@ module.exports = function inspect_(obj, options, depth, seen) {
|
|
|
21303
20979
|
if (isString(obj)) {
|
|
21304
20980
|
return markBoxed(inspect(String(obj)));
|
|
21305
20981
|
}
|
|
21306
|
-
// note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
|
|
21307
|
-
/* eslint-env browser */
|
|
21308
|
-
if (typeof window !== 'undefined' && obj === window) {
|
|
21309
|
-
return '{ [object Window] }';
|
|
21310
|
-
}
|
|
21311
|
-
if (
|
|
21312
|
-
(typeof globalThis !== 'undefined' && obj === globalThis)
|
|
21313
|
-
|| (typeof __webpack_require__.g !== 'undefined' && obj === __webpack_require__.g)
|
|
21314
|
-
) {
|
|
21315
|
-
return '{ [object globalThis] }';
|
|
21316
|
-
}
|
|
21317
20982
|
if (!isDate(obj) && !isRegExp(obj)) {
|
|
21318
20983
|
var ys = arrObjKeys(obj, inspect);
|
|
21319
20984
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
@@ -21704,59 +21369,6 @@ module.exports = pThrottle;
|
|
|
21704
21369
|
module.exports.AbortError = AbortError;
|
|
21705
21370
|
|
|
21706
21371
|
|
|
21707
|
-
/***/ }),
|
|
21708
|
-
|
|
21709
|
-
/***/ "../node_modules/set-function-length/index.js":
|
|
21710
|
-
/*!****************************************************!*\
|
|
21711
|
-
!*** ../node_modules/set-function-length/index.js ***!
|
|
21712
|
-
\****************************************************/
|
|
21713
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21714
|
-
|
|
21715
|
-
"use strict";
|
|
21716
|
-
|
|
21717
|
-
|
|
21718
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
21719
|
-
var define = __webpack_require__(/*! define-data-property */ "../node_modules/define-data-property/index.js");
|
|
21720
|
-
var hasDescriptors = __webpack_require__(/*! has-property-descriptors */ "../node_modules/has-property-descriptors/index.js")();
|
|
21721
|
-
var gOPD = __webpack_require__(/*! gopd */ "../node_modules/gopd/index.js");
|
|
21722
|
-
|
|
21723
|
-
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
21724
|
-
var $floor = GetIntrinsic('%Math.floor%');
|
|
21725
|
-
|
|
21726
|
-
/** @type {import('.')} */
|
|
21727
|
-
module.exports = function setFunctionLength(fn, length) {
|
|
21728
|
-
if (typeof fn !== 'function') {
|
|
21729
|
-
throw new $TypeError('`fn` is not a function');
|
|
21730
|
-
}
|
|
21731
|
-
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
|
|
21732
|
-
throw new $TypeError('`length` must be a positive 32-bit integer');
|
|
21733
|
-
}
|
|
21734
|
-
|
|
21735
|
-
var loose = arguments.length > 2 && !!arguments[2];
|
|
21736
|
-
|
|
21737
|
-
var functionLengthIsConfigurable = true;
|
|
21738
|
-
var functionLengthIsWritable = true;
|
|
21739
|
-
if ('length' in fn && gOPD) {
|
|
21740
|
-
var desc = gOPD(fn, 'length');
|
|
21741
|
-
if (desc && !desc.configurable) {
|
|
21742
|
-
functionLengthIsConfigurable = false;
|
|
21743
|
-
}
|
|
21744
|
-
if (desc && !desc.writable) {
|
|
21745
|
-
functionLengthIsWritable = false;
|
|
21746
|
-
}
|
|
21747
|
-
}
|
|
21748
|
-
|
|
21749
|
-
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
21750
|
-
if (hasDescriptors) {
|
|
21751
|
-
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
|
|
21752
|
-
} else {
|
|
21753
|
-
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
|
|
21754
|
-
}
|
|
21755
|
-
}
|
|
21756
|
-
return fn;
|
|
21757
|
-
};
|
|
21758
|
-
|
|
21759
|
-
|
|
21760
21372
|
/***/ }),
|
|
21761
21373
|
|
|
21762
21374
|
/***/ "../node_modules/side-channel/index.js":
|
|
@@ -21772,7 +21384,7 @@ var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get
|
|
|
21772
21384
|
var callBound = __webpack_require__(/*! call-bind/callBound */ "../node_modules/call-bind/callBound.js");
|
|
21773
21385
|
var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/object-inspect/index.js");
|
|
21774
21386
|
|
|
21775
|
-
var $TypeError =
|
|
21387
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
21776
21388
|
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
21777
21389
|
var $Map = GetIntrinsic('%Map%', true);
|
|
21778
21390
|
|
|
@@ -21784,58 +21396,49 @@ var $mapSet = callBound('Map.prototype.set', true);
|
|
|
21784
21396
|
var $mapHas = callBound('Map.prototype.has', true);
|
|
21785
21397
|
|
|
21786
21398
|
/*
|
|
21787
|
-
* This function traverses the list returning the node corresponding to the
|
|
21788
|
-
*
|
|
21789
|
-
*
|
|
21790
|
-
|
|
21791
|
-
|
|
21399
|
+
* This function traverses the list returning the node corresponding to the
|
|
21400
|
+
* given key.
|
|
21401
|
+
*
|
|
21402
|
+
* That node is also moved to the head of the list, so that if it's accessed
|
|
21403
|
+
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
21404
|
+
* used nodes can be accessed relatively quickly.
|
|
21405
|
+
*/
|
|
21792
21406
|
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
21793
|
-
|
|
21794
|
-
var prev = list;
|
|
21795
|
-
/** @type {(typeof list)['next']} */
|
|
21796
|
-
var curr;
|
|
21797
|
-
for (; (curr = prev.next) !== null; prev = curr) {
|
|
21407
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
21798
21408
|
if (curr.key === key) {
|
|
21799
21409
|
prev.next = curr.next;
|
|
21800
|
-
|
|
21801
|
-
curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
|
|
21410
|
+
curr.next = list.next;
|
|
21802
21411
|
list.next = curr; // eslint-disable-line no-param-reassign
|
|
21803
21412
|
return curr;
|
|
21804
21413
|
}
|
|
21805
21414
|
}
|
|
21806
21415
|
};
|
|
21807
21416
|
|
|
21808
|
-
/** @type {import('.').listGet} */
|
|
21809
21417
|
var listGet = function (objects, key) {
|
|
21810
21418
|
var node = listGetNode(objects, key);
|
|
21811
21419
|
return node && node.value;
|
|
21812
21420
|
};
|
|
21813
|
-
/** @type {import('.').listSet} */
|
|
21814
21421
|
var listSet = function (objects, key, value) {
|
|
21815
21422
|
var node = listGetNode(objects, key);
|
|
21816
21423
|
if (node) {
|
|
21817
21424
|
node.value = value;
|
|
21818
21425
|
} else {
|
|
21819
21426
|
// Prepend the new node to the beginning of the list
|
|
21820
|
-
objects.next =
|
|
21427
|
+
objects.next = { // eslint-disable-line no-param-reassign
|
|
21821
21428
|
key: key,
|
|
21822
21429
|
next: objects.next,
|
|
21823
21430
|
value: value
|
|
21824
|
-
}
|
|
21431
|
+
};
|
|
21825
21432
|
}
|
|
21826
21433
|
};
|
|
21827
|
-
/** @type {import('.').listHas} */
|
|
21828
21434
|
var listHas = function (objects, key) {
|
|
21829
21435
|
return !!listGetNode(objects, key);
|
|
21830
21436
|
};
|
|
21831
21437
|
|
|
21832
|
-
/** @type {import('.')} */
|
|
21833
21438
|
module.exports = function getSideChannel() {
|
|
21834
|
-
|
|
21835
|
-
|
|
21836
|
-
|
|
21837
|
-
|
|
21838
|
-
/** @type {import('.').Channel} */
|
|
21439
|
+
var $wm;
|
|
21440
|
+
var $m;
|
|
21441
|
+
var $o;
|
|
21839
21442
|
var channel = {
|
|
21840
21443
|
assert: function (key) {
|
|
21841
21444
|
if (!channel.has(key)) {
|
|
@@ -21886,7 +21489,11 @@ module.exports = function getSideChannel() {
|
|
|
21886
21489
|
$mapSet($m, key, value);
|
|
21887
21490
|
} else {
|
|
21888
21491
|
if (!$o) {
|
|
21889
|
-
|
|
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
|
+
*/
|
|
21890
21497
|
$o = { key: {}, next: null };
|
|
21891
21498
|
}
|
|
21892
21499
|
listSet($o, key, value);
|
|
@@ -27062,7 +26669,7 @@ function createClient(params) {
|
|
|
27062
26669
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
27063
26670
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
27064
26671
|
var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)( // @ts-expect-error
|
|
27065
|
-
"".concat(sdkMain, "/").concat("11.
|
|
26672
|
+
"".concat(sdkMain, "/").concat("11.31.0"), params.application, params.integration, params.feature);
|
|
27066
26673
|
var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
27067
26674
|
userAgent: userAgent
|
|
27068
26675
|
}));
|