contentful 11.8.2 → 11.8.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.
@@ -14724,7 +14724,7 @@ const {
14724
14724
  toString
14725
14725
  } = Object.prototype;
14726
14726
  const {
14727
- getPrototypeOf: getPrototypeOf$3
14727
+ getPrototypeOf: getPrototypeOf$1
14728
14728
  } = Object;
14729
14729
  const {
14730
14730
  iterator,
@@ -14748,7 +14748,7 @@ const typeOfTest = type => thing => typeof thing === type;
14748
14748
  * @returns {boolean} True if value is an Array, otherwise false
14749
14749
  */
14750
14750
  const {
14751
- isArray: isArray$8
14751
+ isArray: isArray$7
14752
14752
  } = Array;
14753
14753
 
14754
14754
  /**
@@ -14851,7 +14851,7 @@ const isPlainObject$2 = val => {
14851
14851
  if (kindOf(val) !== 'object') {
14852
14852
  return false;
14853
14853
  }
14854
- const prototype = getPrototypeOf$3(val);
14854
+ const prototype = getPrototypeOf$1(val);
14855
14855
  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag$1 in val) && !(iterator in val);
14856
14856
  };
14857
14857
 
@@ -14983,7 +14983,7 @@ function forEach(obj, fn, {
14983
14983
  /*eslint no-param-reassign:0*/
14984
14984
  obj = [obj];
14985
14985
  }
14986
- if (isArray$8(obj)) {
14986
+ if (isArray$7(obj)) {
14987
14987
  // Iterate over array values
14988
14988
  for (i = 0, l = obj.length; i < l; i++) {
14989
14989
  fn.call(null, obj[i], i, obj);
@@ -15058,7 +15058,7 @@ function merge$1(/* obj1, obj2, obj3, ... */
15058
15058
  result[targetKey] = merge$1(result[targetKey], val);
15059
15059
  } else if (isPlainObject$2(val)) {
15060
15060
  result[targetKey] = merge$1({}, val);
15061
- } else if (isArray$8(val)) {
15061
+ } else if (isArray$7(val)) {
15062
15062
  result[targetKey] = val.slice();
15063
15063
  } else if (!skipUndefined || !isUndefined(val)) {
15064
15064
  result[targetKey] = val;
@@ -15154,7 +15154,7 @@ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
15154
15154
  merged[prop] = true;
15155
15155
  }
15156
15156
  }
15157
- sourceObj = filter !== false && getPrototypeOf$3(sourceObj);
15157
+ sourceObj = filter !== false && getPrototypeOf$1(sourceObj);
15158
15158
  } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
15159
15159
  return destObj;
15160
15160
  };
@@ -15187,7 +15187,7 @@ const endsWith = (str, searchString, position) => {
15187
15187
  */
15188
15188
  const toArray = thing => {
15189
15189
  if (!thing) return null;
15190
- if (isArray$8(thing)) return thing;
15190
+ if (isArray$7(thing)) return thing;
15191
15191
  let i = thing.length;
15192
15192
  if (!isNumber$1(i)) return null;
15193
15193
  const arr = new Array(i);
@@ -15211,7 +15211,7 @@ const isTypedArray = (TypedArray => {
15211
15211
  return thing => {
15212
15212
  return TypedArray && thing instanceof TypedArray;
15213
15213
  };
15214
- })(typeof Uint8Array !== 'undefined' && getPrototypeOf$3(Uint8Array));
15214
+ })(typeof Uint8Array !== 'undefined' && getPrototypeOf$1(Uint8Array));
15215
15215
 
15216
15216
  /**
15217
15217
  * For each entry in the object, call the function with the key and value.
@@ -15257,7 +15257,7 @@ const toCamelCase = str => {
15257
15257
  };
15258
15258
 
15259
15259
  /* Creating a function that will check if an object has a property. */
