contentful 11.10.6 → 11.10.7

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.
@@ -756,7 +756,7 @@ var contentful = (function (exports) {
756
756
  *
757
757
  * @returns {boolean} True if the value is undefined, otherwise false
758
758
  */
759
- var isUndefined = typeOfTest("undefined");
759
+ var isUndefined = typeOfTest('undefined');
760
760
 
761
761
  /**
762
762
  * Determine if a value is a Buffer
@@ -776,7 +776,7 @@ var contentful = (function (exports) {
776
776
  *
777
777
  * @returns {boolean} True if value is an ArrayBuffer, otherwise false
778
778
  */
779
- var isArrayBuffer = kindOfTest("ArrayBuffer");
779
+ var isArrayBuffer = kindOfTest('ArrayBuffer');
780
780
 
781
781
  /**
782
782
  * Determine if a value is a view on an ArrayBuffer
@@ -787,7 +787,7 @@ var contentful = (function (exports) {
787
787
  */
788
788
  function isArrayBufferView(val) {
789
789
  var result;
790
- if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
790
+ if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
791
791
  result = ArrayBuffer.isView(val);
792
792
  } else {
793
793
  result = val && val.buffer && isArrayBuffer(val.buffer);
@@ -802,7 +802,7 @@ var contentful = (function (exports) {
802
802
  *
803
803
  * @returns {boolean} True if value is a String, otherwise false
804
804
  */
805
- var isString$3 = typeOfTest("string");
805
+ var isString$3 = typeOfTest('string');
806
806
 
807
807
  /**
808
808
  * Determine if a value is a Function
@@ -810,7 +810,7 @@ var contentful = (function (exports) {
810
810
  * @param {*} val The value to test
811
811
  * @returns {boolean} True if value is a Function, otherwise false
812
812
  */
813
- var isFunction$1 = typeOfTest("function");
813
+ var isFunction$1 = typeOfTest('function');
814
814
 
815
815
  /**
816
816
  * Determine if a value is a Number
@@ -819,7 +819,7 @@ var contentful = (function (exports) {
819
819
  *
820
820
  * @returns {boolean} True if value is a Number, otherwise false
821
821
  */
822
- var isNumber$1 = typeOfTest("number");
822
+ var isNumber$1 = typeOfTest('number');
823
823
 
824
824
  /**
825
825
  * Determine if a value is an Object
@@ -829,7 +829,7 @@ var contentful = (function (exports) {
829
829
  * @returns {boolean} True if value is an Object, otherwise false
830
830
  */
831
831
  var isObject = function isObject(thing) {
832
- return thing !== null && _typeof$2(thing) === "object";
832
+ return thing !== null && _typeof$2(thing) === 'object';
833
833
  };
834
834
 
835
835
  /**
@@ -850,7 +850,7 @@ var contentful = (function (exports) {
850
850
  * @returns {boolean} True if value is a plain Object, otherwise false
851
851
  */
852
852
  var isPlainObject$2 = function isPlainObject(val) {
853
- if (kindOf(val) !== "object") {
853
+ if (kindOf(val) !== 'object') {
854
854
  return false;
855
855
  }
856
856
  var prototype = getPrototypeOf$1(val);
@@ -884,7 +884,7 @@ var contentful = (function (exports) {
884
884
  *
885
885
  * @returns {boolean} True if value is a Date, otherwise false
886
886
  */
887
- var isDate$1 = kindOfTest("Date");
887
+ var isDate$1 = kindOfTest('Date');
888
888
 
889
889
  /**
890
890
  * Determine if a value is a File
@@ -893,7 +893,34 @@ var contentful = (function (exports) {
893
893
  *
894
894
  * @returns {boolean} True if value is a File, otherwise false
895
895
  */
896
- var isFile = kindOfTest("File");
896
+ var isFile = kindOfTest('File');
897
+
898
+ /**
899
+ * Determine if a value is a React Native Blob
900
+ * React Native "blob": an object with a `uri` attribute. Optionally, it can
901
+ * also have a `name` and `type` attribute to specify filename and content type
902
+ *
903
+ * @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
904
+ *
905
+ * @param {*} value The value to test
906
+ *
907
+ * @returns {boolean} True if value is a React Native Blob, otherwise false
908
+ */
909
+ var isReactNativeBlob = function isReactNativeBlob(value) {
910
+ return !!(value && typeof value.uri !== 'undefined');
911
+ };
912
+
913
+ /**
914
+ * Determine if environment is React Native
915
+ * ReactNative `FormData` has a non-standard `getParts()` method
916
+ *
917
+ * @param {*} formData The formData to test
918
+ *
919
+ * @returns {boolean} True if environment is React Native, otherwise false
920
+ */
921
+ var isReactNative$1 = function isReactNative(formData) {
922
+ return formData && typeof formData.getParts !== 'undefined';
923
+ };
897
924
 
898
925
  /**
899
926
  * Determine if a value is a Blob
@@ -902,7 +929,7 @@ var contentful = (function (exports) {
902
929
  *
903
930
  * @returns {boolean} True if value is a Blob, otherwise false
904
931
  */
905
- var isBlob = kindOfTest("Blob");
932
+ var isBlob = kindOfTest('Blob');
906
933
 
907
934
  /**
908
935
  * Determine if a value is a FileList
@@ -911,7 +938,7 @@ var contentful = (function (exports) {
911
938
  *
912
939
  * @returns {boolean} True if value is a File, otherwise false
913
940
  */
914
- var isFileList = kindOfTest("FileList");
941
+ var isFileList = kindOfTest('FileList');
915
942
 
916
943
  /**
917
944
  * Determine if a value is a Stream
@@ -931,11 +958,20 @@ var contentful = (function (exports) {
931
958
  *
932
959
  * @returns {boolean} True if value is an FormData, otherwise false
933
960
  */
961
+ function getGlobal() {
962
+ if (typeof globalThis !== 'undefined') return globalThis;
963
+ if (typeof self !== 'undefined') return self;
964
+ if (typeof window !== 'undefined') return window;
965
+ if (typeof global !== 'undefined') return global;
966
+ return {};
967
+ }
968
+ var G$1 = getGlobal();
969
+ var FormDataCtor = typeof G$1.FormData !== 'undefined' ? G$1.FormData : undefined;
934
970
  var isFormData = function isFormData(thing) {
935
971
  var kind;
936
- return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" ||
972
+ return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction$1(thing.append) && ((kind = kindOf(thing)) === 'formdata' ||
937
973
  // detect form-data instance
938
- kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
974
+ kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]'));
939
975
  };
940
976
 
941
977
  /**
@@ -945,8 +981,8 @@ var contentful = (function (exports) {
945
981
  *
946
982
  * @returns {boolean} True if value is a URLSearchParams object, otherwise false
947
983
  */
948
- var isURLSearchParams = kindOfTest("URLSearchParams");
949
- var _map = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest),
984
+ var isURLSearchParams = kindOfTest('URLSearchParams');
985
+ var _map = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest),
950
986
  _map2 = _slicedToArray$1(_map, 4),
951
987
  isReadableStream = _map2[0],
952
988
  isRequest = _map2[1],
@@ -961,9 +997,8 @@ var contentful = (function (exports) {
961
997
  * @returns {String} The String freed of excess whitespace
962
998
  */
963
999
  var trim = function trim(str) {
964
- return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1000
+ return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
965
1001
  };
966
-
967
1002
  /**
968
1003
  * Iterate over an Array or an Object invoking a function for each item.
969
1004
  *
@@ -985,14 +1020,14 @@ var contentful = (function (exports) {
985
1020
  _ref3$allOwnKeys = _ref3.allOwnKeys,
986
1021
  allOwnKeys = _ref3$allOwnKeys === void 0 ? false : _ref3$allOwnKeys;
987
1022
  // Don't bother if no value provided
988
- if (obj === null || typeof obj === "undefined") {
1023
+ if (obj === null || typeof obj === 'undefined') {
989
1024
  return;
990
1025
  }
991
1026
  var i;
992
1027
  var l;
993
1028
 
994
1029
  // Force an array if not already something iterable
995
- if (_typeof$2(obj) !== "object") {
1030
+ if (_typeof$2(obj) !== 'object') {
996
1031
  /*eslint no-param-reassign:0*/
997
1032
  obj = [obj];
998
1033
  }
@@ -1017,6 +1052,15 @@ var contentful = (function (exports) {
1017
1052
  }
1018
1053
  }
1019
1054
  }
1055
+
1056
+ /**
1057
+ * Finds a key in an object, case-insensitive, returning the actual key name.
1058
+ * Returns null if the object is a Buffer or if no match is found.
1059
+ *
1060
+ * @param {Object} obj - The object to search.
1061
+ * @param {string} key - The key to find (case-insensitive).
1062
+ * @returns {?string} The actual key name if found, otherwise null.
1063
+ */
1020
1064
  function findKey(obj, key) {
1021
1065
  if (isBuffer$1(obj)) {
1022
1066
  return null;
@@ -1035,8 +1079,8 @@ var contentful = (function (exports) {
1035
1079
  }
1036
1080
  var _global = function () {
1037
1081
  /*eslint no-undef:0*/
1038
- if (typeof globalThis !== "undefined") return globalThis;
1039
- return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
1082
+ if (typeof globalThis !== 'undefined') return globalThis;
1083
+ return typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : global;
1040
1084
  }();
1041
1085
  var isContextDefined = function isContextDefined(context) {
1042
1086
  return !isUndefined(context) && context !== _global;
@@ -1068,7 +1112,7 @@ var contentful = (function (exports) {
1068
1112
  var result = {};
1069
1113
  var assignValue = function assignValue(val, key) {
1070
1114
  // Skip dangerous property names to prevent prototype pollution
1071
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
1115
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
1072
1116
  return;
1073
1117
  }
1074
1118
  var targetKey = caseless && findKey(result, key) || key;
@@ -1149,13 +1193,13 @@ var contentful = (function (exports) {
1149
1193
  */
1150
1194
  var inherits = function inherits(constructor, superConstructor, props, descriptors) {
1151
1195
  constructor.prototype = Object.create(superConstructor.prototype, descriptors);
1152
- Object.defineProperty(constructor.prototype, "constructor", {
1196
+ Object.defineProperty(constructor.prototype, 'constructor', {
1153
1197
  value: constructor,
1154
1198
  writable: true,
1155
1199
  enumerable: false,
1156
1200
  configurable: true
1157
1201
  });
1158
- Object.defineProperty(constructor, "super", {
1202
+ Object.defineProperty(constructor, 'super', {
1159
1203
  value: superConstructor.prototype
1160
1204
  });
1161
1205
  props && Object.assign(constructor.prototype, props);
@@ -1245,7 +1289,7 @@ var contentful = (function (exports) {
1245
1289
  return function (thing) {
1246
1290
  return TypedArray && thing instanceof TypedArray;
1247
1291
  };
1248
- }(typeof Uint8Array !== "undefined" && getPrototypeOf$1(Uint8Array));
1292
+ }(typeof Uint8Array !== 'undefined' && getPrototypeOf$1(Uint8Array));
1249
1293
 
1250
1294
  /**
1251
1295
  * For each entry in the object, call the function with the key and value.
@@ -1283,7 +1327,7 @@ var contentful = (function (exports) {
1283
1327
  };
1284
1328
 
1285
1329
  /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
1286
- var isHTMLForm = kindOfTest("HTMLFormElement");
1330
+ var isHTMLForm = kindOfTest('HTMLFormElement');
1287
1331
  var toCamelCase = function toCamelCase(str) {
1288
1332
  return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
1289
1333
  return p1.toUpperCase() + p2;
@@ -1305,7 +1349,7 @@ var contentful = (function (exports) {
1305
1349
  *
1306
1350
  * @returns {boolean} True if value is a RegExp object, otherwise false
1307
1351
  */
1308
- var isRegExp$2 = kindOfTest("RegExp");
1352
+ var isRegExp$2 = kindOfTest('RegExp');
1309
1353
  var reduceDescriptors = function reduceDescriptors(obj, reducer) {
1310
1354
  var descriptors = Object.getOwnPropertyDescriptors(obj);
1311
1355
  var reducedDescriptors = {};
@@ -1326,13 +1370,13 @@ var contentful = (function (exports) {
1326
1370
  var freezeMethods = function freezeMethods(obj) {
1327
1371
  reduceDescriptors(obj, function (descriptor, name) {
1328
1372
  // skip restricted props in strict mode
1329
- if (isFunction$1(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
1373
+ if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
1330
1374
  return false;
1331
1375
  }
1332
1376
  var value = obj[name];
1333
1377
  if (!isFunction$1(value)) return;
1334
1378
  descriptor.enumerable = false;
1335
- if ("writable" in descriptor) {
1379
+ if ('writable' in descriptor) {
1336
1380
  descriptor.writable = false;
1337
1381
  return;
1338
1382
  }
@@ -1343,6 +1387,15 @@ var contentful = (function (exports) {
1343
1387
  }
1344
1388
  });
1345
1389
  };
1390
+
1391
+ /**
1392
+ * Converts an array or a delimited string into an object set with values as keys and true as values.
1393
+ * Useful for fast membership checks.
1394
+ *
1395
+ * @param {Array|string} arrayOrString - The array or string to convert.
1396
+ * @param {string} delimiter - The delimiter to use if input is a string.
1397
+ * @returns {Object} An object with keys from the array or string, values set to true.
1398
+ */
1346
1399
  var toObjectSet = function toObjectSet(arrayOrString, delimiter) {
1347
1400
  var obj = {};
1348
1401
  var define = function define(arr) {
@@ -1366,8 +1419,15 @@ var contentful = (function (exports) {
1366
1419
  * @returns {boolean}
1367
1420
  */
1368
1421
  function isSpecCompliantForm(thing) {
1369
- return !!(thing && isFunction$1(thing.append) && thing[toStringTag$1] === "FormData" && thing[iterator]);
1422
+ return !!(thing && isFunction$1(thing.append) && thing[toStringTag$1] === 'FormData' && thing[iterator]);
1370
1423
  }
1424
+
1425
+ /**
1426
+ * Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
1427
+ *
1428
+ * @param {Object} obj - The object to convert.
1429
+ * @returns {Object} The JSON-compatible object.
1430
+ */
1371
1431
  var toJSONObject = function toJSONObject(obj) {
1372
1432
  var stack = new Array(10);
1373
1433
  var _visit = function visit(source, i) {
@@ -1380,7 +1440,7 @@ var contentful = (function (exports) {
1380
1440
  if (isBuffer$1(source)) {
1381
1441
  return source;
1382
1442
  }
1383
- if (!("toJSON" in source)) {
1443
+ if (!('toJSON' in source)) {
1384
1444
  stack[i] = source;
1385
1445
  var target = isArray$7(source) ? [] : {};
1386
1446
  forEach(source, function (value, key) {
@@ -1395,7 +1455,21 @@ var contentful = (function (exports) {
1395
1455
  };
1396
1456
  return _visit(obj, 0);
1397
1457
  };
1398
- var isAsyncFn = kindOfTest("AsyncFunction");
1458
+
1459
+ /**
1460
+ * Determines if a value is an async function.
1461
+ *
1462
+ * @param {*} thing - The value to test.
1463
+ * @returns {boolean} True if value is an async function, otherwise false.
1464
+ */
1465
+ var isAsyncFn = kindOfTest('AsyncFunction');
1466
+
1467
+ /**
1468
+ * Determines if a value is thenable (has then and catch methods).
1469
+ *
1470
+ * @param {*} thing - The value to test.
1471
+ * @returns {boolean} True if value is thenable, otherwise false.
1472
+ */
1399
1473
  var isThenable = function isThenable(thing) {
1400
1474
  return thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
1401
1475
  };
@@ -1403,12 +1477,20 @@ var contentful = (function (exports) {
1403
1477
  // original code
1404
1478
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
1405
1479
 
1480
+ /**
1481
+ * Provides a cross-platform setImmediate implementation.
1482
+ * Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
1483
+ *
1484
+ * @param {boolean} setImmediateSupported - Whether setImmediate is supported.
1485
+ * @param {boolean} postMessageSupported - Whether postMessage is supported.
1486
+ * @returns {Function} A function to schedule a callback asynchronously.
1487
+ */
1406
1488
  var _setImmediate = function (setImmediateSupported, postMessageSupported) {
1407
1489
  if (setImmediateSupported) {
1408
1490
  return setImmediate;
1409
1491
  }
1410
1492
  return postMessageSupported ? function (token, callbacks) {
1411
- _global.addEventListener("message", function (_ref7) {
1493
+ _global.addEventListener('message', function (_ref7) {
1412
1494
  var source = _ref7.source,
1413
1495
  data = _ref7.data;
1414
1496
  if (source === _global && data === token) {
@@ -1417,13 +1499,20 @@ var contentful = (function (exports) {
1417
1499
  }, false);
1418
1500
  return function (cb) {
1419
1501
  callbacks.push(cb);
1420
- _global.postMessage(token, "*");
1502
+ _global.postMessage(token, '*');
1421
1503
  };
1422
1504
  }("axios@".concat(Math.random()), []) : function (cb) {
1423
1505
  return setTimeout(cb);
1424
1506
  };
1425
- }(typeof setImmediate === "function", isFunction$1(_global.postMessage));
1426
- var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
1507
+ }(typeof setImmediate === 'function', isFunction$1(_global.postMessage));
1508
+
1509
+ /**
1510
+ * Schedules a microtask or asynchronous callback as soon as possible.
1511
+ * Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
1512
+ *
1513
+ * @type {Function}
1514
+ */
1515
+ var asap = typeof queueMicrotask !== 'undefined' ? queueMicrotask.bind(_global) : typeof process !== 'undefined' && process.nextTick || _setImmediate;
1427
1516
 
1428
1517
  // *********************
1429
1518
 
@@ -1449,6 +1538,8 @@ var contentful = (function (exports) {
1449
1538
  isUndefined: isUndefined,
1450
1539
  isDate: isDate$1,
1451
1540
  isFile: isFile,
1541
+ isReactNativeBlob: isReactNativeBlob,
1542
+ isReactNative: isReactNative$1,
1452
1543
  isBlob: isBlob,
1453
1544
  isRegExp: isRegExp$2,
1454
1545
  isFunction: isFunction$1,
@@ -1506,6 +1597,16 @@ var contentful = (function (exports) {
1506
1597
  var _this;
1507
1598
  _classCallCheck(this, AxiosError);
1508
1599
  _this = _callSuper$3(this, AxiosError, [message]);
1600
+
1601
+ // Make message enumerable to maintain backward compatibility
1602
+ // The native Error constructor sets message as non-enumerable,
1603
+ // but axios < v1.13.3 had it as enumerable
1604
+ Object.defineProperty(_this, 'message', {
1605
+ value: message,
1606
+ enumerable: true,
1607
+ writable: true,
1608
+ configurable: true
1609
+ });
1509
1610
  _this.name = 'AxiosError';
1510
1611
  _this.isAxiosError = true;
1511
1612
  code && (_this.code = code);
@@ -1545,6 +1646,11 @@ var contentful = (function (exports) {
1545
1646
  var axiosError = new AxiosError(error.message, code || error.code, config, request, response);
1546
1647
  axiosError.cause = error;
1547
1648
  axiosError.name = error.name;
1649
+
1650
+ // Preserve status from the original error if not already set from response
1651
+ if (error.status != null && axiosError.status == null) {
1652
+ axiosError.status = error.status;
1653
+ }
1548
1654
  customProps && Object.assign(axiosError, customProps);
1549
1655
  return axiosError;
1550
1656
  }
@@ -1700,6 +1806,10 @@ var contentful = (function (exports) {
1700
1806
  */
1701
1807
  function defaultVisitor(value, key, path) {
1702
1808
  var arr = value;
1809
+ if (utils$1$1.isReactNative(formData) && utils$1$1.isReactNativeBlob(value)) {
1810
+ formData.append(renderKey(path, key, dots), convertValue(value));
1811
+ return false;
1812
+ }
1703
1813
  if (value && !path && _typeof$2(value) === 'object') {
1704
1814
  if (utils$1$1.endsWith(key, '{}')) {
1705
1815
  // eslint-disable-next-line no-param-reassign
@@ -1835,7 +1945,7 @@ var contentful = (function (exports) {
1835
1945
  serializedParams = utils$1$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
1836
1946
  }
1837
1947
  if (serializedParams) {
1838
- var hashmarkIndex = url.indexOf("#");
1948
+ var hashmarkIndex = url.indexOf('#');
1839
1949
  if (hashmarkIndex !== -1) {
1840
1950
  url = url.slice(0, hashmarkIndex);
1841
1951
  }
@@ -2180,7 +2290,7 @@ var contentful = (function (exports) {
2180
2290
  },
2181
2291
  headers: {
2182
2292
  common: {
2183
- 'Accept': 'application/json, text/plain, */*',
2293
+ Accept: 'application/json, text/plain, */*',
2184
2294
  'Content-Type': undefined
2185
2295
  }
2186
2296
  }
@@ -2466,7 +2576,7 @@ var contentful = (function (exports) {
2466
2576
  }, {
2467
2577
  key: "getSetCookie",
2468
2578
  value: function getSetCookie() {
2469
- return this.get("set-cookie") || [];
2579
+ return this.get('set-cookie') || [];
2470
2580
  }
2471
2581
  }, {
2472
2582
  key: Symbol.toStringTag,
@@ -2913,7 +3023,7 @@ var contentful = (function (exports) {
2913
3023
  }
2914
3024
  };
2915
3025
  utils$1$1.forEach(Object.keys(_objectSpread$2(_objectSpread$2({}, config1), config2)), function computeConfigValue(prop) {
2916
- if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
3026
+ if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') return;
2917
3027
  var merge = utils$1$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
2918
3028
  var configValue = merge(config1[prop], config2[prop], prop);
2919
3029
  utils$1$1.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
@@ -3592,7 +3702,7 @@ var contentful = (function (exports) {
3592
3702
  _request = new Request(url, {
3593
3703
  method: 'POST',
3594
3704
  body: data,
3595
- duplex: "half"
3705
+ duplex: 'half'
3596
3706
  });
3597
3707
  if (utils$1$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
3598
3708
  headers.setContentType(contentTypeHeader);
@@ -3608,13 +3718,13 @@ var contentful = (function (exports) {
3608
3718
 
3609
3719
  // Cloudflare Workers throws when credentials are defined
3610
3720
  // see https://github.com/cloudflare/workerd/issues/902
3611
- isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
3721
+ isCredentialsSupported = isRequestSupported && 'credentials' in Request.prototype;
3612
3722
  resolvedOptions = _objectSpread$2(_objectSpread$2({}, fetchOptions), {}, {
3613
3723
  signal: composedSignal,
3614
3724
  method: method.toUpperCase(),
3615
3725
  headers: headers.normalize().toJSON(),
3616
3726
  body: data,
3617
- duplex: "half",
3727
+ duplex: 'half',
3618
3728
  credentials: isCredentialsSupported ? withCredentials : undefined
3619
3729
  });
3620
3730
  request = isRequestSupported && new Request(url, resolvedOptions);
@@ -3706,7 +3816,7 @@ var contentful = (function (exports) {
3706
3816
  * - `http` for Node.js
3707
3817
  * - `xhr` for browsers
3708
3818
  * - `fetch` for fetch API-based requests
3709
- *
3819
+ *
3710
3820
  * @type {Object<string, Function|Object>}
3711
3821
  */
3712
3822
  var knownAdapters = {
@@ -3735,7 +3845,7 @@ var contentful = (function (exports) {
3735
3845
 
3736
3846
  /**
3737
3847
  * Render a rejection reason string for unknown or unsupported adapters
3738
- *
3848
+ *
3739
3849
  * @param {string} reason
3740
3850
  * @returns {string}
3741
3851
  */
@@ -3745,7 +3855,7 @@ var contentful = (function (exports) {
3745
3855
 
3746
3856
  /**
3747
3857
  * Check if the adapter is resolved (function, null, or false)
3748
- *
3858
+ *
3749
3859
  * @param {Function|null|false} adapter
3750
3860
  * @returns {boolean}
3751
3861
  */
@@ -3757,7 +3867,7 @@ var contentful = (function (exports) {
3757
3867
  * Get the first suitable adapter from the provided list.
3758
3868
  * Tries each adapter in order until a supported one is found.
3759
3869
  * Throws an AxiosError if no adapter is suitable.
3760
- *
3870
+ *
3761
3871
  * @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
3762
3872
  * @param {Object} config - Axios request configuration
3763
3873
  * @throws {AxiosError} If no suitable adapter is available
@@ -3867,7 +3977,7 @@ var contentful = (function (exports) {
3867
3977
  return Promise.reject(reason);
3868
3978
  });
3869
3979
  }
3870
- var VERSION = "1.13.5";
3980
+ var VERSION = "1.13.6";
3871
3981
  var validators$1 = {};
3872
3982
 
3873
3983
  // eslint-disable-next-line func-names
@@ -3889,7 +3999,7 @@ var contentful = (function (exports) {
3889
3999
  */
3890
4000
  validators$1.transitional = function transitional(validator, version, message) {
3891
4001
  function formatMessage(opt, desc) {
3892
- return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
4002
+ return '[Axios v' + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? '. ' + message : '');
3893
4003
  }
3894
4004
 
3895
4005
  // eslint-disable-next-line func-names