contentful 11.7.15 → 11.7.17

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.
@@ -27,20 +27,20 @@ var contentful = (function (exports) {
27
27
  };
28
28
  }
29
29
 
30
- function _arrayWithHoles(r) {
31
- if (Array.isArray(r)) return r;
32
- }
33
-
34
- function _iterableToArray(r) {
35
- if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
36
- }
37
-
38
30
  function _arrayLikeToArray$4(r, a) {
39
31
  (null == a || a > r.length) && (a = r.length);
40
32
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
41
33
  return n;
42
34
  }
43
35
 
36
+ function _arrayWithoutHoles(r) {
37
+ if (Array.isArray(r)) return _arrayLikeToArray$4(r);
38
+ }
39
+
40
+ function _iterableToArray(r) {
41
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
42
+ }
43
+
44
44
  function _unsupportedIterableToArray$4(r, a) {
45
45
  if (r) {
46
46
  if ("string" == typeof r) return _arrayLikeToArray$4(r, a);
@@ -49,18 +49,6 @@ var contentful = (function (exports) {
49
49
  }
50
50
  }
51
51
 
52
- function _nonIterableRest() {
53
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
54
- }
55
-
56
- function _toArray(r) {
57
- return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$4(r) || _nonIterableRest();
58
- }
59
-
60
- function _arrayWithoutHoles(r) {
61
- if (Array.isArray(r)) return _arrayLikeToArray$4(r);
62
- }
63
-
64
52
  function _nonIterableSpread() {
65
53
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
66
54
  }
@@ -120,6 +108,10 @@ var contentful = (function (exports) {
120
108
  }), e;
121
109
  }
122
110
 
111
+ function _arrayWithHoles(r) {
112
+ if (Array.isArray(r)) return r;
113
+ }
114
+
123
115
  function _iterableToArrayLimit(r, l) {
124
116
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
125
117
  if (null != t) {
@@ -148,6 +140,10 @@ var contentful = (function (exports) {
148
140
  }
149
141
  }
150
142
 
143
+ function _nonIterableRest() {
144
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
145
+ }
146
+
151
147
  function _slicedToArray$1(r, e) {
152
148
  return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$4(r, e) || _nonIterableRest();
153
149
  }
@@ -676,7 +672,7 @@ var contentful = (function (exports) {
676
672
  * @returns {boolean} True if value is a Buffer, otherwise false
677
673
  */
678
674
  function isBuffer$1(val) {
679
- return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
675
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
680
676
  }
681
677
 
682
678
  /**
@@ -720,7 +716,7 @@ var contentful = (function (exports) {
720
716
  * @param {*} val The value to test
721
717
  * @returns {boolean} True if value is a Function, otherwise false
722
718
  */
723
- var isFunction = typeOfTest('function');
719
+ var isFunction$1 = typeOfTest('function');
724
720
 
725
721
  /**
726
722
  * Determine if a value is a Number
@@ -831,7 +827,7 @@ var contentful = (function (exports) {
831
827
  * @returns {boolean} True if value is a Stream, otherwise false
832
828
  */
833
829
  var isStream = function isStream(val) {
834
- return isObject(val) && isFunction(val.pipe);
830
+ return isObject(val) && isFunction$1(val.pipe);
835
831
  };
836
832
 
837
833
  /**
@@ -843,9 +839,9 @@ var contentful = (function (exports) {
843
839
  */
844
840
  var isFormData = function isFormData(thing) {
845
841
  var kind;
846
- return thing && (typeof FormData === 'function' && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === 'formdata' ||
842
+ return thing && (typeof FormData === 'function' && thing instanceof FormData || isFunction$1(thing.append) && ((kind = kindOf(thing)) === 'formdata' ||
847
843
  // detect form-data instance
848
- kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]'));
844
+ kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]'));
849
845
  };
850
846
 
851
847
  /**
@@ -972,7 +968,8 @@ var contentful = (function (exports) {
972
968
  function merge$1(/* obj1, obj2, obj3, ... */
973
969
  ) {
974
970
  var _ref4 = isContextDefined(this) && this || {},
975
- caseless = _ref4.caseless;
971
+ caseless = _ref4.caseless,
972
+ skipUndefined = _ref4.skipUndefined;
976
973
  var result = {};
977
974
  var assignValue = function assignValue(val, key) {
978
975
  var targetKey = caseless && findKey(result, key) || key;
@@ -983,7 +980,9 @@ var contentful = (function (exports) {
983
980
  } else if (isArray$7(val)) {
984
981
  result[targetKey] = val.slice();
985
982
  } else {
986
- result[targetKey] = val;
983
+ if (!skipUndefined || !isUndefined(val)) {
984
+ result[targetKey] = val;
985
+ }
987
986
  }
988
987
  };
989
988
  for (var i = 0, l = arguments.length; i < l; i++) {
@@ -1006,7 +1005,7 @@ var contentful = (function (exports) {
1006
1005
  var _ref5 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},
1007
1006
  allOwnKeys = _ref5.allOwnKeys;
1008
1007
  forEach(b, function (val, key) {
1009
- if (thisArg && isFunction(val)) {
1008
+ if (thisArg && isFunction$1(val)) {
1010
1009
  a[key] = bind$1(val, thisArg);
1011
1010
  } else {
1012
1011
  a[key] = val;
@@ -1214,11 +1213,11 @@ var contentful = (function (exports) {
1214
1213
  var freezeMethods = function freezeMethods(obj) {
1215
1214
  reduceDescriptors(obj, function (descriptor, name) {
1216
1215
  // skip restricted props in strict mode
1217
- if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
1216
+ if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
1218
1217
  return false;
1219
1218
  }
1220
1219
  var value = obj[name];
1221
- if (!isFunction(value)) return;
1220
+ if (!isFunction$1(value)) return;
1222
1221
  descriptor.enumerable = false;
1223
1222
  if ('writable' in descriptor) {
1224
1223
  descriptor.writable = false;
@@ -1254,7 +1253,7 @@ var contentful = (function (exports) {
1254
1253
  * @returns {boolean}
1255
1254
  */
1256
1255
  function isSpecCompliantForm(thing) {
1257
- return !!(thing && isFunction(thing.append) && thing[toStringTag$1] === 'FormData' && thing[iterator]);
1256
+ return !!(thing && isFunction$1(thing.append) && thing[toStringTag$1] === 'FormData' && thing[iterator]);
1258
1257
  }
1259
1258
  var toJSONObject = function toJSONObject(obj) {
1260
1259
  var stack = new Array(10);
@@ -1285,7 +1284,7 @@ var contentful = (function (exports) {
1285
1284
  };
1286
1285
  var isAsyncFn = kindOfTest('AsyncFunction');
1287
1286
  var isThenable = function isThenable(thing) {
1288
- return thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
1287
+ return thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
1289
1288
  };
1290
1289
 
1291
1290
  // original code
@@ -1310,13 +1309,13 @@ var contentful = (function (exports) {
1310
1309
  }("axios@".concat(Math.random()), []) : function (cb) {
1311
1310
  return setTimeout(cb);
1312
1311
  };
1313
- }(typeof setImmediate === 'function', isFunction(_global.postMessage));
1312
+ }(typeof setImmediate === 'function', isFunction$1(_global.postMessage));
1314
1313
  var asap = typeof queueMicrotask !== 'undefined' ? queueMicrotask.bind(_global) : typeof process !== 'undefined' && process.nextTick || _setImmediate;
1315
1314
 
1316
1315
  // *********************
1317
1316
 
1318
1317
  var isIterable = function isIterable(thing) {
1319
- return thing != null && isFunction(thing[iterator]);
1318
+ return thing != null && isFunction$1(thing[iterator]);
1320
1319
  };
1321
1320
  var utils$1$1 = {
1322
1321
  isArray: isArray$7,
@@ -1339,7 +1338,7 @@ var contentful = (function (exports) {
1339
1338
  isFile: isFile,
1340
1339
  isBlob: isBlob,
1341
1340
  isRegExp: isRegExp$2,
1342
- isFunction: isFunction,
1341
+ isFunction: isFunction$1,
1343
1342
  isStream: isStream,
1344
1343
  isURLSearchParams: isURLSearchParams,
1345
1344
  isTypedArray: isTypedArray,
@@ -1450,9 +1449,20 @@ var contentful = (function (exports) {
1450
1449
  }, function (prop) {
1451
1450
  return prop !== 'isAxiosError';
1452
1451
  });
1453
- AxiosError.call(axiosError, error.message, code, config, request, response);
1454
- axiosError.cause = error;
1455
- axiosError.name = error.name;
1452
+ var msg = error && error.message ? error.message : 'Error';
1453
+
1454
+ // Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
1455
+ var errCode = code == null && error ? error.code : code;
1456
+ AxiosError.call(axiosError, msg, errCode, config, request, response);
1457
+
1458
+ // Chain the original error on the standard field; non-enumerable to avoid JSON noise
1459
+ if (error && axiosError.cause == null) {
1460
+ Object.defineProperty(axiosError, 'cause', {
1461
+ value: error,
1462
+ configurable: true
1463
+ });
1464
+ }
1465
+ axiosError.name = error && error.name || 'Error';
1456
1466
  customProps && Object.assign(axiosError, customProps);
1457
1467
  return axiosError;
1458
1468
  };
@@ -1700,7 +1710,7 @@ var contentful = (function (exports) {
1700
1710
  * @returns {string} The encoded value.
1701
1711
  */
1702
1712
  function encode$2(val) {
1703
- return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
1713
+ return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+');
1704
1714
  }
1705
1715
 
1706
1716
  /**
@@ -2044,7 +2054,7 @@ var contentful = (function (exports) {
2044
2054
  var silentJSONParsing = transitional && transitional.silentJSONParsing;
2045
2055
  var strictJSONParsing = !silentJSONParsing && JSONRequested;
2046
2056
  try {
2047
- return JSON.parse(data);
2057
+ return JSON.parse(data, this.parseReviver);
2048
2058
  } catch (e) {
2049
2059
  if (strictJSONParsing) {
2050
2060
  if (e.name === 'SyntaxError') {
@@ -2810,19 +2820,22 @@ var contentful = (function (exports) {
2810
2820
  if (auth) {
2811
2821
  headers.set('Authorization', 'Basic ' + btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : '')));
2812
2822
  }
2813
- var contentType;
2814
2823
  if (utils$1$1.isFormData(data)) {
2815
2824
  if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
2816
- headers.setContentType(undefined); // Let the browser set it
2817
- } else if ((contentType = headers.getContentType()) !== false) {
2818
- // fix semicolon duplication issue for ReactNative FormData implementation
2819
- var _ref11 = contentType ? contentType.split(';').map(function (token) {
2820
- return token.trim();
2821
- }).filter(Boolean) : [],
2822
- _ref12 = _toArray(_ref11),
2823
- type = _ref12[0],
2824
- tokens = _ref12.slice(1);
2825
- headers.setContentType([type || 'multipart/form-data'].concat(_toConsumableArray$1(tokens)).join('; '));
2825
+ headers.setContentType(undefined); // browser handles it
2826
+ } else if (utils$1$1.isFunction(data.getHeaders)) {
2827
+ // Node.js FormData (like form-data package)
2828
+ var formHeaders = data.getHeaders();
2829
+ // Only set safe headers to avoid overwriting security headers
2830
+ var allowedHeaders = ['content-type', 'content-length'];
2831
+ Object.entries(formHeaders).forEach(function (_ref11) {
2832
+ var _ref12 = _slicedToArray$1(_ref11, 2),
2833
+ key = _ref12[0],
2834
+ val = _ref12[1];
2835
+ if (allowedHeaders.includes(key.toLowerCase())) {
2836
+ headers.set(key, val);
2837
+ }
2838
+ });
2826
2839
  }
2827
2840
  }
2828
2841
 
@@ -2927,12 +2940,15 @@ var contentful = (function (exports) {
2927
2940
  };
2928
2941
 
2929
2942
  // Handle low level network errors
2930
- request.onerror = function handleError() {
2931
- // Real errors are hidden from us by the browser
2932
- // onerror should only fire if it's a network error
2933
- reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));
2934
-
2935
- // Clean up request
2943
+ request.onerror = function handleError(event) {
2944
+ // Browsers deliver a ProgressEvent in XHR onerror
2945
+ // (message may be empty; when present, surface it)
2946
+ // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
2947
+ var msg = event && event.message ? event.message : 'Network Error';
2948
+ var err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
2949
+ // attach the underlying event for consumers who want details
2950
+ err.event = event || null;
2951
+ reject(err);
2936
2952
  request = null;
2937
2953
  };
2938
2954
 
@@ -3258,35 +3274,21 @@ var contentful = (function (exports) {
3258
3274
  highWaterMark: 2
3259
3275
  });
3260
3276
  };
3261
- var isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
3262
- var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
3263
-
3264
- // used only inside the fetch adapter
3265
- var encodeText = isFetchSupported && (typeof TextEncoder === 'function' ? function (encoder) {
3266
- return function (str) {
3267
- return encoder.encode(str);
3268
- };
3269
- }(new TextEncoder()) : (/*#__PURE__*/function () {
3270
- var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(str) {
3271
- return _regeneratorRuntime.wrap(function _callee4$(_context5) {
3272
- while (1) switch (_context5.prev = _context5.next) {
3273
- case 0:
3274
- _context5.t0 = Uint8Array;
3275
- _context5.next = 3;
3276
- return new Response(str).arrayBuffer();
3277
- case 3:
3278
- _context5.t1 = _context5.sent;
3279
- return _context5.abrupt("return", new _context5.t0(_context5.t1));
3280
- case 5:
3281
- case "end":
3282
- return _context5.stop();
3283
- }
3284
- }, _callee4);
3285
- }));
3286
- return function (_x4) {
3287
- return _ref13.apply(this, arguments);
3277
+ var DEFAULT_CHUNK_SIZE = 64 * 1024;
3278
+ var isFunction = utils$1$1.isFunction;
3279
+ var globalFetchAPI = function (_ref13) {
3280
+ var fetch = _ref13.fetch,
3281
+ Request = _ref13.Request,
3282
+ Response = _ref13.Response;
3283
+ return {
3284
+ fetch: fetch,
3285
+ Request: Request,
3286
+ Response: Response
3288
3287
  };
3289
- }()));
3288
+ }(utils$1$1.global);
3289
+ var _utils$1$global = utils$1$1.global,
3290
+ ReadableStream$1 = _utils$1$global.ReadableStream,
3291
+ TextEncoder = _utils$1$global.TextEncoder;
3290
3292
  var test = function test(fn) {
3291
3293
  try {
3292
3294
  for (var _len5 = arguments.length, args = new Array(_len5 > 1 ? _len5 - 1 : 0), _key6 = 1; _key6 < _len5; _key6++) {
@@ -3297,231 +3299,297 @@ var contentful = (function (exports) {
3297
3299
  return false;
3298
3300
  }
3299
3301
  };
3300
- var supportsRequestStream = isReadableStreamSupported && test(function () {
3301
- var duplexAccessed = false;
3302
- var hasContentType = new Request(platform.origin, {
3303
- body: new ReadableStream(),
3304
- method: 'POST',
3305
- get duplex() {
3306
- duplexAccessed = true;
3307
- return 'half';
3308
- }
3309
- }).headers.has('Content-Type');
3310
- return duplexAccessed && !hasContentType;
3311
- });
3312
- var DEFAULT_CHUNK_SIZE = 64 * 1024;
3313
- var supportsResponseStream = isReadableStreamSupported && test(function () {
3314
- return utils$1$1.isReadableStream(new Response('').body);
3315
- });
3316
- var resolvers = {
3317
- stream: supportsResponseStream && function (res) {
3318
- return res.body;
3302
+ var factory = function factory(env) {
3303
+ var _Object$assign = Object.assign({}, globalFetchAPI, env),
3304
+ fetch = _Object$assign.fetch,
3305
+ Request = _Object$assign.Request,
3306
+ Response = _Object$assign.Response;
3307
+ var isFetchSupported = isFunction(fetch);
3308
+ var isRequestSupported = isFunction(Request);
3309
+ var isResponseSupported = isFunction(Response);
3310
+ if (!isFetchSupported) {
3311
+ return false;
3319
3312
  }
3320
- };
3321
- isFetchSupported && function (res) {
3322
- ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(function (type) {
3323
- !resolvers[type] && (resolvers[type] = utils$1$1.isFunction(res[type]) ? function (res) {
3324
- return res[type]();
3325
- } : function (_, config) {
3326
- throw new AxiosError("Response type '".concat(type, "' is not supported"), AxiosError.ERR_NOT_SUPPORT, config);
3327
- });
3313
+ var isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
3314
+ var encodeText = isFetchSupported && (typeof TextEncoder === 'function' ? function (encoder) {
3315
+ return function (str) {
3316
+ return encoder.encode(str);
3317
+ };
3318
+ }(new TextEncoder()) : (/*#__PURE__*/function () {
3319
+ var _ref14 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(str) {
3320
+ return _regeneratorRuntime.wrap(function _callee4$(_context5) {
3321
+ while (1) switch (_context5.prev = _context5.next) {
3322
+ case 0:
3323
+ _context5.t0 = Uint8Array;
3324
+ _context5.next = 3;
3325
+ return new Request(str).arrayBuffer();
3326
+ case 3:
3327
+ _context5.t1 = _context5.sent;
3328
+ return _context5.abrupt("return", new _context5.t0(_context5.t1));
3329
+ case 5:
3330
+ case "end":
3331
+ return _context5.stop();
3332
+ }
3333
+ }, _callee4);
3334
+ }));
3335
+ return function (_x4) {
3336
+ return _ref14.apply(this, arguments);
3337
+ };
3338
+ }()));
3339
+ var supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(function () {
3340
+ var duplexAccessed = false;
3341
+ var hasContentType = new Request(platform.origin, {
3342
+ body: new ReadableStream$1(),
3343
+ method: 'POST',
3344
+ get duplex() {
3345
+ duplexAccessed = true;
3346
+ return 'half';
3347
+ }
3348
+ }).headers.has('Content-Type');
3349
+ return duplexAccessed && !hasContentType;
3328
3350
  });
3329
- }(new Response());
3330
- var getBodyLength = /*#__PURE__*/function () {
3331
- var _ref14 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(body) {
3332
- var _request;
3333
- return _regeneratorRuntime.wrap(function _callee5$(_context6) {
3334
- while (1) switch (_context6.prev = _context6.next) {
3335
- case 0:
3336
- if (!(body == null)) {
3337
- _context6.next = 2;
3338
- break;
3339
- }
3340
- return _context6.abrupt("return", 0);
3341
- case 2:
3342
- if (!utils$1$1.isBlob(body)) {
3343
- _context6.next = 4;
3344
- break;
3345
- }
3346
- return _context6.abrupt("return", body.size);
3347
- case 4:
3348
- if (!utils$1$1.isSpecCompliantForm(body)) {
3349
- _context6.next = 9;
3350
- break;
3351
- }
3352
- _request = new Request(platform.origin, {
3353
- method: 'POST',
3354
- body: body
3355
- });
3356
- _context6.next = 8;
3357
- return _request.arrayBuffer();
3358
- case 8:
3359
- return _context6.abrupt("return", _context6.sent.byteLength);
3360
- case 9:
3361
- if (!(utils$1$1.isArrayBufferView(body) || utils$1$1.isArrayBuffer(body))) {
3362
- _context6.next = 11;
3363
- break;
3364
- }
3365
- return _context6.abrupt("return", body.byteLength);
3366
- case 11:
3367
- if (utils$1$1.isURLSearchParams(body)) {
3368
- body = body + '';
3369
- }
3370
- if (!utils$1$1.isString(body)) {
3371
- _context6.next = 16;
3372
- break;
3373
- }
3374
- _context6.next = 15;
3375
- return encodeText(body);
3376
- case 15:
3377
- return _context6.abrupt("return", _context6.sent.byteLength);
3378
- case 16:
3379
- case "end":
3380
- return _context6.stop();
3381
- }
3382
- }, _callee5);
3383
- }));
3384
- return function getBodyLength(_x5) {
3385
- return _ref14.apply(this, arguments);
3386
- };
3387
- }();
3388
- var resolveBodyLength = /*#__PURE__*/function () {
3389
- var _ref15 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(headers, body) {
3390
- var length;
3391
- return _regeneratorRuntime.wrap(function _callee6$(_context7) {
3392
- while (1) switch (_context7.prev = _context7.next) {
3393
- case 0:
3394
- length = utils$1$1.toFiniteNumber(headers.getContentLength());
3395
- return _context7.abrupt("return", length == null ? getBodyLength(body) : length);
3396
- case 2:
3397
- case "end":
3398
- return _context7.stop();
3399
- }
3400
- }, _callee6);
3401
- }));
3402
- return function resolveBodyLength(_x6, _x7) {
3403
- return _ref15.apply(this, arguments);
3351
+ var supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(function () {
3352
+ return utils$1$1.isReadableStream(new Response('').body);
3353
+ });
3354
+ var resolvers = {
3355
+ stream: supportsResponseStream && function (res) {
3356
+ return res.body;
3357
+ }
3404
3358
  };
3405
- }();
3406
- var fetchAdapter = isFetchSupported && (/*#__PURE__*/function () {
3407
- var _ref16 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(config) {
3408
- var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, composedSignal, request, unsubscribe, requestContentLength, _request, contentTypeHeader, _progressEventDecorat, _progressEventDecorat2, onProgress, flush, isCredentialsSupported, response, isStreamResponse, options, responseContentLength, _ref17, _ref18, _onProgress, _flush, responseData;
3409
- return _regeneratorRuntime.wrap(function _callee7$(_context8) {
3410
- while (1) switch (_context8.prev = _context8.next) {
3411
- case 0:
3412
- _resolveConfig = resolveConfig(config), url = _resolveConfig.url, method = _resolveConfig.method, data = _resolveConfig.data, signal = _resolveConfig.signal, cancelToken = _resolveConfig.cancelToken, timeout = _resolveConfig.timeout, onDownloadProgress = _resolveConfig.onDownloadProgress, onUploadProgress = _resolveConfig.onUploadProgress, responseType = _resolveConfig.responseType, headers = _resolveConfig.headers, _resolveConfig$withCr = _resolveConfig.withCredentials, withCredentials = _resolveConfig$withCr === void 0 ? 'same-origin' : _resolveConfig$withCr, fetchOptions = _resolveConfig.fetchOptions;
3413
- responseType = responseType ? (responseType + '').toLowerCase() : 'text';
3414
- composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
3415
- unsubscribe = composedSignal && composedSignal.unsubscribe && function () {
3416
- composedSignal.unsubscribe();
3417
- };
3418
- _context8.prev = 4;
3419
- _context8.t0 = onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head';
3420
- if (!_context8.t0) {
3421
- _context8.next = 11;
3422
- break;
3423
- }
3424
- _context8.next = 9;
3425
- return resolveBodyLength(headers, data);
3426
- case 9:
3427
- _context8.t1 = requestContentLength = _context8.sent;
3428
- _context8.t0 = _context8.t1 !== 0;
3429
- case 11:
3430
- if (!_context8.t0) {
3431
- _context8.next = 15;
3432
- break;
3433
- }
3434
- _request = new Request(url, {
3435
- method: 'POST',
3436
- body: data,
3437
- duplex: "half"
3438
- });
3439
- if (utils$1$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
3440
- headers.setContentType(contentTypeHeader);
3441
- }
3442
- if (_request.body) {
3443
- _progressEventDecorat = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))), _progressEventDecorat2 = _slicedToArray$1(_progressEventDecorat, 2), onProgress = _progressEventDecorat2[0], flush = _progressEventDecorat2[1];
3444
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
3445
- }
3446
- case 15:
3447
- if (!utils$1$1.isString(withCredentials)) {
3448
- withCredentials = withCredentials ? 'include' : 'omit';
3449
- }
3359
+ isFetchSupported && function () {
3360
+ ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(function (type) {
3361
+ !resolvers[type] && (resolvers[type] = function (res, config) {
3362
+ var method = res && res[type];
3363
+ if (method) {
3364
+ return method.call(res);
3365
+ }
3366
+ throw new AxiosError("Response type '".concat(type, "' is not supported"), AxiosError.ERR_NOT_SUPPORT, config);
3367
+ });
3368
+ });
3369
+ }();
3370
+ var getBodyLength = /*#__PURE__*/function () {
3371
+ var _ref15 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(body) {
3372
+ var _request;
3373
+ return _regeneratorRuntime.wrap(function _callee5$(_context6) {
3374
+ while (1) switch (_context6.prev = _context6.next) {
3375
+ case 0:
3376
+ if (!(body == null)) {
3377
+ _context6.next = 2;
3378
+ break;
3379
+ }
3380
+ return _context6.abrupt("return", 0);
3381
+ case 2:
3382
+ if (!utils$1$1.isBlob(body)) {
3383
+ _context6.next = 4;
3384
+ break;
3385
+ }
3386
+ return _context6.abrupt("return", body.size);
3387
+ case 4:
3388
+ if (!utils$1$1.isSpecCompliantForm(body)) {
3389
+ _context6.next = 9;
3390
+ break;
3391
+ }
3392
+ _request = new Request(platform.origin, {
3393
+ method: 'POST',
3394
+ body: body
3395
+ });
3396
+ _context6.next = 8;
3397
+ return _request.arrayBuffer();
3398
+ case 8:
3399
+ return _context6.abrupt("return", _context6.sent.byteLength);
3400
+ case 9:
3401
+ if (!(utils$1$1.isArrayBufferView(body) || utils$1$1.isArrayBuffer(body))) {
3402
+ _context6.next = 11;
3403
+ break;
3404
+ }
3405
+ return _context6.abrupt("return", body.byteLength);
3406
+ case 11:
3407
+ if (utils$1$1.isURLSearchParams(body)) {
3408
+ body = body + '';
3409
+ }
3410
+ if (!utils$1$1.isString(body)) {
3411
+ _context6.next = 16;
3412
+ break;
3413
+ }
3414
+ _context6.next = 15;
3415
+ return encodeText(body);
3416
+ case 15:
3417
+ return _context6.abrupt("return", _context6.sent.byteLength);
3418
+ case 16:
3419
+ case "end":
3420
+ return _context6.stop();
3421
+ }
3422
+ }, _callee5);
3423
+ }));
3424
+ return function getBodyLength(_x5) {
3425
+ return _ref15.apply(this, arguments);
3426
+ };
3427
+ }();
3428
+ var resolveBodyLength = /*#__PURE__*/function () {
3429
+ var _ref16 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(headers, body) {
3430
+ var length;
3431
+ return _regeneratorRuntime.wrap(function _callee6$(_context7) {
3432
+ while (1) switch (_context7.prev = _context7.next) {
3433
+ case 0:
3434
+ length = utils$1$1.toFiniteNumber(headers.getContentLength());
3435
+ return _context7.abrupt("return", length == null ? getBodyLength(body) : length);
3436
+ case 2:
3437
+ case "end":
3438
+ return _context7.stop();
3439
+ }
3440
+ }, _callee6);
3441
+ }));
3442
+ return function resolveBodyLength(_x6, _x7) {
3443
+ return _ref16.apply(this, arguments);
3444
+ };
3445
+ }();
3446
+ return /*#__PURE__*/function () {
3447
+ var _ref17 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(config) {
3448
+ var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, composedSignal, request, unsubscribe, requestContentLength, _request, contentTypeHeader, _progressEventDecorat, _progressEventDecorat2, onProgress, flush, isCredentialsSupported, resolvedOptions, response, isStreamResponse, options, responseContentLength, _ref18, _ref19, _onProgress, _flush, responseData;
3449
+ return _regeneratorRuntime.wrap(function _callee7$(_context8) {
3450
+ while (1) switch (_context8.prev = _context8.next) {
3451
+ case 0:
3452
+ _resolveConfig = resolveConfig(config), url = _resolveConfig.url, method = _resolveConfig.method, data = _resolveConfig.data, signal = _resolveConfig.signal, cancelToken = _resolveConfig.cancelToken, timeout = _resolveConfig.timeout, onDownloadProgress = _resolveConfig.onDownloadProgress, onUploadProgress = _resolveConfig.onUploadProgress, responseType = _resolveConfig.responseType, headers = _resolveConfig.headers, _resolveConfig$withCr = _resolveConfig.withCredentials, withCredentials = _resolveConfig$withCr === void 0 ? 'same-origin' : _resolveConfig$withCr, fetchOptions = _resolveConfig.fetchOptions;
3453
+ responseType = responseType ? (responseType + '').toLowerCase() : 'text';
3454
+ composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
3455
+ request = null;
3456
+ unsubscribe = composedSignal && composedSignal.unsubscribe && function () {
3457
+ composedSignal.unsubscribe();
3458
+ };
3459
+ _context8.prev = 5;
3460
+ _context8.t0 = onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head';
3461
+ if (!_context8.t0) {
3462
+ _context8.next = 12;
3463
+ break;
3464
+ }
3465
+ _context8.next = 10;
3466
+ return resolveBodyLength(headers, data);
3467
+ case 10:
3468
+ _context8.t1 = requestContentLength = _context8.sent;
3469
+ _context8.t0 = _context8.t1 !== 0;
3470
+ case 12:
3471
+ if (!_context8.t0) {
3472
+ _context8.next = 16;
3473
+ break;
3474
+ }
3475
+ _request = new Request(url, {
3476
+ method: 'POST',
3477
+ body: data,
3478
+ duplex: "half"
3479
+ });
3480
+ if (utils$1$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
3481
+ headers.setContentType(contentTypeHeader);
3482
+ }
3483
+ if (_request.body) {
3484
+ _progressEventDecorat = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))), _progressEventDecorat2 = _slicedToArray$1(_progressEventDecorat, 2), onProgress = _progressEventDecorat2[0], flush = _progressEventDecorat2[1];
3485
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
3486
+ }
3487
+ case 16:
3488
+ if (!utils$1$1.isString(withCredentials)) {
3489
+ withCredentials = withCredentials ? 'include' : 'omit';
3490
+ }
3450
3491
 
3451
- // Cloudflare Workers throws when credentials are defined
3452
- // see https://github.com/cloudflare/workerd/issues/902
3453
- isCredentialsSupported = "credentials" in Request.prototype;
3454
- request = new Request(url, _objectSpread$2(_objectSpread$2({}, fetchOptions), {}, {
3455
- signal: composedSignal,
3456
- method: method.toUpperCase(),
3457
- headers: headers.normalize().toJSON(),
3458
- body: data,
3459
- duplex: "half",
3460
- credentials: isCredentialsSupported ? withCredentials : undefined
3461
- }));
3462
- _context8.next = 20;
3463
- return fetch(request, fetchOptions);
3464
- case 20:
3465
- response = _context8.sent;
3466
- isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
3467
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
3468
- options = {};
3469
- ['status', 'statusText', 'headers'].forEach(function (prop) {
3470
- options[prop] = response[prop];
3492
+ // Cloudflare Workers throws when credentials are defined
3493
+ // see https://github.com/cloudflare/workerd/issues/902
3494
+ isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
3495
+ resolvedOptions = _objectSpread$2(_objectSpread$2({}, fetchOptions), {}, {
3496
+ signal: composedSignal,
3497
+ method: method.toUpperCase(),
3498
+ headers: headers.normalize().toJSON(),
3499
+ body: data,
3500
+ duplex: "half",
3501
+ credentials: isCredentialsSupported ? withCredentials : undefined
3471
3502
  });
3472
- responseContentLength = utils$1$1.toFiniteNumber(response.headers.get('content-length'));
3473
- _ref17 = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [], _ref18 = _slicedToArray$1(_ref17, 2), _onProgress = _ref18[0], _flush = _ref18[1];
3474
- response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, _onProgress, function () {
3475
- _flush && _flush();
3476
- unsubscribe && unsubscribe();
3477
- }), options);
3478
- }
3479
- responseType = responseType || 'text';
3480
- _context8.next = 26;
3481
- return resolvers[utils$1$1.findKey(resolvers, responseType) || 'text'](response, config);
3482
- case 26:
3483
- responseData = _context8.sent;
3484
- !isStreamResponse && unsubscribe && unsubscribe();
3485
- _context8.next = 30;
3486
- return new Promise(function (resolve, reject) {
3487
- settle(resolve, reject, {
3488
- data: responseData,
3489
- headers: AxiosHeaders$1.from(response.headers),
3490
- status: response.status,
3491
- statusText: response.statusText,
3492
- config: config,
3493
- request: request
3503
+ request = isRequestSupported && new Request(url, resolvedOptions);
3504
+ _context8.next = 22;
3505
+ return isRequestSupported ? fetch(request, fetchOptions) : fetch(url, resolvedOptions);
3506
+ case 22:
3507
+ response = _context8.sent;
3508
+ isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
3509
+ if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
3510
+ options = {};
3511
+ ['status', 'statusText', 'headers'].forEach(function (prop) {
3512
+ options[prop] = response[prop];
3513
+ });
3514
+ responseContentLength = utils$1$1.toFiniteNumber(response.headers.get('content-length'));
3515
+ _ref18 = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [], _ref19 = _slicedToArray$1(_ref18, 2), _onProgress = _ref19[0], _flush = _ref19[1];
3516
+ response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, _onProgress, function () {
3517
+ _flush && _flush();
3518
+ unsubscribe && unsubscribe();
3519
+ }), options);
3520
+ }
3521
+ responseType = responseType || 'text';
3522
+ _context8.next = 28;
3523
+ return resolvers[utils$1$1.findKey(resolvers, responseType) || 'text'](response, config);
3524
+ case 28:
3525
+ responseData = _context8.sent;
3526
+ !isStreamResponse && unsubscribe && unsubscribe();
3527
+ _context8.next = 32;
3528
+ return new Promise(function (resolve, reject) {
3529
+ settle(resolve, reject, {
3530
+ data: responseData,
3531
+ headers: AxiosHeaders$1.from(response.headers),
3532
+ status: response.status,
3533
+ statusText: response.statusText,
3534
+ config: config,
3535
+ request: request
3536
+ });
3494
3537
  });
3495
- });
3496
- case 30:
3497
- return _context8.abrupt("return", _context8.sent);
3498
- case 33:
3499
- _context8.prev = 33;
3500
- _context8.t2 = _context8["catch"](4);
3501
- unsubscribe && unsubscribe();
3502
- if (!(_context8.t2 && _context8.t2.name === 'TypeError' && /Load failed|fetch/i.test(_context8.t2.message))) {
3503
- _context8.next = 38;
3504
- break;
3505
- }
3506
- throw Object.assign(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request), {
3507
- cause: _context8.t2.cause || _context8.t2
3508
- });
3509
- case 38:
3510
- throw AxiosError.from(_context8.t2, _context8.t2 && _context8.t2.code, config, request);
3511
- case 39:
3512
- case "end":
3513
- return _context8.stop();
3514
- }
3515
- }, _callee7, null, [[4, 33]]);
3516
- }));
3517
- return function (_x8) {
3518
- return _ref16.apply(this, arguments);
3519
- };
3520
- }());
3538
+ case 32:
3539
+ return _context8.abrupt("return", _context8.sent);
3540
+ case 35:
3541
+ _context8.prev = 35;
3542
+ _context8.t2 = _context8["catch"](5);
3543
+ unsubscribe && unsubscribe();
3544
+ if (!(_context8.t2 && _context8.t2.name === 'TypeError' && /Load failed|fetch/i.test(_context8.t2.message))) {
3545
+ _context8.next = 40;
3546
+ break;
3547
+ }
3548
+ throw Object.assign(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request), {
3549
+ cause: _context8.t2.cause || _context8.t2
3550
+ });
3551
+ case 40:
3552
+ throw AxiosError.from(_context8.t2, _context8.t2 && _context8.t2.code, config, request);
3553
+ case 41:
3554
+ case "end":
3555
+ return _context8.stop();
3556
+ }
3557
+ }, _callee7, null, [[5, 35]]);
3558
+ }));
3559
+ return function (_x8) {
3560
+ return _ref17.apply(this, arguments);
3561
+ };
3562
+ }();
3563
+ };
3564
+ var seedCache = new Map();
3565
+ var getFetch = function getFetch(config) {
3566
+ var env = utils$1$1.merge.call({
3567
+ skipUndefined: true
3568
+ }, globalFetchAPI, config ? config.env : null);
3569
+ var fetch = env.fetch,
3570
+ Request = env.Request,
3571
+ Response = env.Response;
3572
+ var seeds = [Request, Response, fetch];
3573
+ var len = seeds.length,
3574
+ i = len,
3575
+ seed,
3576
+ target,
3577
+ map = seedCache;
3578
+ while (i--) {
3579
+ seed = seeds[i];
3580
+ target = map.get(seed);
3581
+ target === undefined && map.set(seed, target = i ? new Map() : factory(env));
3582
+ map = target;
3583
+ }
3584
+ return target;
3585
+ };
3586
+ getFetch();
3521
3587
  var knownAdapters = {
3522
3588
  http: httpAdapter,
3523
3589
  xhr: xhrAdapter,
3524
- fetch: fetchAdapter
3590
+ fetch: {
3591
+ get: getFetch
3592
+ }
3525
3593
  };
3526
3594
  utils$1$1.forEach(knownAdapters, function (fn, value) {
3527
3595
  if (fn) {
@@ -3544,7 +3612,7 @@ var contentful = (function (exports) {
3544
3612
  return utils$1$1.isFunction(adapter) || adapter === null || adapter === false;
3545
3613
  };
3546
3614
  var adapters = {
3547
- getAdapter: function getAdapter(adapters) {
3615
+ getAdapter: function getAdapter(adapters, config) {
3548
3616
  adapters = utils$1$1.isArray(adapters) ? adapters : [adapters];
3549
3617
  var _adapters = adapters,
3550
3618
  length = _adapters.length;
@@ -3561,16 +3629,16 @@ var contentful = (function (exports) {
3561
3629
  throw new AxiosError("Unknown adapter '".concat(id, "'"));
3562
3630
  }
3563
3631
  }
3564
- if (adapter) {
3632
+ if (adapter && (utils$1$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
3565
3633
  break;
3566
3634
  }
3567
3635
  rejectedReasons[id || '#' + i] = adapter;
3568
3636
  }
3569
3637
  if (!adapter) {
3570
- var reasons = Object.entries(rejectedReasons).map(function (_ref19) {
3571
- var _ref20 = _slicedToArray$1(_ref19, 2),
3572
- id = _ref20[0],
3573
- state = _ref20[1];
3638
+ var reasons = Object.entries(rejectedReasons).map(function (_ref20) {
3639
+ var _ref21 = _slicedToArray$1(_ref20, 2),
3640
+ id = _ref21[0],
3641
+ state = _ref21[1];
3574
3642
  return "adapter ".concat(id, " ") + (state === false ? 'is not supported by the environment' : 'is not available in the build');
3575
3643
  });
3576
3644
  var s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
@@ -3613,7 +3681,7 @@ var contentful = (function (exports) {
3613
3681
  if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
3614
3682
  config.headers.setContentType('application/x-www-form-urlencoded', false);
3615
3683
  }
3616
- var adapter = adapters.getAdapter(config.adapter || defaults$1$1.adapter);
3684
+ var adapter = adapters.getAdapter(config.adapter || defaults$1$1.adapter, config);
3617
3685
  return adapter(config).then(function onAdapterResolution(response) {
3618
3686
  throwIfCancellationRequested(config);
3619
3687
 
@@ -3634,7 +3702,7 @@ var contentful = (function (exports) {
3634
3702
  return Promise.reject(reason);
3635
3703
  });
3636
3704
  }
3637
- var VERSION = "1.11.0";
3705
+ var VERSION = "1.12.0";
3638
3706
  var validators$1 = {};
3639
3707
 
3640
3708
  // eslint-disable-next-line func-names
@@ -4168,10 +4236,10 @@ var contentful = (function (exports) {
4168
4236
  NotExtended: 510,
4169
4237
  NetworkAuthenticationRequired: 511
4170
4238
  };
4171
- Object.entries(HttpStatusCode).forEach(function (_ref21) {
4172
- var _ref22 = _slicedToArray$1(_ref21, 2),
4173
- key = _ref22[0],
4174
- value = _ref22[1];
4239
+ Object.entries(HttpStatusCode).forEach(function (_ref22) {
4240
+ var _ref23 = _slicedToArray$1(_ref22, 2),
4241
+ key = _ref23[0],
4242
+ value = _ref23[1];
4175
4243
  HttpStatusCode[value] = key;
4176
4244
  });
4177
4245
  var HttpStatusCode$1 = HttpStatusCode;
@@ -6112,7 +6180,7 @@ var contentful = (function (exports) {
6112
6180
  if (!allowMissing) {
6113
6181
  throw new $TypeError$3('base intrinsic for ' + name + ' exists, but the property is not available.');
6114
6182
  }
6115
- return void 0;
6183
+ return void undefined$1;
6116
6184
  }
6117
6185
  if ($gOPD && i + 1 >= parts.length) {
6118
6186
  var desc = $gOPD(value, part);
@@ -7247,7 +7315,7 @@ var contentful = (function (exports) {
7247
7315
  var tmpSc = sideChannel;
7248
7316
  var step = 0;
7249
7317
  var findFlag = false;
7250
- while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
7318
+ while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
7251
7319
  // Where object last appeared in the ref tree
7252
7320
  var pos = tmpSc.get(object);
7253
7321
  step += 1;
@@ -7298,7 +7366,7 @@ var contentful = (function (exports) {
7298
7366
  obj = utils$1.maybeMap(obj, encoder);
7299
7367
  }
7300
7368
  objKeys = [{
7301
- value: obj.length > 0 ? obj.join(',') || null : void 0
7369
+ value: obj.length > 0 ? obj.join(',') || null : void undefined
7302
7370
  }];
7303
7371
  } else if (isArray$1(filter)) {
7304
7372
  objKeys = filter;
@@ -10450,7 +10518,7 @@ var contentful = (function (exports) {
10450
10518
  http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
10451
10519
  }
10452
10520
  return {
10453
- version: "11.7.15",
10521
+ version: "11.7.17",
10454
10522
  getSpace: getSpace,
10455
10523
  getContentType: getContentType,
10456
10524
  getContentTypes: getContentTypes,
@@ -10577,7 +10645,7 @@ var contentful = (function (exports) {
10577
10645
  environment: 'master'
10578
10646
  };
10579
10647
  var config = Object.assign(Object.assign({}, defaultConfig), params);
10580
- var userAgentHeader = getUserAgentHeader("contentful.js/".concat("11.7.15"), config.application, config.integration);
10648
+ var userAgentHeader = getUserAgentHeader("contentful.js/".concat("11.7.17"), config.application, config.integration);
10581
10649
  config.headers = Object.assign(Object.assign({}, config.headers), {
10582
10650
  'Content-Type': 'application/vnd.contentful.delivery.v1+json',
10583
10651
  'X-Contentful-User-Agent': userAgentHeader