15260
- const hasOwnProperty$4 = (({
15260
+ const hasOwnProperty$3 = (({
15261
15261
  hasOwnProperty
15262
15262
  }) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
15263
15263
 
@@ -15313,7 +15313,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
15313
15313
  obj[value] = true;
15314
15314
  });
15315
15315
  };
15316
- isArray$8(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
15316
+ isArray$7(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
15317
15317
  return obj;
15318
15318
  };
15319
15319
  const noop$1 = () => {};
@@ -15345,7 +15345,7 @@ const toJSONObject = obj => {
15345
15345
  }
15346
15346
  if (!('toJSON' in source)) {
15347
15347
  stack[i] = source;
15348
- const target = isArray$8(source) ? [] : {};
15348
+ const target = isArray$7(source) ? [] : {};
15349
15349
  forEach(source, (value, key) => {
15350
15350
  const reducedValue = visit(value, i + 1);
15351
15351
  !isUndefined(reducedValue) && (target[key] = reducedValue);
@@ -15389,7 +15389,7 @@ const asap = typeof queueMicrotask !== 'undefined' ? queueMicrotask.bind(_global
15389
15389
 
15390
15390
  const isIterable = thing => thing != null && isFunction$1(thing[iterator]);
15391
15391
  const utils$1$1 = {
15392
- isArray: isArray$8,
15392
+ isArray: isArray$7,
15393
15393
  isArrayBuffer,
15394
15394
  isBuffer: isBuffer$1,
15395
15395
  isFormData,
@@ -15428,8 +15428,8 @@ const utils$1$1 = {
15428
15428
  forEachEntry,
15429
15429
  matchAll,
15430
15430
  isHTMLForm,
15431
- hasOwnProperty: hasOwnProperty$4,
15432
- hasOwnProp: hasOwnProperty$4,
15431
+ hasOwnProperty: hasOwnProperty$3,
15432
+ hasOwnProp: hasOwnProperty$3,
15433
15433
  // an alias to avoid ESLint no-prototype-builtins detection
15434
15434
  reduceDescriptors,
15435
15435
  freezeMethods,
@@ -18972,8 +18972,8 @@ axios.default = axios;
18972
18972
  var axios_1 = axios;
18973
18973
  var axios$1 = /*@__PURE__*/getDefaultExportFromCjs(axios_1);
18974
18974
 
18975
- var toStringFunction$1 = Function.prototype.toString;
18976
- var create$2 = Object.create;
18975
+ var toStringFunction = Function.prototype.toString;
18976
+ var create$1 = Object.create;
18977
18977
  var toStringObject = Object.prototype.toString;
18978
18978
  /**
18979
18979
  * @classdesc Fallback cache for when WeakMap is not natively supported
@@ -19004,24 +19004,24 @@ function createCacheModern() {
19004
19004
  /**
19005
19005
  * Get a new cache object to prevent circular references.
19006
19006
  */
19007
- var createCache$1 = typeof WeakMap !== 'undefined' ? createCacheModern : createCacheLegacy;
19007
+ var createCache = typeof WeakMap !== 'undefined' ? createCacheModern : createCacheLegacy;
19008
19008
  /**
19009
19009
  * Get an empty version of the object with the same prototype it has.
19010
19010
  */
19011
- function getCleanClone$1(prototype) {
19011
+ function getCleanClone(prototype) {
19012
19012
  if (!prototype) {
19013
- return create$2(null);
19013
+ return create$1(null);
19014
19014
  }
19015
19015
  var Constructor = prototype.constructor;
19016
19016
  if (Constructor === Object) {
19017
- return prototype === Object.prototype ? {} : create$2(prototype);
19017
+ return prototype === Object.prototype ? {} : create$1(prototype);
19018
19018
  }
19019
- if (Constructor && ~toStringFunction$1.call(Constructor).indexOf('[native code]')) {
19019
+ if (Constructor && ~toStringFunction.call(Constructor).indexOf('[native code]')) {
19020
19020
  try {
19021
19021
  return new Constructor();
19022
19022
  } catch (_a) {}
19023
19023
  }
19024
- return create$2(prototype);
19024
+ return create$1(prototype);
19025
19025
  }
19026
19026
  function getRegExpFlagsLegacy(regExp) {
19027
19027
  var flags = '';
@@ -19048,7 +19048,7 @@ function getRegExpFlagsModern(regExp) {
19048
19048
  /**
19049
19049
  * Get the flags to apply to the copied regexp.
19050
19050
  */
19051
- var getRegExpFlags$1 = /test/g.flags === 'g' ? getRegExpFlagsModern : getRegExpFlagsLegacy;
19051
+ var getRegExpFlags = /test/g.flags === 'g' ? getRegExpFlagsModern : getRegExpFlagsLegacy;
19052
19052
  function getTagLegacy(value) {
19053
19053
  var type = toStringObject.call(value);
19054
19054
  return type.substring(8, type.length - 1);
@@ -19060,21 +19060,21 @@ function getTagModern(value) {
19060
19060
  * Get the tag of the value passed, so that the correct copier can be used.
19061
19061
  */
19062
19062
  var getTag = typeof Symbol !== 'undefined' ? getTagModern : getTagLegacy;
19063
- var defineProperty$1 = Object.defineProperty,
19064
- getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor,
19065
- getOwnPropertyNames$1 = Object.getOwnPropertyNames,
19066
- getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
19067
- var _a$1 = Object.prototype,
19068
- hasOwnProperty$3 = _a$1.hasOwnProperty,
19069
- propertyIsEnumerable$1 = _a$1.propertyIsEnumerable;
19070
- var SUPPORTS_SYMBOL = typeof getOwnPropertySymbols$1 === 'function';
19063
+ var defineProperty = Object.defineProperty,
19064
+ getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor,
19065
+ getOwnPropertyNames = Object.getOwnPropertyNames,
19066
+ getOwnPropertySymbols = Object.getOwnPropertySymbols;
19067
+ var _a = Object.prototype,
19068
+ hasOwnProperty$2 = _a.hasOwnProperty,
19069
+ propertyIsEnumerable = _a.propertyIsEnumerable;
19070
+ var SUPPORTS_SYMBOL = typeof getOwnPropertySymbols === 'function';
19071
19071
  function getStrictPropertiesModern(object) {
19072
- return getOwnPropertyNames$1(object).concat(getOwnPropertySymbols$1(object));
19072
+ return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));
19073
19073
  }
19074
19074
  /**
19075
19075
  * Get the properites used when copying objects strictly. This includes both keys and symbols.
19076
19076
  */
19077
- var getStrictProperties = SUPPORTS_SYMBOL ? getStrictPropertiesModern : getOwnPropertyNames$1;
19077
+ var getStrictProperties = SUPPORTS_SYMBOL ? getStrictPropertiesModern : getOwnPropertyNames;
19078
19078
  /**
19079
19079
  * Striclty copy all properties contained on the object.
19080
19080
  */
@@ -19085,7 +19085,7 @@ function copyOwnPropertiesStrict(value, clone, state) {
19085
19085
  if (property === 'callee' || property === 'caller') {
19086
19086
  continue;
19087
19087
  }
19088
- descriptor = getOwnPropertyDescriptor$1(value, property);
19088
+ descriptor = getOwnPropertyDescriptor(value, property);
19089
19089
  if (!descriptor) {
19090
19090
  // In extra edge cases where the property descriptor cannot be retrived, fall back to
19091
19091
  // the loose assignment.
@@ -19097,7 +19097,7 @@ function copyOwnPropertiesStrict(value, clone, state) {
19097
19097
  descriptor.value = state.copier(descriptor.value, state);
19098
19098
  }
19099
19099
  try {
19100
- defineProperty$1(clone, property, descriptor);
19100
+ defineProperty(clone, property, descriptor);
19101
19101
  } catch (error) {
19102
19102
  // Tee above can fail on node in edge cases, so fall back to the loose assignment.
19103
19103
  clone[property] = descriptor.value;
@@ -19169,29 +19169,29 @@ function copyMapStrict(map, state) {
19169
19169
  return copyOwnPropertiesStrict(map, copyMapLoose(map, state), state);
19170
19170
  }
19171
19171
  function copyObjectLooseLegacy(object, state) {
19172
- var clone = getCleanClone$1(state.prototype);
19172
+ var clone = getCleanClone(state.prototype);
19173
19173
  // set in the cache immediately to be able to reuse the object recursively
19174
19174
  state.cache.set(object, clone);
19175
19175
  for (var key in object) {
19176
- if (hasOwnProperty$3.call(object, key)) {
19176
+ if (hasOwnProperty$2.call(object, key)) {
19177
19177
  clone[key] = state.copier(object[key], state);
19178
19178
  }
19179
19179
  }
19180
19180
  return clone;
19181
19181
  }
19182
19182
  function copyObjectLooseModern(object, state) {
19183
- var clone = getCleanClone$1(state.prototype);
19183
+ var clone = getCleanClone(state.prototype);
19184
19184
  // set in the cache immediately to be able to reuse the object recursively
19185
19185
  state.cache.set(object, clone);
19186
19186
  for (var key in object) {
19187
- if (hasOwnProperty$3.call(object, key)) {
19187
+ if (hasOwnProperty$2.call(object, key)) {
19188
19188
  clone[key] = state.copier(object[key], state);
19189
19189
  }
19190
19190
  }
19191
- var symbols = getOwnPropertySymbols$1(object);
19191
+ var symbols = getOwnPropertySymbols(object);
19192
19192
  for (var index = 0, length_3 = symbols.length, symbol = void 0; index < length_3; ++index) {
19193
19193
  symbol = symbols[index];
19194
- if (propertyIsEnumerable$1.call(object, symbol)) {
19194
+ if (propertyIsEnumerable.call(object, symbol)) {
19195
19195
  clone[symbol] = state.copier(object[symbol], state);
19196
19196
  }
19197
19197
  }
@@ -19206,7 +19206,7 @@ var copyObjectLoose = SUPPORTS_SYMBOL ? copyObjectLooseModern : copyObjectLooseL
19206
19206
  * as any hidden or non-enumerable properties.
19207
19207
  */
19208
19208
  function copyObjectStrict(object, state) {
19209
- var clone = getCleanClone$1(state.prototype);
19209
+ var clone = getCleanClone(state.prototype);
19210
19210
  // set in the cache immediately to be able to reuse the object recursively
19211
19211
  state.cache.set(object, clone);
19212
19212
  return copyOwnPropertiesStrict(object, clone, state);
@@ -19221,7 +19221,7 @@ function copyPrimitiveWrapper(primitiveObject, state) {
19221
19221
  * Create a new RegExp based on the value and flags of the original.
19222
19222
  */
19223
19223
  function copyRegExp(regExp, state) {
19224
- var clone = new state.Constructor(regExp.source, getRegExpFlags$1(regExp));
19224
+ var clone = new state.Constructor(regExp.source, getRegExpFlags(regExp));
19225
19225
  clone.lastIndex = regExp.lastIndex;
19226
19226
  return clone;
19227
19227
  }
@@ -19252,9 +19252,9 @@ function copySetLoose(set, state) {
19252
19252
  function copySetStrict(set, state) {
19253
19253
  return copyOwnPropertiesStrict(set, copySetLoose(set, state), state);
19254
19254
  }
19255
- var isArray$7 = Array.isArray;
19255
+ var isArray$6 = Array.isArray;
19256
19256
  var assign$1 = Object.assign;
19257
- var getPrototypeOf$2 = Object.getPrototypeOf || function (obj) {
19257
+ var getPrototypeOf = Object.getPrototypeOf || function (obj) {
19258
19258
  return obj.__proto__;
19259
19259
  };
19260
19260
  var DEFAULT_LOOSE_OPTIONS = {
@@ -19325,14 +19325,14 @@ function createCopier(options) {
19325
19325
  if (state.cache.has(value)) {
19326
19326
  return state.cache.get(value);
19327
19327
  }
19328
- state.prototype = getPrototypeOf$2(value);
19328
+ state.prototype = getPrototypeOf(value);
19329
19329
  state.Constructor = state.prototype && state.prototype.constructor;
19330
19330
  // plain objects
19331
19331
  if (!state.Constructor || state.Constructor === Object) {
19332
19332
  return object(value, state);
19333
19333
  }
19334
19334
  // arrays
19335
- if (isArray$7(value)) {
19335
+ if (isArray$6(value)) {
19336
19336
  return array(value, state);
19337
19337
  }
19338
19338
  var tagSpecificCopier = tagSpecificCopiers[getTag(value)];
@@ -19344,7 +19344,7 @@ function createCopier(options) {
19344
19344
  return function copy(value) {
19345
19345
  return copier(value, {
19346
19346
  Constructor: undefined,
19347
- cache: createCache$1(),
19347
+ cache: createCache(),
19348
19348
  copier: copier,
19349
19349
  prototype: undefined
19350
19350
  });
@@ -19498,7 +19498,7 @@ var Symbol$2 = _Symbol;
19498
19498
  var objectProto$2 = Object.prototype;
19499
19499
 
19500
19500
  /** Used to check objects for own properties. */
19501
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
19501
+ var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
19502
19502
 
19503
19503
  /**
19504
19504
  * Used to resolve the
@@ -19518,7 +19518,7 @@ var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : undefined;
19518
19518
  * @returns {string} Returns the raw `toStringTag`.
19519
19519
  */
19520
19520
  function getRawTag$1(value) {
19521
- var isOwn = hasOwnProperty$2.call(value, symToStringTag$1),
19521
+ var isOwn = hasOwnProperty$1.call(value, symToStringTag$1),
19522
19522
  tag = value[symToStringTag$1];
19523
19523
  try {
19524
19524
  value[symToStringTag$1] = undefined;
@@ -19607,8 +19607,8 @@ var _baseGetTag = baseGetTag$2;
19607
19607
  * _.isArray(_.noop);
19608
19608
  * // => false
19609
19609
  */
19610
- var isArray$6 = Array.isArray;
19611
- var isArray_1 = isArray$6;
19610
+ var isArray$5 = Array.isArray;
19611
+ var isArray_1 = isArray$5;
19612
19612
 
19613
19613
  /**
19614
19614
  * Checks if `value` is object-like. A value is object-like if it's not `null`
@@ -19640,7 +19640,7 @@ function isObjectLike$2(value) {
19640
19640
  var isObjectLike_1 = isObjectLike$2;
19641
19641
 
19642
19642
  var baseGetTag$1 = _baseGetTag,
19643
- isArray$5 = isArray_1,
19643
+ isArray$4 = isArray_1,
19644
19644
  isObjectLike$1 = isObjectLike_1;
19645
19645
 
19646
19646
  /** `Object#toString` result references. */
@@ -19664,7 +19664,7 @@ var stringTag = '[object String]';
19664
19664
  * // => false
19665
19665
  */
19666
19666
  function isString$1(value) {
19667
- return typeof value == 'string' || !isArray$5(value) && isObjectLike$1(value) && baseGetTag$1(value) == stringTag;
19667
+ return typeof value == 'string' || !isArray$4(value) && isObjectLike$1(value) && baseGetTag$1(value) == stringTag;
19668
19668
  }
19669
19669
  var isString_1 = isString$1;
19670
19670
  var isString$2 = /*@__PURE__*/getDefaultExportFromCjs(isString_1);
@@ -20060,7 +20060,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
20060
20060
  depth = 0;
20061
20061
  }
20062
20062
  if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
20063
- return isArray$4(obj) ? '[Array]' : '[Object]';
20063
+ return isArray$3(obj) ? '[Array]' : '[Object]';
20064
20064
  }
20065
20065
  var indent = getIndent(opts, depth);
20066
20066
  if (typeof seen === 'undefined') {
@@ -20107,7 +20107,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
20107
20107
  s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
20108
20108
  return s;
20109
20109
  }
20110
- if (isArray$4(obj)) {
20110
+ if (isArray$3(obj)) {
20111
20111
  if (obj.length === 0) {
20112
20112
  return '[]';
20113
20113
  }
@@ -20207,7 +20207,7 @@ function wrapQuotes(s, defaultStyle, opts) {
20207
20207
  function quote(s) {
20208
20208
  return $replace.call(String(s), /"/g, '&quot;');
20209
20209
  }
20210
- function isArray$4(obj) {
20210
+ function isArray$3(obj) {
20211
20211
  return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
20212
20212
  }
20213
20213
  function isDate(obj) {
@@ -20429,7 +20429,7 @@ function indentedJoin(xs, indent) {
20429
20429
  return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
20430
20430
  }
20431
20431
  function arrObjKeys(obj, inspect) {
20432
- var isArr = isArray$4(obj);
20432
+ var isArr = isArray$3(obj);
20433
20433
  var xs = [];
20434
20434
  if (isArr) {
20435
20435
  xs.length = obj.length;
@@ -20630,7 +20630,7 @@ var formats$3 = {
20630
20630
 
20631
20631
  var formats$2 = formats$3;
20632
20632
  var has$2 = Object.prototype.hasOwnProperty;
20633
- var isArray$3 = Array.isArray;
20633
+ var isArray$2 = Array.isArray;
20634
20634
  var hexTable = function () {
20635
20635
  var array = [];
20636
20636
  for (var i = 0; i < 256; ++i) {
@@ -20642,7 +20642,7 @@ var compactQueue = function compactQueue(queue) {
20642
20642
  while (queue.length > 1) {
20643
20643
  var item = queue.pop();
20644
20644
  var obj = item.obj[item.prop];
20645
- if (isArray$3(obj)) {
20645
+ if (isArray$2(obj)) {
20646
20646
  var compacted = [];
20647
20647
  for (var j = 0; j < obj.length; ++j) {
20648
20648
  if (typeof obj[j] !== 'undefined') {
@@ -20668,7 +20668,7 @@ var merge = function merge(target, source, options) {
20668
20668
  return target;
20669
20669
  }
20670
20670
  if (typeof source !== 'object') {
20671
- if (isArray$3(target)) {
20671
+ if (isArray$2(target)) {
20672
20672
  target.push(source);
20673
20673
  } else if (target && typeof target === 'object') {
20674
20674
  if (options && (options.plainObjects || options.allowPrototypes) || !has$2.call(Object.prototype, source)) {
@@ -20683,10 +20683,10 @@ var merge = function merge(target, source, options) {
20683
20683
  return [target].concat(source);
20684
20684
  }
20685
20685
  var mergeTarget = target;
20686
- if (isArray$3(target) && !isArray$3(source)) {
20686
+ if (isArray$2(target) && !isArray$2(source)) {
20687
20687
  mergeTarget = arrayToObject(target, options);
20688
20688
  }
20689
- if (isArray$3(target) && isArray$3(source)) {
20689
+ if (isArray$2(target) && isArray$2(source)) {
20690
20690
  source.forEach(function (item, i) {
20691
20691
  if (has$2.call(target, i)) {
20692
20692
  var targetItem = target[i];
@@ -20829,7 +20829,7 @@ var combine = function combine(a, b) {
20829
20829
  return [].concat(a, b);
20830
20830
  };
20831
20831
  var maybeMap = function maybeMap(val, fn) {
20832
- if (isArray$3(val)) {
20832
+ if (isArray$2(val)) {
20833
20833
  var mapped = [];
20834
20834
  for (var i = 0; i < val.length; i += 1) {
20835
20835
  mapped.push(fn(val[i]));
@@ -20867,10 +20867,10 @@ var arrayPrefixGenerators = {
20867
20867
  return prefix;
20868
20868
  }
20869
20869
  };
20870
- var isArray$2 = Array.isArray;
20870
+ var isArray$1 = Array.isArray;
20871
20871
  var push = Array.prototype.push;
20872
20872
  var pushToArray = function (arr, valueOrArray) {
20873
- push.apply(arr, isArray$2(valueOrArray) ? valueOrArray : [valueOrArray]);
20873
+ push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
20874
20874
  };
20875
20875
  var toISO = Date.prototype.toISOString;
20876
20876
  var defaultFormat = formats$1['default'];
@@ -20924,7 +20924,7 @@ var stringify$2 = function stringify(object, prefix, generateArrayPrefix, commaR
20924
20924
  obj = filter(prefix, obj);
20925
20925
  } else if (obj instanceof Date) {
20926
20926
  obj = serializeDate(obj);
20927
- } else if (generateArrayPrefix === 'comma' && isArray$2(obj)) {
20927
+ } else if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
20928
20928
  obj = utils$1.maybeMap(obj, function (value) {
20929
20929
  if (value instanceof Date) {
20930
20930
  return serializeDate(value);
@@ -20950,7 +20950,7 @@ var stringify$2 = function stringify(object, prefix, generateArrayPrefix, commaR
20950
20950
  return values;
20951
20951
  }
20952
20952
  var objKeys;
20953
- if (generateArrayPrefix === 'comma' && isArray$2(obj)) {
20953
+ if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
20954
20954
  // we need to join elements in
20955
20955
  if (encodeValuesOnly && encoder) {
20956
20956
  obj = utils$1.maybeMap(obj, encoder);
@@ -20958,15 +20958,15 @@ var stringify$2 = function stringify(object, prefix, generateArrayPrefix, commaR
20958
20958
  objKeys = [{
20959
20959
  value: obj.length > 0 ? obj.join(',') || null : void undefined
20960
20960
  }];
20961
- } else if (isArray$2(filter)) {
20961
+ } else if (isArray$1(filter)) {
20962
20962
  objKeys = filter;
20963
20963
  } else {
20964
20964
  var keys = Object.keys(obj);
20965
20965
  objKeys = sort ? keys.sort(sort) : keys;
20966
20966
  }
20967
20967
  var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
20968
- var adjustedPrefix = commaRoundTrip && isArray$2(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
20969
- if (allowEmptyArrays && isArray$2(obj) && obj.length === 0) {
20968
+ var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
20969
+ if (allowEmptyArrays && isArray$1(obj) && obj.length === 0) {
20970
20970
  return adjustedPrefix + '[]';
20971
20971
  }
20972
20972
  for (var j = 0; j < objKeys.length; ++j) {
@@ -20976,11 +20976,11 @@ var stringify$2 = function stringify(object, prefix, generateArrayPrefix, commaR
20976
20976
  continue;
20977
20977
  }
20978
20978
  var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
20979
- var keyPrefix = isArray$2(obj) ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
20979
+ var keyPrefix = isArray$1(obj) ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
20980
20980
  sideChannel.set(object, step);
20981
20981
  var valueSideChannel = getSideChannel();
20982
20982
  valueSideChannel.set(sentinel, sideChannel);
20983
- pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$2(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
20983
+ pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$1(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
20984
20984
  }
20985
20985
  return values;
20986
20986
  };
@@ -21010,7 +21010,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
21010
21010
  }
21011
21011
  var formatter = formats$1.formatters[format];
21012
21012
  var filter = defaults$1.filter;
21013
- if (typeof opts.filter === 'function' || isArray$2(opts.filter)) {
21013
+ if (typeof opts.filter === 'function' || isArray$1(opts.filter)) {
21014
21014
  filter = opts.filter;
21015
21015
  }
21016
21016
  var arrayFormat;
@@ -21055,7 +21055,7 @@ var stringify_1 = function (object, opts) {
21055
21055
  if (typeof options.filter === 'function') {
21056
21056
  filter = options.filter;
21057
21057
  obj = filter('', obj);
21058
- } else if (isArray$2(options.filter)) {
21058
+ } else if (isArray$1(options.filter)) {
21059
21059
  filter = options.filter;
21060
21060
  objKeys = filter;
21061
21061
  }
@@ -21095,7 +21095,7 @@ var stringify_1 = function (object, opts) {
21095
21095
 
21096
21096
  var utils = utils$2;
21097
21097
  var has = Object.prototype.hasOwnProperty;
21098
- var isArray$1 = Array.isArray;
21098
+ var isArray = Array.isArray;
21099
21099
  var defaults = {
21100
21100
  allowDots: false,
21101
21101
  allowEmptyArrays: false,
@@ -21185,7 +21185,7 @@ var parseValues = function parseQueryStringValues(str, options) {
21185
21185
  val = interpretNumericEntities(val);
21186
21186
  }
21187
21187
  if (part.indexOf('[]=') > -1) {
21188
- val = isArray$1(val) ? [val] : val;
21188
+ val = isArray(val) ? [val] : val;
21189
21189
  }
21190
21190
  var existing = has.call(obj, key);
21191
21191
  if (existing && options.duplicates === 'combine') {
@@ -21651,7 +21651,7 @@ var funcProto = Function.prototype,
21651
21651
  var funcToString = funcProto.toString;
21652
21652
 
21653
21653
  /** Used to check objects for own properties. */
21654
- var hasOwnProperty$1 = objectProto.hasOwnProperty;
21654
+ var hasOwnProperty = objectProto.hasOwnProperty;
21655
21655
 
21656
21656
  /** Used to infer the `Object` constructor. */
21657
21657
  var objectCtorString = funcToString.call(Object);
@@ -21692,7 +21692,7 @@ function isPlainObject(value) {
21692
21692
  if (proto === null) {
21693
21693
  return true;
21694
21694
  }
21695
- var Ctor = hasOwnProperty$1.call(proto, 'constructor') && proto.constructor;
21695
+ var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
21696
21696
  return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
21697
21697
  }
21698
21698
  var isPlainObject_1 = isPlainObject;
@@ -22114,355 +22114,6 @@ const $ = (t, n, o, e, r) => {
22114
22114
  return e;
22115
22115
  };
22116
22116
 
22117
- var toStringFunction = Function.prototype.toString;
22118
- var create$1 = Object.create,
22119
- defineProperty = Object.defineProperty,
22120
- getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor,
22121
- getOwnPropertyNames = Object.getOwnPropertyNames,
22122
- getOwnPropertySymbols = Object.getOwnPropertySymbols,
22123
- getPrototypeOf$1 = Object.getPrototypeOf;
22124
- var _a = Object.prototype,
22125
- hasOwnProperty = _a.hasOwnProperty,
22126
- propertyIsEnumerable = _a.propertyIsEnumerable;
22127
- var SYMBOL_PROPERTIES = typeof getOwnPropertySymbols === 'function';
22128
- var WEAK_MAP = typeof WeakMap === 'function';
22129
- /**
22130
- * @function createCache
22131
- *
22132
- * @description
22133
- * get a new cache object to prevent circular references
22134
- *
22135
- * @returns the new cache object
22136
- */
22137
- var createCache = function () {
22138
- if (WEAK_MAP) {
22139
- return function () {
22140
- return new WeakMap();
22141
- };
22142
- }
22143
- var Cache = /** @class */function () {
22144
- function Cache() {
22145
- this._keys = [];
22146
- this._values = [];
22147
- }
22148
- Cache.prototype.has = function (key) {
22149
- return !!~this._keys.indexOf(key);
22150
- };
22151
- Cache.prototype.get = function (key) {
22152
- return this._values[this._keys.indexOf(key)];
22153
- };
22154
- Cache.prototype.set = function (key, value) {
22155
- this._keys.push(key);
22156
- this._values.push(value);
22157
- };
22158
- return Cache;
22159
- }();
22160
- return function () {
22161
- return new Cache();
22162
- };
22163
- }();
22164
- /**
22165
- * @function getCleanClone
22166
- *
22167
- * @description
22168
- * get an empty version of the object with the same prototype it has
22169
- *
22170
- * @param object the object to build a clean clone from
22171
- * @param realm the realm the object resides in
22172
- * @returns the empty cloned object
22173
- */
22174
- var getCleanClone = function (object, realm) {
22175
- var prototype = object.__proto__ || getPrototypeOf$1(object);
22176
- if (!prototype) {
22177
- return create$1(null);
22178
- }
22179
- var Constructor = prototype.constructor;
22180
- if (Constructor === realm.Object) {
22181
- return prototype === realm.Object.prototype ? {} : create$1(prototype);
22182
- }
22183
- if (~toStringFunction.call(Constructor).indexOf('[native code]')) {
22184
- try {
22185
- return new Constructor();
22186
- } catch (_a) {}
22187
- }
22188
- return create$1(prototype);
22189
- };
22190
- /**
22191
- * @function getObjectCloneLoose
22192
- *
22193
- * @description
22194
- * get a copy of the object based on loose rules, meaning all enumerable keys
22195
- * and symbols are copied, but property descriptors are not considered
22196
- *
22197
- * @param object the object to clone
22198
- * @param realm the realm the object resides in
22199
- * @param handleCopy the function that handles copying the object
22200
- * @returns the copied object
22201
- */
22202
- var getObjectCloneLoose = function (object, realm, handleCopy, cache) {
22203
- var clone = getCleanClone(object, realm);
22204
- // set in the cache immediately to be able to reuse the object recursively
22205
- cache.set(object, clone);
22206
- for (var key in object) {
22207
- if (hasOwnProperty.call(object, key)) {
22208
- clone[key] = handleCopy(object[key], cache);
22209
- }
22210
- }
22211
- if (SYMBOL_PROPERTIES) {
22212
- var symbols = getOwnPropertySymbols(object);
22213
- for (var index = 0, length_1 = symbols.length, symbol = void 0; index < length_1; ++index) {
22214
- symbol = symbols[index];
22215
- if (propertyIsEnumerable.call(object, symbol)) {
22216
- clone[symbol] = handleCopy(object[symbol], cache);
22217
- }
22218
- }
22219
- }
22220
- return clone;
22221
- };
22222
- /**
22223
- * @function getObjectCloneStrict
22224
- *
22225
- * @description
22226
- * get a copy of the object based on strict rules, meaning all keys and symbols
22227
- * are copied based on the original property descriptors
22228
- *
22229
- * @param object the object to clone
22230
- * @param realm the realm the object resides in
22231
- * @param handleCopy the function that handles copying the object
22232
- * @returns the copied object
22233
- */
22234
- var getObjectCloneStrict = function (object, realm, handleCopy, cache) {
22235
- var clone = getCleanClone(object, realm);
22236
- // set in the cache immediately to be able to reuse the object recursively
22237
- cache.set(object, clone);
22238
- var properties = SYMBOL_PROPERTIES ? getOwnPropertyNames(object).concat(getOwnPropertySymbols(object)) : getOwnPropertyNames(object);
22239
- for (var index = 0, length_2 = properties.length, property = void 0, descriptor = void 0; index < length_2; ++index) {
22240
- property = properties[index];
22241
- if (property !== 'callee' && property !== 'caller') {
22242
- descriptor = getOwnPropertyDescriptor(object, property);
22243
- if (descriptor) {
22244
- // Only clone the value if actually a value, not a getter / setter.
22245
- if (!descriptor.get && !descriptor.set) {
22246
- descriptor.value = handleCopy(object[property], cache);
22247
- }
22248
- try {
22249
- defineProperty(clone, property, descriptor);
22250
- } catch (error) {
22251
- // Tee above can fail on node in edge cases, so fall back to the loose assignment.
22252
- clone[property] = descriptor.value;
22253
- }
22254
- } else {
22255
- // In extra edge cases where the property descriptor cannot be retrived, fall back to
22256
- // the loose assignment.
22257
- clone[property] = handleCopy(object[property], cache);
22258
- }
22259
- }
22260
- }
22261
- return clone;
22262
- };
22263
- /**
22264
- * @function getRegExpFlags
22265
- *
22266
- * @description
22267
- * get the flags to apply to the copied regexp
22268
- *
22269
- * @param regExp the regexp to get the flags of
22270
- * @returns the flags for the regexp
22271
- */
22272
- var getRegExpFlags = function (regExp) {
22273
- var flags = '';
22274
- if (regExp.global) {
22275
- flags += 'g';
22276
- }
22277
- if (regExp.ignoreCase) {
22278
- flags += 'i';
22279
- }
22280
- if (regExp.multiline) {
22281
- flags += 'm';
22282
- }
22283
- if (regExp.unicode) {
22284
- flags += 'u';
22285
- }
22286
- if (regExp.sticky) {
22287
- flags += 'y';
22288
- }
22289
- return flags;
22290
- };
22291
-
22292
- // utils
22293
- var isArray = Array.isArray;
22294
- var getPrototypeOf = Object.getPrototypeOf;
22295
- var GLOBAL_THIS = function () {
22296
- if (typeof globalThis !== 'undefined') {
22297
- return globalThis;
22298
- }
22299
- if (typeof self !== 'undefined') {
22300
- return self;
22301
- }
22302
- if (typeof window !== 'undefined') {
22303
- return window;
22304
- }
22305
- if (typeof global !== 'undefined') {
22306
- return global;
22307
- }
22308
- if (console && console.error) {
22309
- console.error('Unable to locate global object, returning "this".');
22310
- }
22311
- return this;
22312
- }();
22313
- /**
22314
- * @function copy
22315
- *
22316
- * @description
22317
- * copy an value deeply as much as possible
22318
- *
22319
- * If `strict` is applied, then all properties (including non-enumerable ones)
22320
- * are copied with their original property descriptors on both objects and arrays.
22321
- *
22322
- * The value is compared to the global constructors in the `realm` provided,
22323
- * and the native constructor is always used to ensure that extensions of native
22324
- * objects (allows in ES2015+) are maintained.
22325
- *
22326
- * @param value the value to copy
22327
- * @param [options] the options for copying with
22328
- * @param [options.isStrict] should the copy be strict
22329
- * @param [options.realm] the realm (this) value the value is copied from
22330
- * @returns the copied value
22331
- */
22332
- function copy(value, options) {
22333
- // manually coalesced instead of default parameters for performance
22334
- var isStrict = !!(options && options.isStrict);
22335
- var realm = options && options.realm || GLOBAL_THIS;
22336
- var getObjectClone = isStrict ? getObjectCloneStrict : getObjectCloneLoose;
22337
- /**
22338
- * @function handleCopy
22339
- *
22340
- * @description
22341
- * copy the value recursively based on its type
22342
- *
22343
- * @param value the value to copy
22344
- * @returns the copied value
22345
- */
22346
- var handleCopy = function (value, cache) {
22347
- if (!value || typeof value !== 'object') {
22348
- return value;
22349
- }
22350
- if (cache.has(value)) {
22351
- return cache.get(value);
22352
- }
22353
- var prototype = value.__proto__ || getPrototypeOf(value);
22354
- var Constructor = prototype && prototype.constructor;
22355
- // plain objects
22356
- if (!Constructor || Constructor === realm.Object) {
22357
- return getObjectClone(value, realm, handleCopy, cache);
22358
- }
22359
- var clone;
22360
- // arrays
22361
- if (isArray(value)) {
22362
- // if strict, include non-standard properties
22363
- if (isStrict) {
22364
- return getObjectCloneStrict(value, realm, handleCopy, cache);
22365
- }
22366
- clone = new Constructor();
22367
- cache.set(value, clone);
22368
- for (var index = 0, length_1 = value.length; index < length_1; ++index) {
22369
- clone[index] = handleCopy(value[index], cache);
22370
- }
22371
- return clone;
22372
- }
22373
- // dates
22374
- if (value instanceof realm.Date) {
22375
- return new Constructor(value.getTime());
22376
- }
22377
- // regexps
22378
- if (value instanceof realm.RegExp) {
22379
- clone = new Constructor(value.source, value.flags || getRegExpFlags(value));
22380
- clone.lastIndex = value.lastIndex;
22381
- return clone;
22382
- }
22383
- // maps
22384
- if (realm.Map && value instanceof realm.Map) {
22385
- clone = new Constructor();
22386
- cache.set(value, clone);
22387
- value.forEach(function (value, key) {
22388
- clone.set(key, handleCopy(value, cache));
22389
- });
22390
- return clone;
22391
- }
22392
- // sets
22393
- if (realm.Set && value instanceof realm.Set) {
22394
- clone = new Constructor();
22395
- cache.set(value, clone);
22396
- value.forEach(function (value) {
22397
- clone.add(handleCopy(value, cache));
22398
- });
22399
- return clone;
22400
- }
22401
- // blobs
22402
- if (realm.Blob && value instanceof realm.Blob) {
22403
- return value.slice(0, value.size, value.type);
22404
- }
22405
- // buffers (node-only)
22406
- if (realm.Buffer && realm.Buffer.isBuffer(value)) {
22407
- clone = realm.Buffer.allocUnsafe ? realm.Buffer.allocUnsafe(value.length) : new Constructor(value.length);
22408
- cache.set(value, clone);
22409
- value.copy(clone);
22410
- return clone;
22411
- }
22412
- // arraybuffers / dataviews
22413
- if (realm.ArrayBuffer) {
22414
- // dataviews
22415
- if (realm.ArrayBuffer.isView(value)) {
22416
- clone = new Constructor(value.buffer.slice(0));
22417
- cache.set(value, clone);
22418
- return clone;
22419
- }
22420
- // arraybuffers
22421
- if (value instanceof realm.ArrayBuffer) {
22422
- clone = value.slice(0);
22423
- cache.set(value, clone);
22424
- return clone;
22425
- }
22426
- }
22427
- // if the value cannot / should not be cloned, don't
22428
- if (
22429
- // promise-like
22430
- typeof value.then === 'function' ||
22431
- // errors
22432
- value instanceof Error ||
22433
- // weakmaps
22434
- realm.WeakMap && value instanceof realm.WeakMap ||
22435
- // weaksets
22436
- realm.WeakSet && value instanceof realm.WeakSet) {
22437
- return value;
22438
- }
22439
- // assume anything left is a custom constructor
22440
- return getObjectClone(value, realm, handleCopy, cache);
22441
- };
22442
- return handleCopy(value, createCache());
22443
- }
22444
- // Adding reference to allow usage in CommonJS libraries compiled using TSC, which
22445
- // expects there to be a default property on the exported value. See
22446
- // [#37](https://github.com/planttheidea/fast-copy/issues/37) for details.
22447
- copy.default = copy;
22448
- /**
22449
- * @function strictCopy
22450
- *
22451
- * @description
22452
- * copy the value with `strict` option pre-applied
22453
- *
22454
- * @param value the value to copy
22455
- * @param [options] the options for copying with
22456
- * @param [options.realm] the realm (this) value the value is copied from
22457
- * @returns the copied value
22458
- */
22459
- copy.strict = function strictCopy(value, options) {
22460
- return copy(value, {
22461
- isStrict: true,
22462
- realm: options ? options.realm : void 0
22463
- });
22464
- };
22465
-
22466
22117
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
22467
22118
  return typeof obj;
22468
22119
  } : function (obj) {
@@ -22706,7 +22357,7 @@ var resolveResponse = function resolveResponse(response, options) {
22706
22357
  if (!response.items) {
22707
22358
  return [];
22708
22359
  }
22709
- var responseClone = copy(response);
22360
+ var responseClone = index(response);
22710
22361
  var allIncludes = Object.keys(responseClone.includes || {}).reduce(function (all, type) {
22711
22362
  return [].concat(_toConsumableArray(all), _toConsumableArray(response.includes[type]));
22712
22363
  }, []);
@@ -23553,7 +23204,7 @@ function createContentfulApi({
23553
23204
  http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
23554
23205
  }
23555
23206
  return {
23556
- version: "11.8.2",
23207
+ version: "11.8.3",
23557
23208
  getSpace,
23558
23209
  getContentType,
23559
23210
  getContentTypes,
@@ -23678,7 +23329,7 @@ function createClient(params) {
23678
23329
  environment: 'master'
23679
23330
  };
23680
23331
  const config = Object.assign(Object.assign({}, defaultConfig), params);
23681
- const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.8.2"}`, config.application, config.integration);
23332
+ const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.8.3"}`, config.application, config.integration);
23682
23333
  config.headers = Object.assign(Object.assign({}, config.headers), {
23683
23334
  'Content-Type': 'application/vnd.contentful.delivery.v1+json',
23684
23335
  'X-Contentful-User-Agent': userAgentHeader