contentful 9.1.10 → 9.1.11
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 +3 -2
- package/dist/contentful.browser.js.map +1 -1
- package/dist/contentful.browser.min.js +1 -1
- package/dist/contentful.node.js +3 -2
- package/dist/contentful.node.js.map +1 -1
- package/dist/contentful.node.min.js +1 -1
- package/dist/es-modules/contentful.js +1 -1
- package/package.json +1 -1
|
@@ -2450,6 +2450,7 @@ var walkMutate = function walkMutate(input, predicate, mutator, removeUnresolved
|
|
|
2450
2450
|
|
|
2451
2451
|
if (input && (typeof input === 'undefined' ? 'undefined' : _typeof(input)) === 'object') {
|
|
2452
2452
|
for (var key in input) {
|
|
2453
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
2453
2454
|
if (input.hasOwnProperty(key)) {
|
|
2454
2455
|
input[key] = walkMutate(input[key], predicate, mutator, removeUnresolved);
|
|
2455
2456
|
}
|
|
@@ -2488,7 +2489,7 @@ var makeEntryObject = function makeEntryObject(item, itemEntryPoints) {
|
|
|
2488
2489
|
* resolveResponse Function
|
|
2489
2490
|
* Resolves contentful response to normalized form.
|
|
2490
2491
|
* @param {Object} response Contentful response
|
|
2491
|
-
* @param {
|
|
2492
|
+
* @param {{removeUnresolved: Boolean, itemEntryPoints: Array<String>}|{}} options
|
|
2492
2493
|
* @param {Boolean} options.removeUnresolved - Remove unresolved links default:false
|
|
2493
2494
|
* @param {Array<String>} options.itemEntryPoints - Resolve links only in those item properties
|
|
2494
2495
|
* @return {Object}
|
|
@@ -6518,7 +6519,7 @@ function createClient(params) {
|
|
|
6518
6519
|
|
|
6519
6520
|
const config = _objectSpread(_objectSpread({}, defaultConfig), params);
|
|
6520
6521
|
|
|
6521
|
-
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.1.
|
|
6522
|
+
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.1.11"}`, config.application, config.integration);
|
|
6522
6523
|
config.headers = _objectSpread(_objectSpread({}, config.headers), {}, {
|
|
6523
6524
|
'Content-Type': 'application/vnd.contentful.delivery.v1+json',
|
|
6524
6525
|
'X-Contentful-User-Agent': userAgentHeader
|