contentful 11.4.5 → 11.5.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.
|
@@ -22,7 +22,7 @@ var contentful = (function (exports) {
|
|
|
22
22
|
function _throw(n) {
|
|
23
23
|
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
24
24
|
}
|
|
25
|
-
_next(
|
|
25
|
+
_next(void 0);
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
28
|
}
|
|
@@ -45,7 +45,7 @@ var contentful = (function (exports) {
|
|
|
45
45
|
if (r) {
|
|
46
46
|
if ("string" == typeof r) return _arrayLikeToArray$4(r, a);
|
|
47
47
|
var t = {}.toString.call(r).slice(8, -1);
|
|
48
|
-
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$4(r, a) :
|
|
48
|
+
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$4(r, a) : void 0;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -82,7 +82,7 @@ var contentful = (function (exports) {
|
|
|
82
82
|
function toPrimitive(t, r) {
|
|
83
83
|
if ("object" != _typeof$2(t) || !t) return t;
|
|
84
84
|
var e = t[Symbol.toPrimitive];
|
|
85
|
-
if (
|
|
85
|
+
if (void 0 !== e) {
|
|
86
86
|
var i = e.call(t, r);
|
|
87
87
|
if ("object" != _typeof$2(i)) return i;
|
|
88
88
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
@@ -212,7 +212,7 @@ var contentful = (function (exports) {
|
|
|
212
212
|
};
|
|
213
213
|
t ? t = t.next = i : (r = t = i, resume(e, n));
|
|
214
214
|
});
|
|
215
|
-
}, "function" != typeof e["return"] && (this["return"] =
|
|
215
|
+
}, "function" != typeof e["return"] && (this["return"] = void 0);
|
|
216
216
|
}
|
|
217
217
|
AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () {
|
|
218
218
|
return this;
|
|
@@ -481,7 +481,7 @@ var contentful = (function (exports) {
|
|
|
481
481
|
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
482
482
|
return this;
|
|
483
483
|
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
484
|
-
|
|
484
|
+
void 0 === i && (i = Promise);
|
|
485
485
|
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
486
486
|
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
487
487
|
return t.done ? t.value : a.next();
|
|
@@ -604,12 +604,12 @@ var contentful = (function (exports) {
|
|
|
604
604
|
var _regeneratorRuntime = /*@__PURE__*/getDefaultExportFromCjs(regenerator);
|
|
605
605
|
|
|
606
606
|
function _createForOfIteratorHelper$3(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$3(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
607
|
-
function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(r, a); var t = {}.toString.call(r).slice(8, -1); 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$3(r, a) :
|
|
607
|
+
function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(r, a); var t = {}.toString.call(r).slice(8, -1); 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$3(r, a) : void 0; } }
|
|
608
608
|
function _arrayLikeToArray$3(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
609
609
|
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
610
610
|
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
611
611
|
function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = "@@asyncIterator", o = "@@iterator"; } throw new TypeError("Object is not async iterable"); }
|
|
612
|
-
function AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, return: function _return(r) { var n = this.s.return; return
|
|
612
|
+
function AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, return: function _return(r) { var n = this.s.return; return void 0 === n ? Promise.resolve({ value: r, done: true }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, throw: function _throw(r) { var n = this.s.return; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }
|
|
613
613
|
function bind$2(fn, thisArg) {
|
|
614
614
|
return function wrap() {
|
|
615
615
|
return fn.apply(thisArg, arguments);
|
|
@@ -860,7 +860,7 @@ var contentful = (function (exports) {
|
|
|
860
860
|
function forEach(obj, fn) {
|
|
861
861
|
var _ref3 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
862
862
|
_ref3$allOwnKeys = _ref3.allOwnKeys,
|
|
863
|
-
allOwnKeys = _ref3$allOwnKeys ===
|
|
863
|
+
allOwnKeys = _ref3$allOwnKeys === void 0 ? false : _ref3$allOwnKeys;
|
|
864
864
|
// Don't bother if no value provided
|
|
865
865
|
if (obj === null || typeof obj === 'undefined') {
|
|
866
866
|
return;
|
|
@@ -2565,7 +2565,7 @@ var contentful = (function (exports) {
|
|
|
2565
2565
|
args[_key5] = arguments[_key5];
|
|
2566
2566
|
}
|
|
2567
2567
|
return utils$1$1.asap(function () {
|
|
2568
|
-
return fn.apply(
|
|
2568
|
+
return fn.apply(void 0, args);
|
|
2569
2569
|
});
|
|
2570
2570
|
};
|
|
2571
2571
|
};
|
|
@@ -3364,7 +3364,7 @@ var contentful = (function (exports) {
|
|
|
3364
3364
|
return _regeneratorRuntime.wrap(function _callee7$(_context8) {
|
|
3365
3365
|
while (1) switch (_context8.prev = _context8.next) {
|
|
3366
3366
|
case 0:
|
|
3367
|
-
_resolveConfig = resolveConfig(config), url = _resolveConfig.url, method = _resolveConfig.method, data = _resolveConfig.data, signal = _resolveConfig.signal, cancelToken = _resolveConfig.cancelToken, timeout = _resolveConfig.timeout, onDownloadProgress = _resolveConfig.onDownloadProgress, onUploadProgress = _resolveConfig.onUploadProgress, responseType = _resolveConfig.responseType, headers = _resolveConfig.headers, _resolveConfig$withCr = _resolveConfig.withCredentials, withCredentials = _resolveConfig$withCr ===
|
|
3367
|
+
_resolveConfig = resolveConfig(config), url = _resolveConfig.url, method = _resolveConfig.method, data = _resolveConfig.data, signal = _resolveConfig.signal, cancelToken = _resolveConfig.cancelToken, timeout = _resolveConfig.timeout, onDownloadProgress = _resolveConfig.onDownloadProgress, onUploadProgress = _resolveConfig.onUploadProgress, responseType = _resolveConfig.responseType, headers = _resolveConfig.headers, _resolveConfig$withCr = _resolveConfig.withCredentials, withCredentials = _resolveConfig$withCr === void 0 ? 'same-origin' : _resolveConfig$withCr, fetchOptions = _resolveConfig.fetchOptions;
|
|
3368
3368
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
3369
3369
|
composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
3370
3370
|
unsubscribe = composedSignal && composedSignal.unsubscribe && function () {
|
|
@@ -3508,7 +3508,7 @@ var contentful = (function (exports) {
|
|
|
3508
3508
|
var rejectedReasons = {};
|
|
3509
3509
|
for (var i = 0; i < length; i++) {
|
|
3510
3510
|
nameOrAdapter = adapters[i];
|
|
3511
|
-
var id =
|
|
3511
|
+
var id = void 0;
|
|
3512
3512
|
adapter = nameOrAdapter;
|
|
3513
3513
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
3514
3514
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
@@ -4300,7 +4300,7 @@ var contentful = (function (exports) {
|
|
|
4300
4300
|
*/
|
|
4301
4301
|
function copyOwnPropertiesStrict(value, clone, state) {
|
|
4302
4302
|
var properties = getStrictProperties(value);
|
|
4303
|
-
for (var index = 0, length_1 = properties.length, property =
|
|
4303
|
+
for (var index = 0, length_1 = properties.length, property = void 0, descriptor = void 0; index < length_1; ++index) {
|
|
4304
4304
|
property = properties[index];
|
|
4305
4305
|
if (property === 'callee' || property === 'caller') {
|
|
4306
4306
|
continue;
|
|
@@ -4409,7 +4409,7 @@ var contentful = (function (exports) {
|
|
|
4409
4409
|
}
|
|
4410
4410
|
}
|
|
4411
4411
|
var symbols = getOwnPropertySymbols(object);
|
|
4412
|
-
for (var index = 0, length_3 = symbols.length, symbol =
|
|
4412
|
+
for (var index = 0, length_3 = symbols.length, symbol = void 0; index < length_3; ++index) {
|
|
4413
4413
|
symbol = symbols[index];
|
|
4414
4414
|
if (propertyIsEnumerable.call(object, symbol)) {
|
|
4415
4415
|
clone[symbol] = state.copier(object[symbol], state);
|
|
@@ -4812,9 +4812,9 @@ var contentful = (function (exports) {
|
|
|
4812
4812
|
var maxRetry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
|
|
4813
4813
|
var _instance$defaults = instance.defaults,
|
|
4814
4814
|
_instance$defaults$re = _instance$defaults.responseLogger,
|
|
4815
|
-
responseLogger = _instance$defaults$re ===
|
|
4815
|
+
responseLogger = _instance$defaults$re === void 0 ? noop : _instance$defaults$re,
|
|
4816
4816
|
_instance$defaults$re2 = _instance$defaults.requestLogger,
|
|
4817
|
-
requestLogger = _instance$defaults$re2 ===
|
|
4817
|
+
requestLogger = _instance$defaults$re2 === void 0 ? noop : _instance$defaults$re2;
|
|
4818
4818
|
instance.interceptors.request.use(function (config) {
|
|
4819
4819
|
requestLogger(config);
|
|
4820
4820
|
return config;
|
|
@@ -5088,13 +5088,13 @@ var contentful = (function (exports) {
|
|
|
5088
5088
|
var isString$2 = /*@__PURE__*/getDefaultExportFromCjs(isString_1);
|
|
5089
5089
|
|
|
5090
5090
|
function _assertThisInitialized(e) {
|
|
5091
|
-
if (
|
|
5091
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5092
5092
|
return e;
|
|
5093
5093
|
}
|
|
5094
5094
|
|
|
5095
5095
|
function _possibleConstructorReturn(t, e) {
|
|
5096
5096
|
if (e && ("object" == _typeof$2(e) || "function" == typeof e)) return e;
|
|
5097
|
-
if (
|
|
5097
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
5098
5098
|
return _assertThisInitialized(t);
|
|
5099
5099
|
}
|
|
5100
5100
|
|
|
@@ -5130,11 +5130,11 @@ var contentful = (function (exports) {
|
|
|
5130
5130
|
}
|
|
5131
5131
|
|
|
5132
5132
|
function _wrapNativeSuper(t) {
|
|
5133
|
-
var r = "function" == typeof Map ? new Map() :
|
|
5133
|
+
var r = "function" == typeof Map ? new Map() : void 0;
|
|
5134
5134
|
return _wrapNativeSuper = function _wrapNativeSuper(t) {
|
|
5135
5135
|
if (null === t || !_isNativeFunction(t)) return t;
|
|
5136
5136
|
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
|
|
5137
|
-
if (
|
|
5137
|
+
if (void 0 !== r) {
|
|
5138
5138
|
if (r.has(t)) return r.get(t);
|
|
5139
5139
|
r.set(t, Wrapper);
|
|
5140
5140
|
}
|
|
@@ -5153,7 +5153,7 @@ var contentful = (function (exports) {
|
|
|
5153
5153
|
}
|
|
5154
5154
|
|
|
5155
5155
|
function _createForOfIteratorHelper$2(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$2(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
5156
|
-
function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); 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$2(r, a) :
|
|
5156
|
+
function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); 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$2(r, a) : void 0; } }
|
|
5157
5157
|
function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5158
5158
|
function _callSuper$2(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
5159
5159
|
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -5226,7 +5226,7 @@ var contentful = (function (exports) {
|
|
|
5226
5226
|
if (delay > 0) {
|
|
5227
5227
|
timeoutId = setTimeout(execute, delay);
|
|
5228
5228
|
queue.set(timeoutId, reject);
|
|
5229
|
-
onDelay === null || onDelay ===
|
|
5229
|
+
onDelay === null || onDelay === void 0 || onDelay.apply(void 0, arguments_);
|
|
5230
5230
|
} else {
|
|
5231
5231
|
execute();
|
|
5232
5232
|
}
|
|
@@ -5258,7 +5258,7 @@ var contentful = (function (exports) {
|
|
|
5258
5258
|
};
|
|
5259
5259
|
}
|
|
5260
5260
|
|
|
5261
|
-
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e,
|
|
5261
|
+
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { var t = o[r]; return "$" + (Array.isArray(t) ? t.join("$") : t); })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != _typeof$2(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
|
|
5262
5262
|
var PERCENTAGE_REGEX = /*#__PURE__*/_wrapRegExp(/(\d+)(%)/, {
|
|
5263
5263
|
value: 1
|
|
5264
5264
|
});
|
|
@@ -5267,7 +5267,7 @@ var contentful = (function (exports) {
|
|
|
5267
5267
|
var limit = max;
|
|
5268
5268
|
if (PERCENTAGE_REGEX.test(type)) {
|
|
5269
5269
|
var _type$match;
|
|
5270
|
-
var groups = (_type$match = type.match(PERCENTAGE_REGEX)) === null || _type$match ===
|
|
5270
|
+
var groups = (_type$match = type.match(PERCENTAGE_REGEX)) === null || _type$match === void 0 ? void 0 : _type$match.groups;
|
|
5271
5271
|
if (groups && groups.value) {
|
|
5272
5272
|
var percentage = parseInt(groups.value) / 100;
|
|
5273
5273
|
limit = Math.round(max * percentage);
|
|
@@ -5284,7 +5284,7 @@ var contentful = (function (exports) {
|
|
|
5284
5284
|
var rateLimitThrottle = (function (axiosInstance) {
|
|
5285
5285
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'auto';
|
|
5286
5286
|
var _axiosInstance$defaul = axiosInstance.defaults.logHandler,
|
|
5287
|
-
logHandler = _axiosInstance$defaul ===
|
|
5287
|
+
logHandler = _axiosInstance$defaul === void 0 ? noop : _axiosInstance$defaul;
|
|
5288
5288
|
var limit = isString$2(type) ? calculateLimit(type) : calculateLimit('auto', type);
|
|
5289
5289
|
var throttle = createThrottle(limit, logHandler);
|
|
5290
5290
|
var isCalculated = false;
|
|
@@ -5803,7 +5803,7 @@ var contentful = (function (exports) {
|
|
|
5803
5803
|
if (!allowMissing) {
|
|
5804
5804
|
throw new $TypeError$3('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
5805
5805
|
}
|
|
5806
|
-
return
|
|
5806
|
+
return void 0;
|
|
5807
5807
|
}
|
|
5808
5808
|
if ($gOPD$1 && i + 1 >= parts.length) {
|
|
5809
5809
|
var desc = $gOPD$1(value, part);
|
|
@@ -6973,7 +6973,7 @@ var contentful = (function (exports) {
|
|
|
6973
6973
|
var tmpSc = sideChannel;
|
|
6974
6974
|
var step = 0;
|
|
6975
6975
|
var findFlag = false;
|
|
6976
|
-
while ((tmpSc = tmpSc.get(sentinel)) !==
|
|
6976
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
|
|
6977
6977
|
// Where object last appeared in the ref tree
|
|
6978
6978
|
var pos = tmpSc.get(object);
|
|
6979
6979
|
step += 1;
|
|
@@ -7024,7 +7024,7 @@ var contentful = (function (exports) {
|
|
|
7024
7024
|
obj = utils$1.maybeMap(obj, encoder);
|
|
7025
7025
|
}
|
|
7026
7026
|
objKeys = [{
|
|
7027
|
-
value: obj.length > 0 ? obj.join(',') || null :
|
|
7027
|
+
value: obj.length > 0 ? obj.join(',') || null : void 0
|
|
7028
7028
|
}];
|
|
7029
7029
|
} else if (isArray$1(filter)) {
|
|
7030
7030
|
objKeys = filter;
|
|
@@ -7586,7 +7586,7 @@ var contentful = (function (exports) {
|
|
|
7586
7586
|
}
|
|
7587
7587
|
|
|
7588
7588
|
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
7589
|
-
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); 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$1(r, a) :
|
|
7589
|
+
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); 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$1(r, a) : void 0; } }
|
|
7590
7590
|
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7591
7591
|
// copied from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze
|
|
7592
7592
|
function deepFreeze(object) {
|
|
@@ -7809,10 +7809,10 @@ var contentful = (function (exports) {
|
|
|
7809
7809
|
if (!isPlainObject$1(response) || !isPlainObject$1(config)) {
|
|
7810
7810
|
throw errorResponse;
|
|
7811
7811
|
}
|
|
7812
|
-
var data = response === null || response ===
|
|
7812
|
+
var data = response === null || response === void 0 ? void 0 : response.data;
|
|
7813
7813
|
var errorData = {
|
|
7814
|
-
status: response === null || response ===
|
|
7815
|
-
statusText: response === null || response ===
|
|
7814
|
+
status: response === null || response === void 0 ? void 0 : response.status,
|
|
7815
|
+
statusText: response === null || response === void 0 ? void 0 : response.statusText,
|
|
7816
7816
|
message: '',
|
|
7817
7817
|
details: {}
|
|
7818
7818
|
};
|
|
@@ -7835,15 +7835,15 @@ var contentful = (function (exports) {
|
|
|
7835
7835
|
if ('details' in data) {
|
|
7836
7836
|
errorData.details = data.details || {};
|
|
7837
7837
|
}
|
|
7838
|
-
errorName = (_data$sys = data.sys) === null || _data$sys ===
|
|
7838
|
+
errorName = (_data$sys = data.sys) === null || _data$sys === void 0 ? void 0 : _data$sys.id;
|
|
7839
7839
|
}
|
|
7840
7840
|
var error = new Error();
|
|
7841
|
-
error.name = errorName && errorName !== 'Unknown' ? errorName : "".concat(response === null || response ===
|
|
7841
|
+
error.name = errorName && errorName !== 'Unknown' ? errorName : "".concat(response === null || response === void 0 ? void 0 : response.status, " ").concat(response === null || response === void 0 ? void 0 : response.statusText);
|
|
7842
7842
|
try {
|
|
7843
7843
|
error.message = JSON.stringify(errorData, null, ' ');
|
|
7844
7844
|
} catch (_unused) {
|
|
7845
7845
|
var _errorData$message;
|
|
7846
|
-
error.message = (_errorData$message = errorData === null || errorData ===
|
|
7846
|
+
error.message = (_errorData$message = errorData === null || errorData === void 0 ? void 0 : errorData.message) !== null && _errorData$message !== void 0 ? _errorData$message : '';
|
|
7847
7847
|
}
|
|
7848
7848
|
throw error;
|
|
7849
7849
|
}
|
|
@@ -7869,7 +7869,7 @@ var contentful = (function (exports) {
|
|
|
7869
7869
|
}
|
|
7870
7870
|
|
|
7871
7871
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
7872
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); 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) :
|
|
7872
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); 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; } }
|
|
7873
7873
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7874
7874
|
var W = {
|
|
7875
7875
|
0: 8203,
|
|
@@ -7933,10 +7933,10 @@ var contentful = (function (exports) {
|
|
|
7933
7933
|
function w(t, n) {
|
|
7934
7934
|
return G(t, n);
|
|
7935
7935
|
}
|
|
7936
|
-
var x,
|
|
7936
|
+
var x, k;
|
|
7937
7937
|
function ne() {
|
|
7938
|
-
if (
|
|
7939
|
-
|
|
7938
|
+
if (k) return x;
|
|
7939
|
+
k = 1;
|
|
7940
7940
|
var t = Object.prototype.hasOwnProperty,
|
|
7941
7941
|
n = Object.prototype.toString;
|
|
7942
7942
|
return x = function x(e, r, s) {
|
|
@@ -7977,7 +7977,7 @@ var contentful = (function (exports) {
|
|
|
7977
7977
|
}, n.remove = function (o, e) {
|
|
7978
7978
|
var r = Array.isArray(e) ? e : n.parse(e),
|
|
7979
7979
|
s = r[r.length - 1];
|
|
7980
|
-
if (s ===
|
|
7980
|
+
if (s === void 0) throw new Error('Invalid JSON pointer for remove: "' + e + '"');
|
|
7981
7981
|
var c = n.get(o, r.slice(0, -1));
|
|
7982
7982
|
if (Array.isArray(c)) {
|
|
7983
7983
|
var i = +s;
|
|
@@ -8027,7 +8027,7 @@ var contentful = (function (exports) {
|
|
|
8027
8027
|
var r = n[t];
|
|
8028
8028
|
if (r) {
|
|
8029
8029
|
delete n[t];
|
|
8030
|
-
var s =
|
|
8030
|
+
var s = _b(o, t);
|
|
8031
8031
|
var _iterator = _createForOfIteratorHelper(s),
|
|
8032
8032
|
_step;
|
|
8033
8033
|
try {
|
|
@@ -8044,7 +8044,7 @@ var contentful = (function (exports) {
|
|
|
8044
8044
|
_iterator.f();
|
|
8045
8045
|
}
|
|
8046
8046
|
} else {
|
|
8047
|
-
var _s =
|
|
8047
|
+
var _s = _b(o, t);
|
|
8048
8048
|
var _iterator2 = _createForOfIteratorHelper(_s),
|
|
8049
8049
|
_step2;
|
|
8050
8050
|
try {
|
|
@@ -8061,14 +8061,14 @@ var contentful = (function (exports) {
|
|
|
8061
8061
|
}
|
|
8062
8062
|
}
|
|
8063
8063
|
},
|
|
8064
|
-
|
|
8064
|
+
_b = function b(t) {
|
|
8065
8065
|
var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
8066
8066
|
var o = [],
|
|
8067
8067
|
e = p.get(t, n);
|
|
8068
|
-
if (e.content) for (var r = 0; r < e.content.length; r++) e.content[r].nodeType === "text" ? o.push("".concat(n, "/content/").concat(r, "/value")) : o.push.apply(o, _toConsumableArray$1(
|
|
8068
|
+
if (e.content) for (var r = 0; r < e.content.length; r++) e.content[r].nodeType === "text" ? o.push("".concat(n, "/content/").concat(r, "/value")) : o.push.apply(o, _toConsumableArray$1(_b(t, "".concat(n, "/content/").concat(r))));
|
|
8069
8069
|
return o;
|
|
8070
8070
|
},
|
|
8071
|
-
|
|
8071
|
+
C = function C(_ref2) {
|
|
8072
8072
|
var t = _ref2.entityId,
|
|
8073
8073
|
n = _ref2.entityType,
|
|
8074
8074
|
o = _ref2.space,
|
|
@@ -8142,10 +8142,7 @@ var contentful = (function (exports) {
|
|
|
8142
8142
|
var $ = function $(t, n, o, e, r) {
|
|
8143
8143
|
if (!t.fields) return;
|
|
8144
8144
|
var s = t.sys.contentSourceMaps;
|
|
8145
|
-
if (!s)
|
|
8146
|
-
console.error("Content source maps data is missing");
|
|
8147
|
-
return;
|
|
8148
|
-
}
|
|
8145
|
+
if (!s) return;
|
|
8149
8146
|
var c = s.mappings;
|
|
8150
8147
|
var _loop = function _loop() {
|
|
8151
8148
|
var u = c[i].source,
|
|
@@ -8160,18 +8157,18 @@ var contentful = (function (exports) {
|
|
|
8160
8157
|
if (p.has(t, f)) {
|
|
8161
8158
|
var h = p.get(t, f);
|
|
8162
8159
|
if (h === null) return {
|
|
8163
|
-
v:
|
|
8160
|
+
v: void 0
|
|
8164
8161
|
};
|
|
8165
8162
|
var g = f.split("/").pop();
|
|
8166
8163
|
if (!g) {
|
|
8167
8164
|
console.error("Field name could not be extracted from the pointer", f);
|
|
8168
8165
|
return {
|
|
8169
|
-
v:
|
|
8166
|
+
v: void 0
|
|
8170
8167
|
};
|
|
8171
8168
|
}
|
|
8172
8169
|
var A = t.sys.locale;
|
|
8173
8170
|
if (A) {
|
|
8174
|
-
var E =
|
|
8171
|
+
var E = C({
|
|
8175
8172
|
entityId: m,
|
|
8176
8173
|
entityType: v,
|
|
8177
8174
|
space: a,
|
|
@@ -8185,7 +8182,7 @@ var contentful = (function (exports) {
|
|
|
8185
8182
|
});
|
|
8186
8183
|
P(y, h, E, t, f, c);
|
|
8187
8184
|
} else Object.keys(h).forEach(function (S) {
|
|
8188
|
-
var T =
|
|
8185
|
+
var T = C({
|
|
8189
8186
|
entityId: m,
|
|
8190
8187
|
entityType: v,
|
|
8191
8188
|
space: a,
|
|
@@ -8213,7 +8210,7 @@ var contentful = (function (exports) {
|
|
|
8213
8210
|
var e = Q(t);
|
|
8214
8211
|
if (e.sys && "items" in e) {
|
|
8215
8212
|
var s = e;
|
|
8216
|
-
if (!((r = s.sys) != null && r.contentSourceMapsLookup)) return
|
|
8213
|
+
if (!((r = s.sys) != null && r.contentSourceMapsLookup)) return s;
|
|
8217
8214
|
var _s$sys$contentSourceM = s.sys.contentSourceMapsLookup,
|
|
8218
8215
|
c = _s$sys$contentSourceM.fieldTypes,
|
|
8219
8216
|
i = _s$sys$contentSourceM.editorInterfaces,
|
|
@@ -8337,7 +8334,7 @@ var contentful = (function (exports) {
|
|
|
8337
8334
|
}
|
|
8338
8335
|
if (SYMBOL_PROPERTIES) {
|
|
8339
8336
|
var symbols = getOwnPropertySymbols(object);
|
|
8340
|
-
for (var index = 0, length_1 = symbols.length, symbol =
|
|
8337
|
+
for (var index = 0, length_1 = symbols.length, symbol = void 0; index < length_1; ++index) {
|
|
8341
8338
|
symbol = symbols[index];
|
|
8342
8339
|
if (propertyIsEnumerable.call(object, symbol)) {
|
|
8343
8340
|
clone[symbol] = handleCopy(object[symbol], cache);
|
|
@@ -8363,7 +8360,7 @@ var contentful = (function (exports) {
|
|
|
8363
8360
|
// set in the cache immediately to be able to reuse the object recursively
|
|
8364
8361
|
cache.set(object, clone);
|
|
8365
8362
|
var properties = SYMBOL_PROPERTIES ? getOwnPropertyNames(object).concat(getOwnPropertySymbols(object)) : getOwnPropertyNames(object);
|
|
8366
|
-
for (var index = 0, length_2 = properties.length, property =
|
|
8363
|
+
for (var index = 0, length_2 = properties.length, property = void 0, descriptor = void 0; index < length_2; ++index) {
|
|
8367
8364
|
property = properties[index];
|
|
8368
8365
|
if (property !== 'callee' && property !== 'caller') {
|
|
8369
8366
|
descriptor = getOwnPropertyDescriptor(object, property);
|
|
@@ -8586,7 +8583,7 @@ var contentful = (function (exports) {
|
|
|
8586
8583
|
copy.strict = function strictCopy(value, options) {
|
|
8587
8584
|
return copy(value, {
|
|
8588
8585
|
isStrict: true,
|
|
8589
|
-
realm: options ? options.realm :
|
|
8586
|
+
realm: options ? options.realm : void 0
|
|
8590
8587
|
});
|
|
8591
8588
|
};
|
|
8592
8589
|
return copy;
|
|
@@ -9288,8 +9285,8 @@ var contentful = (function (exports) {
|
|
|
9288
9285
|
var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
9289
9286
|
var _a, _b;
|
|
9290
9287
|
var params = http.httpClientParams;
|
|
9291
|
-
var includeContentSourceMaps = (_a = params === null || params ===
|
|
9292
|
-
var host = params === null || params ===
|
|
9288
|
+
var includeContentSourceMaps = (_a = params === null || params === void 0 ? void 0 : params.includeContentSourceMaps) !== null && _a !== void 0 ? _a : (_b = params === null || params === void 0 ? void 0 : params.alphaFeatures) === null || _b === void 0 ? void 0 : _b.includeContentSourceMaps;
|
|
9289
|
+
var host = params === null || params === void 0 ? void 0 : params.host;
|
|
9293
9290
|
var areAllowed = checkIncludeContentSourceMapsParamIsAllowed(host, includeContentSourceMaps);
|
|
9294
9291
|
if (areAllowed) {
|
|
9295
9292
|
query.includeContentSourceMaps = true;
|
|
@@ -9304,7 +9301,7 @@ var contentful = (function (exports) {
|
|
|
9304
9301
|
}
|
|
9305
9302
|
function maybeEncodeCPAResponse(data, config) {
|
|
9306
9303
|
var _a;
|
|
9307
|
-
var includeContentSourceMaps = (_a = config === null || config ===
|
|
9304
|
+
var includeContentSourceMaps = (_a = config === null || config === void 0 ? void 0 : config.params) === null || _a === void 0 ? void 0 : _a.includeContentSourceMaps;
|
|
9308
9305
|
if (includeContentSourceMaps) {
|
|
9309
9306
|
return fe(data);
|
|
9310
9307
|
}
|
|
@@ -9605,7 +9602,7 @@ var contentful = (function (exports) {
|
|
|
9605
9602
|
entries = _context11.sent;
|
|
9606
9603
|
return _context11.abrupt("return", resolveCircular(entries, {
|
|
9607
9604
|
resolveLinks: !withoutLinkResolution,
|
|
9608
|
-
removeUnresolved: withoutUnresolvableLinks !== null && withoutUnresolvableLinks !==
|
|
9605
|
+
removeUnresolved: withoutUnresolvableLinks !== null && withoutUnresolvableLinks !== void 0 ? withoutUnresolvableLinks : false
|
|
9609
9606
|
}));
|
|
9610
9607
|
case 8:
|
|
9611
9608
|
_context11.prev = 8;
|
|
@@ -9953,7 +9950,7 @@ var contentful = (function (exports) {
|
|
|
9953
9950
|
withoutUnresolvableLinks = options.withoutUnresolvableLinks;
|
|
9954
9951
|
return resolveCircular(data, {
|
|
9955
9952
|
resolveLinks: !withoutLinkResolution,
|
|
9956
|
-
removeUnresolved: withoutUnresolvableLinks !== null && withoutUnresolvableLinks !==
|
|
9953
|
+
removeUnresolved: withoutUnresolvableLinks !== null && withoutUnresolvableLinks !== void 0 ? withoutUnresolvableLinks : false
|
|
9957
9954
|
});
|
|
9958
9955
|
}
|
|
9959
9956
|
function getConceptScheme(id) {
|
|
@@ -10103,7 +10100,7 @@ var contentful = (function (exports) {
|
|
|
10103
10100
|
http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
|
|
10104
10101
|
}
|
|
10105
10102
|
return {
|
|
10106
|
-
version: "11.
|
|
10103
|
+
version: "11.5.0",
|
|
10107
10104
|
getSpace: getSpace,
|
|
10108
10105
|
getContentType: getContentType,
|
|
10109
10106
|
getContentTypes: getContentTypes,
|
|
@@ -10230,7 +10227,7 @@ var contentful = (function (exports) {
|
|
|
10230
10227
|
environment: 'master'
|
|
10231
10228
|
};
|
|
10232
10229
|
var config = Object.assign(Object.assign({}, defaultConfig), params);
|
|
10233
|
-
var userAgentHeader = getUserAgentHeader("contentful.js/".concat("11.
|
|
10230
|
+
var userAgentHeader = getUserAgentHeader("contentful.js/".concat("11.5.0"), config.application, config.integration);
|
|
10234
10231
|
config.headers = Object.assign(Object.assign({}, config.headers), {
|
|
10235
10232
|
'Content-Type': 'application/vnd.contentful.delivery.v1+json',
|
|
10236
10233
|
'X-Contentful-User-Agent': userAgentHeader
|