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.
@@ -3268,11 +3268,13 @@ function _toPropertyKey(arg) {
3268
3268
 
3269
3269
  function isNode() {
3270
3270
  /**
3271
- * Save way to check for the global scope which should confirm if an environment is node
3272
- * For reference: https://stackoverflow.com/a/31090240
3273
- */
3274
- var isNodeFunc = new Function('try {return this===global;}catch(e){return false;}');
3275
- return isNodeFunc();
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.2.20"}`, config.application, config.integration);
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