contentful 11.10.4 → 11.10.6
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.
|
@@ -7269,6 +7269,8 @@ var contentful = (function (exports) {
|
|
|
7269
7269
|
var newIndex = getMaxIndex(target) + 1;
|
|
7270
7270
|
target[newIndex] = source;
|
|
7271
7271
|
setMaxIndex(target, newIndex);
|
|
7272
|
+
} else if (options && options.strictMerge) {
|
|
7273
|
+
return [target, source];
|
|
7272
7274
|
} else if (options && (options.plainObjects || options.allowPrototypes) || !has$2.call(Object.prototype, source)) {
|
|
7273
7275
|
target[source] = true;
|
|
7274
7276
|
}
|
|
@@ -7760,6 +7762,7 @@ var contentful = (function (exports) {
|
|
|
7760
7762
|
parseArrays: true,
|
|
7761
7763
|
plainObjects: false,
|
|
7762
7764
|
strictDepth: false,
|
|
7765
|
+
strictMerge: true,
|
|
7763
7766
|
strictNullHandling: false,
|
|
7764
7767
|
throwOnLimitExceeded: false
|
|
7765
7768
|
};
|
|
@@ -7849,7 +7852,7 @@ var contentful = (function (exports) {
|
|
|
7849
7852
|
}
|
|
7850
7853
|
if (key !== null) {
|
|
7851
7854
|
var existing = has.call(obj, key);
|
|
7852
|
-
if (existing && options.duplicates === 'combine') {
|
|
7855
|
+
if (existing && (options.duplicates === 'combine' || part.indexOf('[]=') > -1)) {
|
|
7853
7856
|
obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
|
|
7854
7857
|
} else if (!existing || options.duplicates === 'last') {
|
|
7855
7858
|
obj[key] = val;
|
|
@@ -8001,6 +8004,7 @@ var contentful = (function (exports) {
|
|
|
8001
8004
|
parseArrays: opts.parseArrays !== false,
|
|
8002
8005
|
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
8003
8006
|
strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,
|
|
8007
|
+
strictMerge: typeof opts.strictMerge === 'boolean' ? !!opts.strictMerge : defaults.strictMerge,
|
|
8004
8008
|
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
8005
8009
|
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false
|
|
8006
8010
|
};
|
|
@@ -9132,9 +9136,9 @@ var contentful = (function (exports) {
|
|
|
9132
9136
|
|
|
9133
9137
|
var stringify = {exports: {}};
|
|
9134
9138
|
|
|
9135
|
-
(function (module, exports) {
|
|
9136
|
-
exports = module.exports = stringify;
|
|
9137
|
-
exports.getSerialize = serializer;
|
|
9139
|
+
(function (module, exports$1) {
|
|
9140
|
+
exports$1 = module.exports = stringify;
|
|
9141
|
+
exports$1.getSerialize = serializer;
|
|
9138
9142
|
function stringify(obj, replacer, spaces, cycleReplacer) {
|
|
9139
9143
|
return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces);
|
|
9140
9144
|
}
|