contentful 9.2.18 → 9.2.19
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 +2 -2
- package/dist/contentful.browser.js.map +1 -1
- package/dist/contentful.browser.min.js +1 -1
- package/dist/contentful.node.js +2 -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/dist/es-modules/utils/normalize-select.js +1 -1
- package/index.d.ts +49 -39
- package/package.json +3 -2
|
@@ -8903,7 +8903,7 @@ function createClient(params) {
|
|
|
8903
8903
|
environment: 'master'
|
|
8904
8904
|
};
|
|
8905
8905
|
const config = _objectSpread(_objectSpread({}, defaultConfig), params);
|
|
8906
|
-
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.2.
|
|
8906
|
+
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.2.19"}`, config.application, config.integration);
|
|
8907
8907
|
config.headers = _objectSpread(_objectSpread({}, config.headers), {}, {
|
|
8908
8908
|
'Content-Type': 'application/vnd.contentful.delivery.v1+json',
|
|
8909
8909
|
'X-Contentful-User-Agent': userAgentHeader
|
|
@@ -10288,7 +10288,7 @@ function normalizeSelect(query) {
|
|
|
10288
10288
|
|
|
10289
10289
|
// The selection of fields for the query is limited
|
|
10290
10290
|
// Get the different parts that are listed for selection
|
|
10291
|
-
const allSelects = Array.isArray(query.select) ? query.select : query.select.split(',');
|
|
10291
|
+
const allSelects = Array.isArray(query.select) ? query.select : query.select.split(',').map(q => q.trim());
|
|
10292
10292
|
// Move the parts into a set for easy access and deduplication
|
|
10293
10293
|
const selectedSet = new Set(allSelects);
|
|
10294
10294
|
|