contentful 9.3.0 → 9.3.2
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 +14 -45
- package/dist/contentful.browser.js.map +1 -1
- package/dist/contentful.browser.min.js +3 -4
- package/dist/contentful.node.js +8 -6
- 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 +7 -2
package/dist/contentful.node.js
CHANGED
|
@@ -4762,11 +4762,13 @@ function _toPropertyKey(arg) {
|
|
|
4762
4762
|
|
|
4763
4763
|
function isNode() {
|
|
4764
4764
|
/**
|
|
4765
|
-
*
|
|
4766
|
-
*
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4765
|
+
* Polyfills of 'process' might set process.browser === true
|
|
4766
|
+
*
|
|
4767
|
+
* See:
|
|
4768
|
+
* https://github.com/webpack/node-libs-browser/blob/master/mock/process.js#L8
|
|
4769
|
+
* https://github.com/defunctzombie/node-process/blob/master/browser.js#L156
|
|
4770
|
+
**/
|
|
4771
|
+
return typeof process !== 'undefined' && !process.browser;
|
|
4770
4772
|
}
|
|
4771
4773
|
function isReactNative() {
|
|
4772
4774
|
return typeof window !== 'undefined' && 'navigator' in window && 'product' in window.navigator && window.navigator.product === 'ReactNative';
|
|
@@ -10077,7 +10079,7 @@ function createClient(params) {
|
|
|
10077
10079
|
environment: 'master'
|
|
10078
10080
|
};
|
|
10079
10081
|
const config = _objectSpread(_objectSpread({}, defaultConfig), params);
|
|
10080
|
-
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.3.
|
|
10082
|
+
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.3.2"}`, config.application, config.integration);
|
|
10081
10083
|
config.headers = _objectSpread(_objectSpread({}, config.headers), {}, {
|
|
10082
10084
|
'Content-Type': 'application/vnd.contentful.delivery.v1+json',
|
|
10083
10085
|
'X-Contentful-User-Agent': userAgentHeader
|