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.
@@ -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';
@@ -3799,7 +3801,7 @@ function errorHandler(errorResponse) {
3799
3801
  /*! no static exports found */
3800
3802
  /***/ (function(module, exports, __webpack_require__) {
3801
3803
 
3802
- /* WEBPACK VAR INJECTION */(function(global) {(function (global, factory) {
3804
+ (function (global, factory) {
3803
3805
  true ? module.exports = factory() :
3804
3806
  undefined;
3805
3807
  })(this, (function () { 'use strict';
@@ -3986,8 +3988,8 @@ function errorHandler(errorResponse) {
3986
3988
  if (typeof window !== 'undefined') {
3987
3989
  return window;
3988
3990
  }
3989
- if (typeof global !== 'undefined') {
3990
- return global;
3991
+ if (typeof window !== 'undefined') {
3992
+ return window;
3991
3993
  }
3992
3994
  if (console && console.error) {
3993
3995
  console.error('Unable to locate global object, returning "this".');
@@ -4154,7 +4156,6 @@ function errorHandler(errorResponse) {
4154
4156
  }));
4155
4157
  //# sourceMappingURL=fast-copy.js.map
4156
4158
 
4157
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../node_modules/webpack/buildin/global.js")))
4158
4159
 
4159
4160
  /***/ }),
4160
4161
 
@@ -5095,7 +5096,7 @@ module.exports = isString;
5095
5096
  /***/ (function(module, exports, __webpack_require__) {
5096
5097
 
5097
5098
  "use strict";
5098
- /* WEBPACK VAR INJECTION */(function(global) {/*!
5099
+ /*!
5099
5100
  * The buffer module from node.js, for the browser.
5100
5101
  *
5101
5102
  * @author Feross Aboukhadijeh <http://feross.org>
@@ -5137,8 +5138,8 @@ exports.INSPECT_MAX_BYTES = 50
5137
5138
  * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
5138
5139
  * get the Object implementation, which is slower but behaves correctly.
5139
5140
  */
5140
- Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
5141
- ? global.TYPED_ARRAY_SUPPORT
5141
+ Buffer.TYPED_ARRAY_SUPPORT = window.TYPED_ARRAY_SUPPORT !== undefined
5142
+ ? window.TYPED_ARRAY_SUPPORT
5142
5143
  : typedArraySupport()
5143
5144
 
5144
5145
  /*
@@ -6885,7 +6886,6 @@ function isnan (val) {
6885
6886
  return val !== val // eslint-disable-line no-self-compare
6886
6887
  }
6887
6888
 
6888
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "../node_modules/webpack/buildin/global.js")))
6889
6889
 
6890
6890
  /***/ }),
6891
6891
 
@@ -8790,37 +8790,6 @@ module.exports = function getSideChannel() {
8790
8790
  };
8791
8791
 
8792
8792
 
8793
- /***/ }),
8794
-
8795
- /***/ "../node_modules/webpack/buildin/global.js":
8796
- /*!*************************************************!*\
8797
- !*** ../node_modules/webpack/buildin/global.js ***!
8798
- \*************************************************/
8799
- /*! no static exports found */
8800
- /***/ (function(module, exports) {
8801
-
8802
- var g;
8803
-
8804
- // This works in non-strict mode
8805
- g = (function() {
8806
- return this;
8807
- })();
8808
-
8809
- try {
8810
- // This works if eval is allowed (see CSP)
8811
- g = g || new Function("return this")();
8812
- } catch (e) {
8813
- // This works if the window reference is available
8814
- if (typeof window === "object") g = window;
8815
- }
8816
-
8817
- // g can still be undefined, but nothing to do about it...
8818
- // We return undefined, instead of nothing here, so it's
8819
- // easier to handle this case. if(!global) { ...}
8820
-
8821
- module.exports = g;
8822
-
8823
-
8824
8793
  /***/ }),
8825
8794
 
8826
8795
  /***/ "./contentful.js":
@@ -8903,7 +8872,7 @@ function createClient(params) {
8903
8872
  environment: 'master'
8904
8873
  };
8905
8874
  const config = _objectSpread(_objectSpread({}, defaultConfig), params);
8906
- const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.3.0"}`, config.application, config.integration);
8875
+ const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.3.2"}`, config.application, config.integration);
8907
8876
  config.headers = _objectSpread(_objectSpread({}, config.headers), {}, {
8908
8877
  'Content-Type': 'application/vnd.contentful.delivery.v1+json',
8909
8878
  'X-Contentful-User-Agent': userAgentHeader