contentful-management 11.40.2 → 11.40.4
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-management.browser.js +16 -25
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +16 -25
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/typings/plain/entities/app-installation.d.ts +2 -2
- package/package.json +2 -2
|
@@ -20217,8 +20217,7 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
20217
20217
|
var bracketEqualsPos = part.indexOf(']=');
|
|
20218
20218
|
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
20219
20219
|
|
|
20220
|
-
var key;
|
|
20221
|
-
var val;
|
|
20220
|
+
var key, val;
|
|
20222
20221
|
if (pos === -1) {
|
|
20223
20222
|
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
20224
20223
|
val = options.strictNullHandling ? null : '';
|
|
@@ -20233,7 +20232,7 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
20233
20232
|
}
|
|
20234
20233
|
|
|
20235
20234
|
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
20236
|
-
val = interpretNumericEntities(
|
|
20235
|
+
val = interpretNumericEntities(val);
|
|
20237
20236
|
}
|
|
20238
20237
|
|
|
20239
20238
|
if (part.indexOf('[]=') > -1) {
|
|
@@ -20263,7 +20262,7 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
20263
20262
|
? []
|
|
20264
20263
|
: [].concat(leaf);
|
|
20265
20264
|
} else {
|
|
20266
|
-
obj = options.plainObjects ?
|
|
20265
|
+
obj = options.plainObjects ? Object.create(null) : {};
|
|
20267
20266
|
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
20268
20267
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
|
|
20269
20268
|
var index = parseInt(decodedRoot, 10);
|
|
@@ -20405,11 +20404,11 @@ module.exports = function (str, opts) {
|
|
|
20405
20404
|
var options = normalizeParseOptions(opts);
|
|
20406
20405
|
|
|
20407
20406
|
if (str === '' || str === null || typeof str === 'undefined') {
|
|
20408
|
-
return options.plainObjects ?
|
|
20407
|
+
return options.plainObjects ? Object.create(null) : {};
|
|
20409
20408
|
}
|
|
20410
20409
|
|
|
20411
20410
|
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
20412
|
-
var obj = options.plainObjects ?
|
|
20411
|
+
var obj = options.plainObjects ? Object.create(null) : {};
|
|
20413
20412
|
|
|
20414
20413
|
// Iterate over the keys and setup the new object
|
|
20415
20414
|
|
|
@@ -20473,13 +20472,11 @@ var defaults = {
|
|
|
20473
20472
|
arrayFormat: 'indices',
|
|
20474
20473
|
charset: 'utf-8',
|
|
20475
20474
|
charsetSentinel: false,
|
|
20476
|
-
commaRoundTrip: false,
|
|
20477
20475
|
delimiter: '&',
|
|
20478
20476
|
encode: true,
|
|
20479
20477
|
encodeDotInKeys: false,
|
|
20480
20478
|
encoder: utils.encode,
|
|
20481
20479
|
encodeValuesOnly: false,
|
|
20482
|
-
filter: void undefined,
|
|
20483
20480
|
format: defaultFormat,
|
|
20484
20481
|
formatter: formats.formatters[defaultFormat],
|
|
20485
20482
|
// deprecated
|
|
@@ -20591,7 +20588,7 @@ var stringify = function stringify(
|
|
|
20591
20588
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
20592
20589
|
}
|
|
20593
20590
|
|
|
20594
|
-
var encodedPrefix = encodeDotInKeys ?
|
|
20591
|
+
var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
|
|
20595
20592
|
|
|
20596
20593
|
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
|
|
20597
20594
|
|
|
@@ -20601,15 +20598,13 @@ var stringify = function stringify(
|
|
|
20601
20598
|
|
|
20602
20599
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
20603
20600
|
var key = objKeys[j];
|
|
20604
|
-
var value = typeof key === 'object' &&
|
|
20605
|
-
? key.value
|
|
20606
|
-
: obj[key];
|
|
20601
|
+
var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
|
|
20607
20602
|
|
|
20608
20603
|
if (skipNulls && value === null) {
|
|
20609
20604
|
continue;
|
|
20610
20605
|
}
|
|
20611
20606
|
|
|
20612
|
-
var encodedKey = allowDots && encodeDotInKeys ?
|
|
20607
|
+
var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
|
|
20613
20608
|
var keyPrefix = isArray(obj)
|
|
20614
20609
|
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix
|
|
20615
20610
|
: adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
|
|
@@ -20700,7 +20695,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
20700
20695
|
arrayFormat: arrayFormat,
|
|
20701
20696
|
charset: charset,
|
|
20702
20697
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
20703
|
-
commaRoundTrip:
|
|
20698
|
+
commaRoundTrip: opts.commaRoundTrip,
|
|
20704
20699
|
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
20705
20700
|
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
20706
20701
|
encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
@@ -20751,13 +20746,12 @@ module.exports = function (object, opts) {
|
|
|
20751
20746
|
var sideChannel = getSideChannel();
|
|
20752
20747
|
for (var i = 0; i < objKeys.length; ++i) {
|
|
20753
20748
|
var key = objKeys[i];
|
|
20754
|
-
var value = obj[key];
|
|
20755
20749
|
|
|
20756
|
-
if (options.skipNulls &&
|
|
20750
|
+
if (options.skipNulls && obj[key] === null) {
|
|
20757
20751
|
continue;
|
|
20758
20752
|
}
|
|
20759
20753
|
pushToArray(keys, stringify(
|
|
20760
|
-
|
|
20754
|
+
obj[key],
|
|
20761
20755
|
key,
|
|
20762
20756
|
generateArrayPrefix,
|
|
20763
20757
|
commaRoundTrip,
|
|
@@ -20840,7 +20834,7 @@ var compactQueue = function compactQueue(queue) {
|
|
|
20840
20834
|
};
|
|
20841
20835
|
|
|
20842
20836
|
var arrayToObject = function arrayToObject(source, options) {
|
|
20843
|
-
var obj = options && options.plainObjects ?
|
|
20837
|
+
var obj = options && options.plainObjects ? Object.create(null) : {};
|
|
20844
20838
|
for (var i = 0; i < source.length; ++i) {
|
|
20845
20839
|
if (typeof source[i] !== 'undefined') {
|
|
20846
20840
|
obj[i] = source[i];
|
|
@@ -20856,14 +20850,11 @@ var merge = function merge(target, source, options) {
|
|
|
20856
20850
|
return target;
|
|
20857
20851
|
}
|
|
20858
20852
|
|
|
20859
|
-
if (typeof source !== 'object'
|
|
20853
|
+
if (typeof source !== 'object') {
|
|
20860
20854
|
if (isArray(target)) {
|
|
20861
20855
|
target.push(source);
|
|
20862
20856
|
} else if (target && typeof target === 'object') {
|
|
20863
|
-
if (
|
|
20864
|
-
(options && (options.plainObjects || options.allowPrototypes))
|
|
20865
|
-
|| !has.call(Object.prototype, source)
|
|
20866
|
-
) {
|
|
20857
|
+
if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
|
|
20867
20858
|
target[source] = true;
|
|
20868
20859
|
}
|
|
20869
20860
|
} else {
|
|
@@ -20917,7 +20908,7 @@ var assign = function assignSingleSource(target, source) {
|
|
|
20917
20908
|
}, target);
|
|
20918
20909
|
};
|
|
20919
20910
|
|
|
20920
|
-
var decode = function (str,
|
|
20911
|
+
var decode = function (str, decoder, charset) {
|
|
20921
20912
|
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
20922
20913
|
if (charset === 'iso-8859-1') {
|
|
20923
20914
|
// unescape never throws, no try...catch needed:
|
|
@@ -27358,7 +27349,7 @@ function createClient(params) {
|
|
|
27358
27349
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
27359
27350
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
27360
27351
|
var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(// @ts-expect-error
|
|
27361
|
-
"".concat(sdkMain, "/").concat("11.40.
|
|
27352
|
+
"".concat(sdkMain, "/").concat("11.40.4"), params.application, params.integration, params.feature);
|
|
27362
27353
|
var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
27363
27354
|
userAgent: userAgent
|
|
27364
27355
|
}));
|