contentful 9.2.20 → 9.3.1
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 +8 -6
- package/dist/contentful.browser.js.map +1 -1
- package/dist/contentful.browser.min.js +2 -2
- 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/index.d.ts +9 -1
- package/package.json +6 -1
|
@@ -3268,11 +3268,13 @@ function _toPropertyKey(arg) {
|
|
|
3268
3268
|
|
|
3269
3269
|
function isNode() {
|
|
3270
3270
|
/**
|
|
3271
|
-
*
|
|
3272
|
-
*
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3271
|
+
* Polyfills of 'process' might set process.browser === true
|
|
3272
|
+
*
|
|
3273
|
+
* See:
|
|
3274
|
+
* https://github.com/webpack/node-libs-browser/blob/master/mock/process.js#L8
|
|
3275
|
+
* https://github.com/defunctzombie/node-process/blob/master/browser.js#L156
|
|
3276
|
+
**/
|
|
3277
|
+
return typeof process !== 'undefined' && !process.browser;
|
|
3276
3278
|
}
|
|
3277
3279
|
function isReactNative() {
|
|
3278
3280
|
return typeof window !== 'undefined' && 'navigator' in window && 'product' in window.navigator && window.navigator.product === 'ReactNative';
|
|
@@ -8903,7 +8905,7 @@ function createClient(params) {
|
|
|
8903
8905
|
environment: 'master'
|
|
8904
8906
|
};
|
|
8905
8907
|
const config = _objectSpread(_objectSpread({}, defaultConfig), params);
|
|
8906
|
-
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.
|
|
8908
|
+
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.3.1"}`, config.application, config.integration);
|
|
8907
8909
|
config.headers = _objectSpread(_objectSpread({}, config.headers), {}, {
|
|
8908
8910
|
'Content-Type': 'application/vnd.contentful.delivery.v1+json',
|
|
8909
8911
|
'X-Contentful-User-Agent': userAgentHeader
|