contentful 9.2.6 → 9.2.7
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.browser.js +430 -5
- package/dist/contentful.browser.js.map +1 -1
- package/dist/contentful.browser.min.js +3 -3
- package/dist/contentful.node.js +424 -5
- package/dist/contentful.node.js.map +1 -1
- package/dist/contentful.node.min.js +3 -3
- package/dist/es-modules/contentful.js +1 -1
- package/package.json +1 -1
package/dist/contentful.node.js
CHANGED
|
@@ -4930,7 +4930,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4930
4930
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "freezeSys", function() { return freezeSys; });
|
|
4931
4931
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUserAgentHeader", function() { return getUserAgentHeader; });
|
|
4932
4932
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toPlainObject", function() { return toPlainObject; });
|
|
4933
|
-
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/
|
|
4933
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/contentful-sdk-core/node_modules/fast-copy/dist/esm/index.mjs");
|
|
4934
4934
|
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! qs */ "../node_modules/qs/lib/index.js");
|
|
4935
4935
|
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_1__);
|
|
4936
4936
|
/* harmony import */ var lodash_isstring__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash.isstring */ "../node_modules/lodash.isstring/index.js");
|
|
@@ -4999,7 +4999,13 @@ function _wrapRegExp() {
|
|
|
4999
4999
|
var g = _groups.get(re);
|
|
5000
5000
|
|
|
5001
5001
|
return Object.keys(g).reduce(function (groups, name) {
|
|
5002
|
-
|
|
5002
|
+
var i = g[name];
|
|
5003
|
+
if ("number" == typeof i) groups[name] = result[i];else {
|
|
5004
|
+
for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++;
|
|
5005
|
+
|
|
5006
|
+
groups[name] = result[i[k]];
|
|
5007
|
+
}
|
|
5008
|
+
return groups;
|
|
5003
5009
|
}, Object.create(null));
|
|
5004
5010
|
}
|
|
5005
5011
|
|
|
@@ -5063,11 +5069,10 @@ function _inherits(subClass, superClass) {
|
|
|
5063
5069
|
}
|
|
5064
5070
|
|
|
5065
5071
|
function _setPrototypeOf(o, p) {
|
|
5066
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
5072
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
5067
5073
|
o.__proto__ = p;
|
|
5068
5074
|
return o;
|
|
5069
5075
|
};
|
|
5070
|
-
|
|
5071
5076
|
return _setPrototypeOf(o, p);
|
|
5072
5077
|
}
|
|
5073
5078
|
|
|
@@ -5782,6 +5787,420 @@ function errorHandler(errorResponse) {
|
|
|
5782
5787
|
|
|
5783
5788
|
|
|
5784
5789
|
|
|
5790
|
+
/***/ }),
|
|
5791
|
+
|
|
5792
|
+
/***/ "../node_modules/contentful-sdk-core/node_modules/fast-copy/dist/esm/index.mjs":
|
|
5793
|
+
/*!*************************************************************************************!*\
|
|
5794
|
+
!*** ../node_modules/contentful-sdk-core/node_modules/fast-copy/dist/esm/index.mjs ***!
|
|
5795
|
+
\*************************************************************************************/
|
|
5796
|
+
/*! exports provided: copyStrict, createCopier, createStrictCopier, default */
|
|
5797
|
+
/***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5798
|
+
|
|
5799
|
+
"use strict";
|
|
5800
|
+
__webpack_require__.r(__webpack_exports__);
|
|
5801
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copyStrict", function() { return copyStrict; });
|
|
5802
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createCopier", function() { return createCopier; });
|
|
5803
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createStrictCopier", function() { return createStrictCopier; });
|
|
5804
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return index; });
|
|
5805
|
+
var toStringFunction = Function.prototype.toString;
|
|
5806
|
+
var create = Object.create;
|
|
5807
|
+
var toStringObject = Object.prototype.toString;
|
|
5808
|
+
/**
|
|
5809
|
+
* @classdesc Fallback cache for when WeakMap is not natively supported
|
|
5810
|
+
*/
|
|
5811
|
+
var LegacyCache = /** @class */ (function () {
|
|
5812
|
+
function LegacyCache() {
|
|
5813
|
+
this._keys = [];
|
|
5814
|
+
this._values = [];
|
|
5815
|
+
}
|
|
5816
|
+
LegacyCache.prototype.has = function (key) {
|
|
5817
|
+
return !!~this._keys.indexOf(key);
|
|
5818
|
+
};
|
|
5819
|
+
LegacyCache.prototype.get = function (key) {
|
|
5820
|
+
return this._values[this._keys.indexOf(key)];
|
|
5821
|
+
};
|
|
5822
|
+
LegacyCache.prototype.set = function (key, value) {
|
|
5823
|
+
this._keys.push(key);
|
|
5824
|
+
this._values.push(value);
|
|
5825
|
+
};
|
|
5826
|
+
return LegacyCache;
|
|
5827
|
+
}());
|
|
5828
|
+
function createCacheLegacy() {
|
|
5829
|
+
return new LegacyCache();
|
|
5830
|
+
}
|
|
5831
|
+
function createCacheModern() {
|
|
5832
|
+
return new WeakMap();
|
|
5833
|
+
}
|
|
5834
|
+
/**
|
|
5835
|
+
* Get a new cache object to prevent circular references.
|
|
5836
|
+
*/
|
|
5837
|
+
var createCache = typeof WeakMap !== 'undefined' ? createCacheModern : createCacheLegacy;
|
|
5838
|
+
/**
|
|
5839
|
+
* Get an empty version of the object with the same prototype it has.
|
|
5840
|
+
*/
|
|
5841
|
+
function getCleanClone(prototype) {
|
|
5842
|
+
if (!prototype) {
|
|
5843
|
+
return create(null);
|
|
5844
|
+
}
|
|
5845
|
+
var Constructor = prototype.constructor;
|
|
5846
|
+
if (Constructor === Object) {
|
|
5847
|
+
return prototype === Object.prototype ? {} : create(prototype);
|
|
5848
|
+
}
|
|
5849
|
+
if (~toStringFunction.call(Constructor).indexOf('[native code]')) {
|
|
5850
|
+
try {
|
|
5851
|
+
return new Constructor();
|
|
5852
|
+
}
|
|
5853
|
+
catch (_a) { }
|
|
5854
|
+
}
|
|
5855
|
+
return create(prototype);
|
|
5856
|
+
}
|
|
5857
|
+
function getRegExpFlagsLegacy(regExp) {
|
|
5858
|
+
var flags = '';
|
|
5859
|
+
if (regExp.global) {
|
|
5860
|
+
flags += 'g';
|
|
5861
|
+
}
|
|
5862
|
+
if (regExp.ignoreCase) {
|
|
5863
|
+
flags += 'i';
|
|
5864
|
+
}
|
|
5865
|
+
if (regExp.multiline) {
|
|
5866
|
+
flags += 'm';
|
|
5867
|
+
}
|
|
5868
|
+
if (regExp.unicode) {
|
|
5869
|
+
flags += 'u';
|
|
5870
|
+
}
|
|
5871
|
+
if (regExp.sticky) {
|
|
5872
|
+
flags += 'y';
|
|
5873
|
+
}
|
|
5874
|
+
return flags;
|
|
5875
|
+
}
|
|
5876
|
+
function getRegExpFlagsModern(regExp) {
|
|
5877
|
+
return regExp.flags;
|
|
5878
|
+
}
|
|
5879
|
+
/**
|
|
5880
|
+
* Get the flags to apply to the copied regexp.
|
|
5881
|
+
*/
|
|
5882
|
+
var getRegExpFlags = /test/g.flags === 'g' ? getRegExpFlagsModern : getRegExpFlagsLegacy;
|
|
5883
|
+
function getTagLegacy(value) {
|
|
5884
|
+
var type = toStringObject.call(value);
|
|
5885
|
+
return type.substring(8, type.length - 1);
|
|
5886
|
+
}
|
|
5887
|
+
function getTagModern(value) {
|
|
5888
|
+
return value[Symbol.toStringTag] || getTagLegacy(value);
|
|
5889
|
+
}
|
|
5890
|
+
/**
|
|
5891
|
+
* Get the tag of the value passed, so that the correct copier can be used.
|
|
5892
|
+
*/
|
|
5893
|
+
var getTag = typeof Symbol !== 'undefined' ? getTagModern : getTagLegacy;
|
|
5894
|
+
|
|
5895
|
+
var defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
5896
|
+
var _a = Object.prototype, hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable;
|
|
5897
|
+
var SUPPORTS_SYMBOL = typeof getOwnPropertySymbols === 'function';
|
|
5898
|
+
function getStrictPropertiesModern(object) {
|
|
5899
|
+
return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));
|
|
5900
|
+
}
|
|
5901
|
+
/**
|
|
5902
|
+
* Get the properites used when copying objects strictly. This includes both keys and symbols.
|
|
5903
|
+
*/
|
|
5904
|
+
var getStrictProperties = SUPPORTS_SYMBOL
|
|
5905
|
+
? getStrictPropertiesModern
|
|
5906
|
+
: getOwnPropertyNames;
|
|
5907
|
+
/**
|
|
5908
|
+
* Striclty copy all properties contained on the object.
|
|
5909
|
+
*/
|
|
5910
|
+
function copyOwnPropertiesStrict(value, clone, state) {
|
|
5911
|
+
var properties = getStrictProperties(value);
|
|
5912
|
+
for (var index = 0, length_1 = properties.length, property = void 0, descriptor = void 0; index < length_1; ++index) {
|
|
5913
|
+
property = properties[index];
|
|
5914
|
+
if (property === 'callee' || property === 'caller') {
|
|
5915
|
+
continue;
|
|
5916
|
+
}
|
|
5917
|
+
descriptor = getOwnPropertyDescriptor(value, property);
|
|
5918
|
+
if (!descriptor) {
|
|
5919
|
+
// In extra edge cases where the property descriptor cannot be retrived, fall back to
|
|
5920
|
+
// the loose assignment.
|
|
5921
|
+
clone[property] = state.copier(value[property], state);
|
|
5922
|
+
continue;
|
|
5923
|
+
}
|
|
5924
|
+
// Only clone the value if actually a value, not a getter / setter.
|
|
5925
|
+
if (!descriptor.get && !descriptor.set) {
|
|
5926
|
+
descriptor.value = state.copier(descriptor.value, state);
|
|
5927
|
+
}
|
|
5928
|
+
try {
|
|
5929
|
+
defineProperty(clone, property, descriptor);
|
|
5930
|
+
}
|
|
5931
|
+
catch (error) {
|
|
5932
|
+
// Tee above can fail on node in edge cases, so fall back to the loose assignment.
|
|
5933
|
+
clone[property] = descriptor.value;
|
|
5934
|
+
}
|
|
5935
|
+
}
|
|
5936
|
+
return clone;
|
|
5937
|
+
}
|
|
5938
|
+
/**
|
|
5939
|
+
* Deeply copy the indexed values in the array.
|
|
5940
|
+
*/
|
|
5941
|
+
function copyArrayLoose(array, state) {
|
|
5942
|
+
var clone = new state.Constructor();
|
|
5943
|
+
// set in the cache immediately to be able to reuse the object recursively
|
|
5944
|
+
state.cache.set(array, clone);
|
|
5945
|
+
for (var index = 0, length_2 = array.length; index < length_2; ++index) {
|
|
5946
|
+
clone[index] = state.copier(array[index], state);
|
|
5947
|
+
}
|
|
5948
|
+
return clone;
|
|
5949
|
+
}
|
|
5950
|
+
/**
|
|
5951
|
+
* Deeply copy the indexed values in the array, as well as any custom properties.
|
|
5952
|
+
*/
|
|
5953
|
+
function copyArrayStrict(array, state) {
|
|
5954
|
+
var clone = new state.Constructor();
|
|
5955
|
+
// set in the cache immediately to be able to reuse the object recursively
|
|
5956
|
+
state.cache.set(array, clone);
|
|
5957
|
+
return copyOwnPropertiesStrict(array, clone, state);
|
|
5958
|
+
}
|
|
5959
|
+
/**
|
|
5960
|
+
* Copy the contents of the ArrayBuffer.
|
|
5961
|
+
*/
|
|
5962
|
+
function copyArrayBuffer(arrayBuffer, _state) {
|
|
5963
|
+
return arrayBuffer.slice(0);
|
|
5964
|
+
}
|
|
5965
|
+
/**
|
|
5966
|
+
* Create a new Blob with the contents of the original.
|
|
5967
|
+
*/
|
|
5968
|
+
function copyBlob(blob, _state) {
|
|
5969
|
+
return blob.slice(0, blob.size, blob.type);
|
|
5970
|
+
}
|
|
5971
|
+
/**
|
|
5972
|
+
* Create a new DataView with the contents of the original.
|
|
5973
|
+
*/
|
|
5974
|
+
function copyDataView(dataView, state) {
|
|
5975
|
+
return new state.Constructor(copyArrayBuffer(dataView.buffer));
|
|
5976
|
+
}
|
|
5977
|
+
/**
|
|
5978
|
+
* Create a new Date based on the time of the original.
|
|
5979
|
+
*/
|
|
5980
|
+
function copyDate(date, state) {
|
|
5981
|
+
return new state.Constructor(date.getTime());
|
|
5982
|
+
}
|
|
5983
|
+
/**
|
|
5984
|
+
* Deeply copy the keys and values of the original.
|
|
5985
|
+
*/
|
|
5986
|
+
function copyMapLoose(map, state) {
|
|
5987
|
+
var clone = new state.Constructor();
|
|
5988
|
+
// set in the cache immediately to be able to reuse the object recursively
|
|
5989
|
+
state.cache.set(map, clone);
|
|
5990
|
+
map.forEach(function (value, key) {
|
|
5991
|
+
clone.set(key, state.copier(value, state));
|
|
5992
|
+
});
|
|
5993
|
+
return clone;
|
|
5994
|
+
}
|
|
5995
|
+
/**
|
|
5996
|
+
* Deeply copy the keys and values of the original, as well as any custom properties.
|
|
5997
|
+
*/
|
|
5998
|
+
function copyMapStrict(map, state) {
|
|
5999
|
+
return copyOwnPropertiesStrict(map, copyMapLoose(map, state), state);
|
|
6000
|
+
}
|
|
6001
|
+
function copyObjectLooseLegacy(object, state) {
|
|
6002
|
+
var clone = getCleanClone(state.prototype);
|
|
6003
|
+
// set in the cache immediately to be able to reuse the object recursively
|
|
6004
|
+
state.cache.set(object, clone);
|
|
6005
|
+
for (var key in object) {
|
|
6006
|
+
if (hasOwnProperty.call(object, key)) {
|
|
6007
|
+
clone[key] = state.copier(object[key], state);
|
|
6008
|
+
}
|
|
6009
|
+
}
|
|
6010
|
+
return clone;
|
|
6011
|
+
}
|
|
6012
|
+
function copyObjectLooseModern(object, state) {
|
|
6013
|
+
var clone = getCleanClone(state.prototype);
|
|
6014
|
+
// set in the cache immediately to be able to reuse the object recursively
|
|
6015
|
+
state.cache.set(object, clone);
|
|
6016
|
+
for (var key in object) {
|
|
6017
|
+
if (hasOwnProperty.call(object, key)) {
|
|
6018
|
+
clone[key] = state.copier(object[key], state);
|
|
6019
|
+
}
|
|
6020
|
+
}
|
|
6021
|
+
var symbols = getOwnPropertySymbols(object);
|
|
6022
|
+
for (var index = 0, length_3 = symbols.length, symbol = void 0; index < length_3; ++index) {
|
|
6023
|
+
symbol = symbols[index];
|
|
6024
|
+
if (propertyIsEnumerable.call(object, symbol)) {
|
|
6025
|
+
clone[symbol] = state.copier(object[symbol], state);
|
|
6026
|
+
}
|
|
6027
|
+
}
|
|
6028
|
+
return clone;
|
|
6029
|
+
}
|
|
6030
|
+
/**
|
|
6031
|
+
* Deeply copy the properties (keys and symbols) and values of the original.
|
|
6032
|
+
*/
|
|
6033
|
+
var copyObjectLoose = SUPPORTS_SYMBOL
|
|
6034
|
+
? copyObjectLooseModern
|
|
6035
|
+
: copyObjectLooseLegacy;
|
|
6036
|
+
/**
|
|
6037
|
+
* Deeply copy the properties (keys and symbols) and values of the original, as well
|
|
6038
|
+
* as any hidden or non-enumerable properties.
|
|
6039
|
+
*/
|
|
6040
|
+
function copyObjectStrict(object, state) {
|
|
6041
|
+
var clone = getCleanClone(state.prototype);
|
|
6042
|
+
// set in the cache immediately to be able to reuse the object recursively
|
|
6043
|
+
state.cache.set(object, clone);
|
|
6044
|
+
return copyOwnPropertiesStrict(object, clone, state);
|
|
6045
|
+
}
|
|
6046
|
+
/**
|
|
6047
|
+
* Create a new primitive wrapper from the value of the original.
|
|
6048
|
+
*/
|
|
6049
|
+
function copyPrimitiveWrapper(primitiveObject, state) {
|
|
6050
|
+
return new state.Constructor(primitiveObject.valueOf());
|
|
6051
|
+
}
|
|
6052
|
+
/**
|
|
6053
|
+
* Create a new RegExp based on the value and flags of the original.
|
|
6054
|
+
*/
|
|
6055
|
+
function copyRegExp(regExp, state) {
|
|
6056
|
+
var clone = new state.Constructor(regExp.source, getRegExpFlags(regExp));
|
|
6057
|
+
clone.lastIndex = regExp.lastIndex;
|
|
6058
|
+
return clone;
|
|
6059
|
+
}
|
|
6060
|
+
/**
|
|
6061
|
+
* Return the original value (an identity function).
|
|
6062
|
+
*
|
|
6063
|
+
* @note
|
|
6064
|
+
* THis is used for objects that cannot be copied, such as WeakMap.
|
|
6065
|
+
*/
|
|
6066
|
+
function copySelf(value, _state) {
|
|
6067
|
+
return value;
|
|
6068
|
+
}
|
|
6069
|
+
/**
|
|
6070
|
+
* Deeply copy the values of the original.
|
|
6071
|
+
*/
|
|
6072
|
+
function copySetLoose(set, state) {
|
|
6073
|
+
var clone = new state.Constructor();
|
|
6074
|
+
// set in the cache immediately to be able to reuse the object recursively
|
|
6075
|
+
state.cache.set(set, clone);
|
|
6076
|
+
set.forEach(function (value) {
|
|
6077
|
+
clone.add(state.copier(value, state));
|
|
6078
|
+
});
|
|
6079
|
+
return clone;
|
|
6080
|
+
}
|
|
6081
|
+
/**
|
|
6082
|
+
* Deeply copy the values of the original, as well as any custom properties.
|
|
6083
|
+
*/
|
|
6084
|
+
function copySetStrict(set, state) {
|
|
6085
|
+
return copyOwnPropertiesStrict(set, copySetLoose(set, state), state);
|
|
6086
|
+
}
|
|
6087
|
+
|
|
6088
|
+
var isArray = Array.isArray;
|
|
6089
|
+
var assign = Object.assign, getPrototypeOf = Object.getPrototypeOf;
|
|
6090
|
+
var DEFAULT_LOOSE_OPTIONS = {
|
|
6091
|
+
array: copyArrayLoose,
|
|
6092
|
+
arrayBuffer: copyArrayBuffer,
|
|
6093
|
+
blob: copyBlob,
|
|
6094
|
+
dataView: copyDataView,
|
|
6095
|
+
date: copyDate,
|
|
6096
|
+
error: copySelf,
|
|
6097
|
+
map: copyMapLoose,
|
|
6098
|
+
object: copyObjectLoose,
|
|
6099
|
+
regExp: copyRegExp,
|
|
6100
|
+
set: copySetLoose,
|
|
6101
|
+
};
|
|
6102
|
+
var DEFAULT_STRICT_OPTIONS = assign({}, DEFAULT_LOOSE_OPTIONS, {
|
|
6103
|
+
array: copyArrayStrict,
|
|
6104
|
+
map: copyMapStrict,
|
|
6105
|
+
object: copyObjectStrict,
|
|
6106
|
+
set: copySetStrict,
|
|
6107
|
+
});
|
|
6108
|
+
/**
|
|
6109
|
+
* Get the copiers used for each specific object tag.
|
|
6110
|
+
*/
|
|
6111
|
+
function getTagSpecificCopiers(options) {
|
|
6112
|
+
return {
|
|
6113
|
+
Arguments: options.object,
|
|
6114
|
+
Array: options.array,
|
|
6115
|
+
ArrayBuffer: options.arrayBuffer,
|
|
6116
|
+
Blob: options.blob,
|
|
6117
|
+
Boolean: copyPrimitiveWrapper,
|
|
6118
|
+
DataView: options.dataView,
|
|
6119
|
+
Date: options.date,
|
|
6120
|
+
Error: options.error,
|
|
6121
|
+
Float32Array: options.arrayBuffer,
|
|
6122
|
+
Float64Array: options.arrayBuffer,
|
|
6123
|
+
Int8Array: options.arrayBuffer,
|
|
6124
|
+
Int16Array: options.arrayBuffer,
|
|
6125
|
+
Int32Array: options.arrayBuffer,
|
|
6126
|
+
Map: options.map,
|
|
6127
|
+
Number: copyPrimitiveWrapper,
|
|
6128
|
+
Object: options.object,
|
|
6129
|
+
Promise: copySelf,
|
|
6130
|
+
RegExp: options.regExp,
|
|
6131
|
+
Set: options.set,
|
|
6132
|
+
String: copyPrimitiveWrapper,
|
|
6133
|
+
WeakMap: copySelf,
|
|
6134
|
+
WeakSet: copySelf,
|
|
6135
|
+
Uint8Array: options.arrayBuffer,
|
|
6136
|
+
Uint8ClampedArray: options.arrayBuffer,
|
|
6137
|
+
Uint16Array: options.arrayBuffer,
|
|
6138
|
+
Uint32Array: options.arrayBuffer,
|
|
6139
|
+
Uint64Array: options.arrayBuffer,
|
|
6140
|
+
};
|
|
6141
|
+
}
|
|
6142
|
+
/**
|
|
6143
|
+
* Create a custom copier based on the object-specific copy methods passed.
|
|
6144
|
+
*/
|
|
6145
|
+
function createCopier(options) {
|
|
6146
|
+
var normalizedOptions = assign({}, DEFAULT_LOOSE_OPTIONS, options);
|
|
6147
|
+
var tagSpecificCopiers = getTagSpecificCopiers(normalizedOptions);
|
|
6148
|
+
var array = tagSpecificCopiers.Array, object = tagSpecificCopiers.Object;
|
|
6149
|
+
function copier(value, state) {
|
|
6150
|
+
state.prototype = state.Constructor = undefined;
|
|
6151
|
+
if (!value || typeof value !== 'object') {
|
|
6152
|
+
return value;
|
|
6153
|
+
}
|
|
6154
|
+
if (state.cache.has(value)) {
|
|
6155
|
+
return state.cache.get(value);
|
|
6156
|
+
}
|
|
6157
|
+
state.prototype = value.__proto__ || getPrototypeOf(value);
|
|
6158
|
+
state.Constructor = state.prototype && state.prototype.constructor;
|
|
6159
|
+
// plain objects
|
|
6160
|
+
if (!state.Constructor || state.Constructor === Object) {
|
|
6161
|
+
return object(value, state);
|
|
6162
|
+
}
|
|
6163
|
+
// arrays
|
|
6164
|
+
if (isArray(value)) {
|
|
6165
|
+
return array(value, state);
|
|
6166
|
+
}
|
|
6167
|
+
var tagSpecificCopier = tagSpecificCopiers[getTag(value)];
|
|
6168
|
+
if (tagSpecificCopier) {
|
|
6169
|
+
return tagSpecificCopier(value, state);
|
|
6170
|
+
}
|
|
6171
|
+
return typeof value.then === 'function' ? value : object(value, state);
|
|
6172
|
+
}
|
|
6173
|
+
return function copy(value) {
|
|
6174
|
+
return copier(value, {
|
|
6175
|
+
Constructor: undefined,
|
|
6176
|
+
cache: createCache(),
|
|
6177
|
+
copier: copier,
|
|
6178
|
+
prototype: undefined,
|
|
6179
|
+
});
|
|
6180
|
+
};
|
|
6181
|
+
}
|
|
6182
|
+
/**
|
|
6183
|
+
* Create a custom copier based on the object-specific copy methods passed, defaulting to the
|
|
6184
|
+
* same internals as `copyStrict`.
|
|
6185
|
+
*/
|
|
6186
|
+
function createStrictCopier(options) {
|
|
6187
|
+
return createCopier(assign({}, DEFAULT_STRICT_OPTIONS, options));
|
|
6188
|
+
}
|
|
6189
|
+
/**
|
|
6190
|
+
* Copy an value deeply as much as possible, where strict recreation of object properties
|
|
6191
|
+
* are maintained. All properties (including non-enumerable ones) are copied with their
|
|
6192
|
+
* original property descriptors on both objects and arrays.
|
|
6193
|
+
*/
|
|
6194
|
+
var copyStrict = createStrictCopier({});
|
|
6195
|
+
/**
|
|
6196
|
+
* Copy an value deeply as much as possible.
|
|
6197
|
+
*/
|
|
6198
|
+
var index = createCopier({});
|
|
6199
|
+
|
|
6200
|
+
|
|
6201
|
+
//# sourceMappingURL=index.mjs.map
|
|
6202
|
+
|
|
6203
|
+
|
|
5785
6204
|
/***/ }),
|
|
5786
6205
|
|
|
5787
6206
|
/***/ "../node_modules/debug/src/browser.js":
|
|
@@ -10517,7 +10936,7 @@ function createClient(params) {
|
|
|
10517
10936
|
environment: 'master'
|
|
10518
10937
|
};
|
|
10519
10938
|
const config = _objectSpread(_objectSpread({}, defaultConfig), params);
|
|
10520
|
-
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.2.
|
|
10939
|
+
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.2.7"}`, config.application, config.integration);
|
|
10521
10940
|
config.headers = _objectSpread(_objectSpread({}, config.headers), {}, {
|
|
10522
10941
|
'Content-Type': 'application/vnd.contentful.delivery.v1+json',
|
|
10523
10942
|
'X-Contentful-User-Agent': userAgentHeader
|