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.
@@ -4762,11 +4762,13 @@ function _toPropertyKey(arg) {
4762
4762
 
4763
4763
  function isNode() {
4764
4764
  /**
4765
- * Save way to check for the global scope which should confirm if an environment is node
4766
- * For reference: https://stackoverflow.com/a/31090240
4767
- */
4768
- var isNodeFunc = new Function('try {return this===global;}catch(e){return false;}');
4769
- return isNodeFunc();
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.0"}`, config.application, config.integration);
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