contentful-management 11.27.1 → 11.27.3

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.
@@ -17160,6 +17160,82 @@ __webpack_require__.r(__webpack_exports__);
17160
17160
 
17161
17161
 
17162
17162
 
17163
+ function _arrayLikeToArray(r, a) {
17164
+ (null == a || a > r.length) && (a = r.length);
17165
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
17166
+ return n;
17167
+ }
17168
+ function _arrayWithHoles(r) {
17169
+ if (Array.isArray(r)) return r;
17170
+ }
17171
+ function _createForOfIteratorHelper(r, e) {
17172
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
17173
+ if (!t) {
17174
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
17175
+ t && (r = t);
17176
+ var n = 0,
17177
+ F = function () {};
17178
+ return {
17179
+ s: F,
17180
+ n: function () {
17181
+ return n >= r.length ? {
17182
+ done: !0
17183
+ } : {
17184
+ done: !1,
17185
+ value: r[n++]
17186
+ };
17187
+ },
17188
+ e: function (r) {
17189
+ throw r;
17190
+ },
17191
+ f: F
17192
+ };
17193
+ }
17194
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
17195
+ }
17196
+ var o,
17197
+ a = !0,
17198
+ u = !1;
17199
+ return {
17200
+ s: function () {
17201
+ t = t.call(r);
17202
+ },
17203
+ n: function () {
17204
+ var r = t.next();
17205
+ return a = r.done, r;
17206
+ },
17207
+ e: function (r) {
17208
+ u = !0, o = r;
17209
+ },
17210
+ f: function () {
17211
+ try {
17212
+ a || null == t.return || t.return();
17213
+ } finally {
17214
+ if (u) throw o;
17215
+ }
17216
+ }
17217
+ };
17218
+ }
17219
+ function _defineProperty(e, r, t) {
17220
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
17221
+ value: t,
17222
+ enumerable: !0,
17223
+ configurable: !0,
17224
+ writable: !0
17225
+ }) : e[r] = t, e;
17226
+ }
17227
+ function _inherits(t, e) {
17228
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
17229
+ t.prototype = Object.create(e && e.prototype, {
17230
+ constructor: {
17231
+ value: t,
17232
+ writable: !0,
17233
+ configurable: !0
17234
+ }
17235
+ }), Object.defineProperty(t, "prototype", {
17236
+ writable: !1
17237
+ }), e && _setPrototypeOf(t, e);
17238
+ }
17163
17239
  function _iterableToArrayLimit(r, l) {
17164
17240
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
17165
17241
  if (null != t) {
@@ -17187,6 +17263,9 @@ function _iterableToArrayLimit(r, l) {
17187
17263
  return a;
17188
17264
  }
17189
17265
  }
17266
+ function _nonIterableRest() {
17267
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
17268
+ }
17190
17269
  function ownKeys(e, r) {
17191
17270
  var t = Object.keys(e);
17192
17271
  if (Object.getOwnPropertySymbols) {
@@ -17208,6 +17287,14 @@ function _objectSpread2(e) {
17208
17287
  }
17209
17288
  return e;
17210
17289
  }
17290
+ function _setPrototypeOf(t, e) {
17291
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
17292
+ return t.__proto__ = e, t;
17293
+ }, _setPrototypeOf(t, e);
17294
+ }
17295
+ function _slicedToArray(r, e) {
17296
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
17297
+ }
17211
17298
  function _toPrimitive(t, r) {
17212
17299
  if ("object" != typeof t || !t) return t;
17213
17300
  var e = t[Symbol.toPrimitive];
@@ -17220,7 +17307,7 @@ function _toPrimitive(t, r) {
17220
17307
  }
17221
17308
  function _toPropertyKey(t) {
17222
17309
  var i = _toPrimitive(t, "string");
17223
- return "symbol" == typeof i ? i : String(i);
17310
+ return "symbol" == typeof i ? i : i + "";
17224
17311
  }
17225
17312
  function _typeof(o) {
17226
17313
  "@babel/helpers - typeof";
@@ -17231,6 +17318,13 @@ function _typeof(o) {
17231
17318
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
17232
17319
  }, _typeof(o);
17233
17320
  }
17321
+ function _unsupportedIterableToArray(r, a) {
17322
+ if (r) {
17323
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
17324
+ var t = {}.toString.call(r).slice(8, -1);
17325
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
17326
+ }
17327
+ }
17234
17328
  function _wrapRegExp() {
17235
17329
  _wrapRegExp = function (e, r) {
17236
17330
  return new BabelRegExp(e, void 0, r);
@@ -17238,7 +17332,7 @@ function _wrapRegExp() {
17238
17332
  var e = RegExp.prototype,
17239
17333
  r = new WeakMap();
17240
17334
  function BabelRegExp(e, t, p) {
17241
- var o = new RegExp(e, t);
17335
+ var o = RegExp(e, t);
17242
17336
  return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype);
17243
17337
  }
17244
17338
  function buildGroups(e, t) {
@@ -17278,116 +17372,6 @@ function _wrapRegExp() {
17278
17372
  return e[Symbol.replace].call(this, t, p);
17279
17373
  }, _wrapRegExp.apply(this, arguments);
17280
17374
  }
17281
- function _defineProperty(obj, key, value) {
17282
- key = _toPropertyKey(key);
17283
- if (key in obj) {
17284
- Object.defineProperty(obj, key, {
17285
- value: value,
17286
- enumerable: true,
17287
- configurable: true,
17288
- writable: true
17289
- });
17290
- } else {
17291
- obj[key] = value;
17292
- }
17293
- return obj;
17294
- }
17295
- function _inherits(subClass, superClass) {
17296
- if (typeof superClass !== "function" && superClass !== null) {
17297
- throw new TypeError("Super expression must either be null or a function");
17298
- }
17299
- subClass.prototype = Object.create(superClass && superClass.prototype, {
17300
- constructor: {
17301
- value: subClass,
17302
- writable: true,
17303
- configurable: true
17304
- }
17305
- });
17306
- Object.defineProperty(subClass, "prototype", {
17307
- writable: false
17308
- });
17309
- if (superClass) _setPrototypeOf(subClass, superClass);
17310
- }
17311
- function _setPrototypeOf(o, p) {
17312
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
17313
- o.__proto__ = p;
17314
- return o;
17315
- };
17316
- return _setPrototypeOf(o, p);
17317
- }
17318
- function _slicedToArray(arr, i) {
17319
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
17320
- }
17321
- function _arrayWithHoles(arr) {
17322
- if (Array.isArray(arr)) return arr;
17323
- }
17324
- function _unsupportedIterableToArray(o, minLen) {
17325
- if (!o) return;
17326
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
17327
- var n = Object.prototype.toString.call(o).slice(8, -1);
17328
- if (n === "Object" && o.constructor) n = o.constructor.name;
17329
- if (n === "Map" || n === "Set") return Array.from(o);
17330
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
17331
- }
17332
- function _arrayLikeToArray(arr, len) {
17333
- if (len == null || len > arr.length) len = arr.length;
17334
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
17335
- return arr2;
17336
- }
17337
- function _nonIterableRest() {
17338
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
17339
- }
17340
- function _createForOfIteratorHelper(o, allowArrayLike) {
17341
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
17342
- if (!it) {
17343
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
17344
- if (it) o = it;
17345
- var i = 0;
17346
- var F = function () {};
17347
- return {
17348
- s: F,
17349
- n: function () {
17350
- if (i >= o.length) return {
17351
- done: true
17352
- };
17353
- return {
17354
- done: false,
17355
- value: o[i++]
17356
- };
17357
- },
17358
- e: function (e) {
17359
- throw e;
17360
- },
17361
- f: F
17362
- };
17363
- }
17364
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
17365
- }
17366
- var normalCompletion = true,
17367
- didErr = false,
17368
- err;
17369
- return {
17370
- s: function () {
17371
- it = it.call(o);
17372
- },
17373
- n: function () {
17374
- var step = it.next();
17375
- normalCompletion = step.done;
17376
- return step;
17377
- },
17378
- e: function (e) {
17379
- didErr = true;
17380
- err = e;
17381
- },
17382
- f: function () {
17383
- try {
17384
- if (!normalCompletion && it.return != null) it.return();
17385
- } finally {
17386
- if (didErr) throw err;
17387
- }
17388
- }
17389
- };
17390
- }
17391
17375
 
17392
17376
  function asyncToken(instance, getToken) {
17393
17377
  instance.interceptors.request.use(function (config) {
@@ -25478,7 +25462,7 @@ function createClient(params) {
25478
25462
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
25479
25463
  var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
25480
25464
  var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)( // @ts-expect-error
25481
- "".concat(sdkMain, "/").concat("11.27.1"), params.application, params.integration, params.feature);
25465
+ "".concat(sdkMain, "/").concat("11.27.3"), params.application, params.integration, params.feature);
25482
25466
  var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
25483
25467
  userAgent: userAgent
25484
25468
  }));