@jjrawlins/cdk-iam-policy-builder-helper 0.0.23 → 0.0.24
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.
- package/.jsii +3 -3
- package/cdk-iam-policy-builder-helper/go.mod +1 -1
- package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
- package/cdk-iam-policy-builder-helper/version +1 -1
- package/methods_list.txt +6 -0
- package/node_modules/@aws-sdk/client-iam/package.json +38 -38
- package/node_modules/@aws-sdk/client-sso/package.json +36 -36
- package/node_modules/@aws-sdk/core/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/package.json +36 -36
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +5 -5
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/axios/CHANGELOG.md +35 -0
- package/node_modules/axios/README.md +13 -10
- package/node_modules/axios/dist/axios.js +358 -289
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +286 -211
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +286 -211
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +377 -211
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +9 -5
- package/node_modules/axios/index.d.ts +10 -4
- package/node_modules/axios/lib/adapters/adapters.js +6 -4
- package/node_modules/axios/lib/adapters/fetch.js +220 -163
- package/node_modules/axios/lib/adapters/http.js +18 -0
- package/node_modules/axios/lib/adapters/xhr.js +11 -8
- package/node_modules/axios/lib/core/AxiosError.js +10 -3
- package/node_modules/axios/lib/core/dispatchRequest.js +1 -1
- package/node_modules/axios/lib/defaults/index.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +1 -3
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +73 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +13 -9
- package/node_modules/axios/lib/utils.js +7 -3
- package/node_modules/axios/package.json +12 -9
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Axios v1.
|
|
1
|
+
/*! Axios v1.12.0 Copyright (c) 2025 Matt Zabriskie and contributors */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -585,9 +585,6 @@
|
|
|
585
585
|
function _slicedToArray(arr, i) {
|
|
586
586
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
587
587
|
}
|
|
588
|
-
function _toArray(arr) {
|
|
589
|
-
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
590
|
-
}
|
|
591
588
|
function _toConsumableArray(arr) {
|
|
592
589
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
593
590
|
}
|
|
@@ -727,7 +724,7 @@
|
|
|
727
724
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
728
725
|
*/
|
|
729
726
|
function isBuffer(val) {
|
|
730
|
-
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
727
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
731
728
|
}
|
|
732
729
|
|
|
733
730
|
/**
|
|
@@ -771,7 +768,7 @@
|
|
|
771
768
|
* @param {*} val The value to test
|
|
772
769
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
773
770
|
*/
|
|
774
|
-
var isFunction = typeOfTest('function');
|
|
771
|
+
var isFunction$1 = typeOfTest('function');
|
|
775
772
|
|
|
776
773
|
/**
|
|
777
774
|
* Determine if a value is a Number
|
|
@@ -882,7 +879,7 @@
|
|
|
882
879
|
* @returns {boolean} True if value is a Stream, otherwise false
|
|
883
880
|
*/
|
|
884
881
|
var isStream = function isStream(val) {
|
|
885
|
-
return isObject(val) && isFunction(val.pipe);
|
|
882
|
+
return isObject(val) && isFunction$1(val.pipe);
|
|
886
883
|
};
|
|
887
884
|
|
|
888
885
|
/**
|
|
@@ -894,9 +891,9 @@
|
|
|
894
891
|
*/
|
|
895
892
|
var isFormData = function isFormData(thing) {
|
|
896
893
|
var kind;
|
|
897
|
-
return thing && (typeof FormData === 'function' && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === 'formdata' ||
|
|
894
|
+
return thing && (typeof FormData === 'function' && thing instanceof FormData || isFunction$1(thing.append) && ((kind = kindOf(thing)) === 'formdata' ||
|
|
898
895
|
// detect form-data instance
|
|
899
|
-
kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]'));
|
|
896
|
+
kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]'));
|
|
900
897
|
};
|
|
901
898
|
|
|
902
899
|
/**
|
|
@@ -1023,7 +1020,8 @@
|
|
|
1023
1020
|
function merge( /* obj1, obj2, obj3, ... */
|
|
1024
1021
|
) {
|
|
1025
1022
|
var _ref2 = isContextDefined(this) && this || {},
|
|
1026
|
-
caseless = _ref2.caseless
|
|
1023
|
+
caseless = _ref2.caseless,
|
|
1024
|
+
skipUndefined = _ref2.skipUndefined;
|
|
1027
1025
|
var result = {};
|
|
1028
1026
|
var assignValue = function assignValue(val, key) {
|
|
1029
1027
|
var targetKey = caseless && findKey(result, key) || key;
|
|
@@ -1034,7 +1032,9 @@
|
|
|
1034
1032
|
} else if (isArray(val)) {
|
|
1035
1033
|
result[targetKey] = val.slice();
|
|
1036
1034
|
} else {
|
|
1037
|
-
|
|
1035
|
+
if (!skipUndefined || !isUndefined(val)) {
|
|
1036
|
+
result[targetKey] = val;
|
|
1037
|
+
}
|
|
1038
1038
|
}
|
|
1039
1039
|
};
|
|
1040
1040
|
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
@@ -1057,7 +1057,7 @@
|
|
|
1057
1057
|
var _ref3 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},
|
|
1058
1058
|
allOwnKeys = _ref3.allOwnKeys;
|
|
1059
1059
|
forEach(b, function (val, key) {
|
|
1060
|
-
if (thisArg && isFunction(val)) {
|
|
1060
|
+
if (thisArg && isFunction$1(val)) {
|
|
1061
1061
|
a[key] = bind(val, thisArg);
|
|
1062
1062
|
} else {
|
|
1063
1063
|
a[key] = val;
|
|
@@ -1265,11 +1265,11 @@
|
|
|
1265
1265
|
var freezeMethods = function freezeMethods(obj) {
|
|
1266
1266
|
reduceDescriptors(obj, function (descriptor, name) {
|
|
1267
1267
|
// skip restricted props in strict mode
|
|
1268
|
-
if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
|
|
1268
|
+
if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
|
|
1269
1269
|
return false;
|
|
1270
1270
|
}
|
|
1271
1271
|
var value = obj[name];
|
|
1272
|
-
if (!isFunction(value)) return;
|
|
1272
|
+
if (!isFunction$1(value)) return;
|
|
1273
1273
|
descriptor.enumerable = false;
|
|
1274
1274
|
if ('writable' in descriptor) {
|
|
1275
1275
|
descriptor.writable = false;
|
|
@@ -1305,7 +1305,7 @@
|
|
|
1305
1305
|
* @returns {boolean}
|
|
1306
1306
|
*/
|
|
1307
1307
|
function isSpecCompliantForm(thing) {
|
|
1308
|
-
return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
1308
|
+
return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
1309
1309
|
}
|
|
1310
1310
|
var toJSONObject = function toJSONObject(obj) {
|
|
1311
1311
|
var stack = new Array(10);
|
|
@@ -1336,7 +1336,7 @@
|
|
|
1336
1336
|
};
|
|
1337
1337
|
var isAsyncFn = kindOfTest('AsyncFunction');
|
|
1338
1338
|
var isThenable = function isThenable(thing) {
|
|
1339
|
-
return thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing["catch"]);
|
|
1339
|
+
return thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing["catch"]);
|
|
1340
1340
|
};
|
|
1341
1341
|
|
|
1342
1342
|
// original code
|
|
@@ -1361,13 +1361,13 @@
|
|
|
1361
1361
|
}("axios@".concat(Math.random()), []) : function (cb) {
|
|
1362
1362
|
return setTimeout(cb);
|
|
1363
1363
|
};
|
|
1364
|
-
}(typeof setImmediate === 'function', isFunction(_global.postMessage));
|
|
1364
|
+
}(typeof setImmediate === 'function', isFunction$1(_global.postMessage));
|
|
1365
1365
|
var asap = typeof queueMicrotask !== 'undefined' ? queueMicrotask.bind(_global) : typeof process !== 'undefined' && process.nextTick || _setImmediate;
|
|
1366
1366
|
|
|
1367
1367
|
// *********************
|
|
1368
1368
|
|
|
1369
1369
|
var isIterable = function isIterable(thing) {
|
|
1370
|
-
return thing != null && isFunction(thing[iterator]);
|
|
1370
|
+
return thing != null && isFunction$1(thing[iterator]);
|
|
1371
1371
|
};
|
|
1372
1372
|
var utils$1 = {
|
|
1373
1373
|
isArray: isArray,
|
|
@@ -1390,7 +1390,7 @@
|
|
|
1390
1390
|
isFile: isFile,
|
|
1391
1391
|
isBlob: isBlob,
|
|
1392
1392
|
isRegExp: isRegExp,
|
|
1393
|
-
isFunction: isFunction,
|
|
1393
|
+
isFunction: isFunction$1,
|
|
1394
1394
|
isStream: isStream,
|
|
1395
1395
|
isURLSearchParams: isURLSearchParams,
|
|
1396
1396
|
isTypedArray: isTypedArray,
|
|
@@ -1501,9 +1501,20 @@
|
|
|
1501
1501
|
}, function (prop) {
|
|
1502
1502
|
return prop !== 'isAxiosError';
|
|
1503
1503
|
});
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1504
|
+
var msg = error && error.message ? error.message : 'Error';
|
|
1505
|
+
|
|
1506
|
+
// Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
|
|
1507
|
+
var errCode = code == null && error ? error.code : code;
|
|
1508
|
+
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
1509
|
+
|
|
1510
|
+
// Chain the original error on the standard field; non-enumerable to avoid JSON noise
|
|
1511
|
+
if (error && axiosError.cause == null) {
|
|
1512
|
+
Object.defineProperty(axiosError, 'cause', {
|
|
1513
|
+
value: error,
|
|
1514
|
+
configurable: true
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1517
|
+
axiosError.name = error && error.name || 'Error';
|
|
1507
1518
|
customProps && Object.assign(axiosError, customProps);
|
|
1508
1519
|
return axiosError;
|
|
1509
1520
|
};
|
|
@@ -1751,7 +1762,7 @@
|
|
|
1751
1762
|
* @returns {string} The encoded value.
|
|
1752
1763
|
*/
|
|
1753
1764
|
function encode(val) {
|
|
1754
|
-
return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+')
|
|
1765
|
+
return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+');
|
|
1755
1766
|
}
|
|
1756
1767
|
|
|
1757
1768
|
/**
|
|
@@ -2106,7 +2117,7 @@
|
|
|
2106
2117
|
var silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
2107
2118
|
var strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
2108
2119
|
try {
|
|
2109
|
-
return JSON.parse(data);
|
|
2120
|
+
return JSON.parse(data, this.parseReviver);
|
|
2110
2121
|
} catch (e) {
|
|
2111
2122
|
if (strictJSONParsing) {
|
|
2112
2123
|
if (e.name === 'SyntaxError') {
|
|
@@ -2881,19 +2892,22 @@
|
|
|
2881
2892
|
if (auth) {
|
|
2882
2893
|
headers.set('Authorization', 'Basic ' + btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : '')));
|
|
2883
2894
|
}
|
|
2884
|
-
var contentType;
|
|
2885
2895
|
if (utils$1.isFormData(data)) {
|
|
2886
2896
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
2887
|
-
headers.setContentType(undefined); //
|
|
2888
|
-
} else if ((
|
|
2889
|
-
//
|
|
2890
|
-
var
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
+
headers.setContentType(undefined); // browser handles it
|
|
2898
|
+
} else if (utils$1.isFunction(data.getHeaders)) {
|
|
2899
|
+
// Node.js FormData (like form-data package)
|
|
2900
|
+
var formHeaders = data.getHeaders();
|
|
2901
|
+
// Only set safe headers to avoid overwriting security headers
|
|
2902
|
+
var allowedHeaders = ['content-type', 'content-length'];
|
|
2903
|
+
Object.entries(formHeaders).forEach(function (_ref) {
|
|
2904
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
2905
|
+
key = _ref2[0],
|
|
2906
|
+
val = _ref2[1];
|
|
2907
|
+
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
2908
|
+
headers.set(key, val);
|
|
2909
|
+
}
|
|
2910
|
+
});
|
|
2897
2911
|
}
|
|
2898
2912
|
}
|
|
2899
2913
|
|
|
@@ -2999,12 +3013,15 @@
|
|
|
2999
3013
|
};
|
|
3000
3014
|
|
|
3001
3015
|
// Handle low level network errors
|
|
3002
|
-
request.onerror = function handleError() {
|
|
3003
|
-
//
|
|
3004
|
-
//
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3016
|
+
request.onerror = function handleError(event) {
|
|
3017
|
+
// Browsers deliver a ProgressEvent in XHR onerror
|
|
3018
|
+
// (message may be empty; when present, surface it)
|
|
3019
|
+
// See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
|
|
3020
|
+
var msg = event && event.message ? event.message : 'Network Error';
|
|
3021
|
+
var err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
|
|
3022
|
+
// attach the underlying event for consumers who want details
|
|
3023
|
+
err.event = event || null;
|
|
3024
|
+
reject(err);
|
|
3008
3025
|
request = null;
|
|
3009
3026
|
};
|
|
3010
3027
|
|
|
@@ -3333,35 +3350,21 @@
|
|
|
3333
3350
|
});
|
|
3334
3351
|
};
|
|
3335
3352
|
|
|
3336
|
-
var
|
|
3337
|
-
var
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3347
|
-
while (1) switch (_context.prev = _context.next) {
|
|
3348
|
-
case 0:
|
|
3349
|
-
_context.t0 = Uint8Array;
|
|
3350
|
-
_context.next = 3;
|
|
3351
|
-
return new Response(str).arrayBuffer();
|
|
3352
|
-
case 3:
|
|
3353
|
-
_context.t1 = _context.sent;
|
|
3354
|
-
return _context.abrupt("return", new _context.t0(_context.t1));
|
|
3355
|
-
case 5:
|
|
3356
|
-
case "end":
|
|
3357
|
-
return _context.stop();
|
|
3358
|
-
}
|
|
3359
|
-
}, _callee);
|
|
3360
|
-
}));
|
|
3361
|
-
return function (_x) {
|
|
3362
|
-
return _ref.apply(this, arguments);
|
|
3353
|
+
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
3354
|
+
var isFunction = utils$1.isFunction;
|
|
3355
|
+
var globalFetchAPI = function (_ref) {
|
|
3356
|
+
var fetch = _ref.fetch,
|
|
3357
|
+
Request = _ref.Request,
|
|
3358
|
+
Response = _ref.Response;
|
|
3359
|
+
return {
|
|
3360
|
+
fetch: fetch,
|
|
3361
|
+
Request: Request,
|
|
3362
|
+
Response: Response
|
|
3363
3363
|
};
|
|
3364
|
-
}()
|
|
3364
|
+
}(utils$1.global);
|
|
3365
|
+
var _utils$global = utils$1.global,
|
|
3366
|
+
ReadableStream$1 = _utils$global.ReadableStream,
|
|
3367
|
+
TextEncoder = _utils$global.TextEncoder;
|
|
3365
3368
|
var test = function test(fn) {
|
|
3366
3369
|
try {
|
|
3367
3370
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -3372,232 +3375,298 @@
|
|
|
3372
3375
|
return false;
|
|
3373
3376
|
}
|
|
3374
3377
|
};
|
|
3375
|
-
var
|
|
3376
|
-
var
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
return duplexAccessed && !hasContentType;
|
|
3386
|
-
});
|
|
3387
|
-
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
3388
|
-
var supportsResponseStream = isReadableStreamSupported && test(function () {
|
|
3389
|
-
return utils$1.isReadableStream(new Response('').body);
|
|
3390
|
-
});
|
|
3391
|
-
var resolvers = {
|
|
3392
|
-
stream: supportsResponseStream && function (res) {
|
|
3393
|
-
return res.body;
|
|
3378
|
+
var factory = function factory(env) {
|
|
3379
|
+
var _Object$assign = Object.assign({}, globalFetchAPI, env),
|
|
3380
|
+
fetch = _Object$assign.fetch,
|
|
3381
|
+
Request = _Object$assign.Request,
|
|
3382
|
+
Response = _Object$assign.Response;
|
|
3383
|
+
var isFetchSupported = isFunction(fetch);
|
|
3384
|
+
var isRequestSupported = isFunction(Request);
|
|
3385
|
+
var isResponseSupported = isFunction(Response);
|
|
3386
|
+
if (!isFetchSupported) {
|
|
3387
|
+
return false;
|
|
3394
3388
|
}
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
body: body
|
|
3430
|
-
});
|
|
3431
|
-
_context2.next = 8;
|
|
3432
|
-
return _request.arrayBuffer();
|
|
3433
|
-
case 8:
|
|
3434
|
-
return _context2.abrupt("return", _context2.sent.byteLength);
|
|
3435
|
-
case 9:
|
|
3436
|
-
if (!(utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body))) {
|
|
3437
|
-
_context2.next = 11;
|
|
3438
|
-
break;
|
|
3439
|
-
}
|
|
3440
|
-
return _context2.abrupt("return", body.byteLength);
|
|
3441
|
-
case 11:
|
|
3442
|
-
if (utils$1.isURLSearchParams(body)) {
|
|
3443
|
-
body = body + '';
|
|
3444
|
-
}
|
|
3445
|
-
if (!utils$1.isString(body)) {
|
|
3446
|
-
_context2.next = 16;
|
|
3447
|
-
break;
|
|
3448
|
-
}
|
|
3449
|
-
_context2.next = 15;
|
|
3450
|
-
return encodeText(body);
|
|
3451
|
-
case 15:
|
|
3452
|
-
return _context2.abrupt("return", _context2.sent.byteLength);
|
|
3453
|
-
case 16:
|
|
3454
|
-
case "end":
|
|
3455
|
-
return _context2.stop();
|
|
3456
|
-
}
|
|
3457
|
-
}, _callee2);
|
|
3458
|
-
}));
|
|
3459
|
-
return function getBodyLength(_x2) {
|
|
3460
|
-
return _ref2.apply(this, arguments);
|
|
3461
|
-
};
|
|
3462
|
-
}();
|
|
3463
|
-
var resolveBodyLength = /*#__PURE__*/function () {
|
|
3464
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(headers, body) {
|
|
3465
|
-
var length;
|
|
3466
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
3467
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
3468
|
-
case 0:
|
|
3469
|
-
length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
3470
|
-
return _context3.abrupt("return", length == null ? getBodyLength(body) : length);
|
|
3471
|
-
case 2:
|
|
3472
|
-
case "end":
|
|
3473
|
-
return _context3.stop();
|
|
3389
|
+
var isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
|
|
3390
|
+
var encodeText = isFetchSupported && (typeof TextEncoder === 'function' ? function (encoder) {
|
|
3391
|
+
return function (str) {
|
|
3392
|
+
return encoder.encode(str);
|
|
3393
|
+
};
|
|
3394
|
+
}(new TextEncoder()) : ( /*#__PURE__*/function () {
|
|
3395
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
3396
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3397
|
+
while (1) switch (_context.prev = _context.next) {
|
|
3398
|
+
case 0:
|
|
3399
|
+
_context.t0 = Uint8Array;
|
|
3400
|
+
_context.next = 3;
|
|
3401
|
+
return new Request(str).arrayBuffer();
|
|
3402
|
+
case 3:
|
|
3403
|
+
_context.t1 = _context.sent;
|
|
3404
|
+
return _context.abrupt("return", new _context.t0(_context.t1));
|
|
3405
|
+
case 5:
|
|
3406
|
+
case "end":
|
|
3407
|
+
return _context.stop();
|
|
3408
|
+
}
|
|
3409
|
+
}, _callee);
|
|
3410
|
+
}));
|
|
3411
|
+
return function (_x) {
|
|
3412
|
+
return _ref2.apply(this, arguments);
|
|
3413
|
+
};
|
|
3414
|
+
}()));
|
|
3415
|
+
var supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(function () {
|
|
3416
|
+
var duplexAccessed = false;
|
|
3417
|
+
var hasContentType = new Request(platform.origin, {
|
|
3418
|
+
body: new ReadableStream$1(),
|
|
3419
|
+
method: 'POST',
|
|
3420
|
+
get duplex() {
|
|
3421
|
+
duplexAccessed = true;
|
|
3422
|
+
return 'half';
|
|
3474
3423
|
}
|
|
3475
|
-
}
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3424
|
+
}).headers.has('Content-Type');
|
|
3425
|
+
return duplexAccessed && !hasContentType;
|
|
3426
|
+
});
|
|
3427
|
+
var supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(function () {
|
|
3428
|
+
return utils$1.isReadableStream(new Response('').body);
|
|
3429
|
+
});
|
|
3430
|
+
var resolvers = {
|
|
3431
|
+
stream: supportsResponseStream && function (res) {
|
|
3432
|
+
return res.body;
|
|
3433
|
+
}
|
|
3479
3434
|
};
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3435
|
+
isFetchSupported && function () {
|
|
3436
|
+
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(function (type) {
|
|
3437
|
+
!resolvers[type] && (resolvers[type] = function (res, config) {
|
|
3438
|
+
var method = res && res[type];
|
|
3439
|
+
if (method) {
|
|
3440
|
+
return method.call(res);
|
|
3441
|
+
}
|
|
3442
|
+
throw new AxiosError("Response type '".concat(type, "' is not supported"), AxiosError.ERR_NOT_SUPPORT, config);
|
|
3443
|
+
});
|
|
3444
|
+
});
|
|
3445
|
+
}();
|
|
3446
|
+
var getBodyLength = /*#__PURE__*/function () {
|
|
3447
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(body) {
|
|
3448
|
+
var _request;
|
|
3449
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
3450
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
3451
|
+
case 0:
|
|
3452
|
+
if (!(body == null)) {
|
|
3453
|
+
_context2.next = 2;
|
|
3454
|
+
break;
|
|
3455
|
+
}
|
|
3456
|
+
return _context2.abrupt("return", 0);
|
|
3457
|
+
case 2:
|
|
3458
|
+
if (!utils$1.isBlob(body)) {
|
|
3459
|
+
_context2.next = 4;
|
|
3460
|
+
break;
|
|
3461
|
+
}
|
|
3462
|
+
return _context2.abrupt("return", body.size);
|
|
3463
|
+
case 4:
|
|
3464
|
+
if (!utils$1.isSpecCompliantForm(body)) {
|
|
3465
|
+
_context2.next = 9;
|
|
3466
|
+
break;
|
|
3467
|
+
}
|
|
3468
|
+
_request = new Request(platform.origin, {
|
|
3469
|
+
method: 'POST',
|
|
3470
|
+
body: body
|
|
3471
|
+
});
|
|
3472
|
+
_context2.next = 8;
|
|
3473
|
+
return _request.arrayBuffer();
|
|
3474
|
+
case 8:
|
|
3475
|
+
return _context2.abrupt("return", _context2.sent.byteLength);
|
|
3476
|
+
case 9:
|
|
3477
|
+
if (!(utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body))) {
|
|
3478
|
+
_context2.next = 11;
|
|
3479
|
+
break;
|
|
3480
|
+
}
|
|
3481
|
+
return _context2.abrupt("return", body.byteLength);
|
|
3482
|
+
case 11:
|
|
3483
|
+
if (utils$1.isURLSearchParams(body)) {
|
|
3484
|
+
body = body + '';
|
|
3485
|
+
}
|
|
3486
|
+
if (!utils$1.isString(body)) {
|
|
3487
|
+
_context2.next = 16;
|
|
3488
|
+
break;
|
|
3489
|
+
}
|
|
3490
|
+
_context2.next = 15;
|
|
3491
|
+
return encodeText(body);
|
|
3492
|
+
case 15:
|
|
3493
|
+
return _context2.abrupt("return", _context2.sent.byteLength);
|
|
3494
|
+
case 16:
|
|
3495
|
+
case "end":
|
|
3496
|
+
return _context2.stop();
|
|
3497
|
+
}
|
|
3498
|
+
}, _callee2);
|
|
3499
|
+
}));
|
|
3500
|
+
return function getBodyLength(_x2) {
|
|
3501
|
+
return _ref3.apply(this, arguments);
|
|
3502
|
+
};
|
|
3503
|
+
}();
|
|
3504
|
+
var resolveBodyLength = /*#__PURE__*/function () {
|
|
3505
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(headers, body) {
|
|
3506
|
+
var length;
|
|
3507
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
3508
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
3509
|
+
case 0:
|
|
3510
|
+
length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
3511
|
+
return _context3.abrupt("return", length == null ? getBodyLength(body) : length);
|
|
3512
|
+
case 2:
|
|
3513
|
+
case "end":
|
|
3514
|
+
return _context3.stop();
|
|
3515
|
+
}
|
|
3516
|
+
}, _callee3);
|
|
3517
|
+
}));
|
|
3518
|
+
return function resolveBodyLength(_x3, _x4) {
|
|
3519
|
+
return _ref4.apply(this, arguments);
|
|
3520
|
+
};
|
|
3521
|
+
}();
|
|
3522
|
+
return /*#__PURE__*/function () {
|
|
3523
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(config) {
|
|
3524
|
+
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, _ref6, _ref7, _onProgress, _flush, responseData;
|
|
3525
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
3526
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
3527
|
+
case 0:
|
|
3528
|
+
_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;
|
|
3529
|
+
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
3530
|
+
composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
3531
|
+
request = null;
|
|
3532
|
+
unsubscribe = composedSignal && composedSignal.unsubscribe && function () {
|
|
3533
|
+
composedSignal.unsubscribe();
|
|
3534
|
+
};
|
|
3535
|
+
_context4.prev = 5;
|
|
3536
|
+
_context4.t0 = onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head';
|
|
3537
|
+
if (!_context4.t0) {
|
|
3538
|
+
_context4.next = 12;
|
|
3539
|
+
break;
|
|
3540
|
+
}
|
|
3541
|
+
_context4.next = 10;
|
|
3542
|
+
return resolveBodyLength(headers, data);
|
|
3543
|
+
case 10:
|
|
3544
|
+
_context4.t1 = requestContentLength = _context4.sent;
|
|
3545
|
+
_context4.t0 = _context4.t1 !== 0;
|
|
3546
|
+
case 12:
|
|
3547
|
+
if (!_context4.t0) {
|
|
3548
|
+
_context4.next = 16;
|
|
3549
|
+
break;
|
|
3550
|
+
}
|
|
3551
|
+
_request = new Request(url, {
|
|
3552
|
+
method: 'POST',
|
|
3553
|
+
body: data,
|
|
3554
|
+
duplex: "half"
|
|
3555
|
+
});
|
|
3556
|
+
if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
|
|
3557
|
+
headers.setContentType(contentTypeHeader);
|
|
3558
|
+
}
|
|
3559
|
+
if (_request.body) {
|
|
3560
|
+
_progressEventDecorat = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))), _progressEventDecorat2 = _slicedToArray(_progressEventDecorat, 2), onProgress = _progressEventDecorat2[0], flush = _progressEventDecorat2[1];
|
|
3561
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
3562
|
+
}
|
|
3563
|
+
case 16:
|
|
3564
|
+
if (!utils$1.isString(withCredentials)) {
|
|
3565
|
+
withCredentials = withCredentials ? 'include' : 'omit';
|
|
3566
|
+
}
|
|
3525
3567
|
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
}));
|
|
3537
|
-
_context4.next = 20;
|
|
3538
|
-
return fetch(request, fetchOptions);
|
|
3539
|
-
case 20:
|
|
3540
|
-
response = _context4.sent;
|
|
3541
|
-
isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
3542
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
3543
|
-
options = {};
|
|
3544
|
-
['status', 'statusText', 'headers'].forEach(function (prop) {
|
|
3545
|
-
options[prop] = response[prop];
|
|
3568
|
+
// Cloudflare Workers throws when credentials are defined
|
|
3569
|
+
// see https://github.com/cloudflare/workerd/issues/902
|
|
3570
|
+
isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
3571
|
+
resolvedOptions = _objectSpread2(_objectSpread2({}, fetchOptions), {}, {
|
|
3572
|
+
signal: composedSignal,
|
|
3573
|
+
method: method.toUpperCase(),
|
|
3574
|
+
headers: headers.normalize().toJSON(),
|
|
3575
|
+
body: data,
|
|
3576
|
+
duplex: "half",
|
|
3577
|
+
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
3546
3578
|
});
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3579
|
+
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
3580
|
+
_context4.next = 22;
|
|
3581
|
+
return isRequestSupported ? fetch(request, fetchOptions) : fetch(url, resolvedOptions);
|
|
3582
|
+
case 22:
|
|
3583
|
+
response = _context4.sent;
|
|
3584
|
+
isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
3585
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
3586
|
+
options = {};
|
|
3587
|
+
['status', 'statusText', 'headers'].forEach(function (prop) {
|
|
3588
|
+
options[prop] = response[prop];
|
|
3589
|
+
});
|
|
3590
|
+
responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
|
|
3591
|
+
_ref6 = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [], _ref7 = _slicedToArray(_ref6, 2), _onProgress = _ref7[0], _flush = _ref7[1];
|
|
3592
|
+
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, _onProgress, function () {
|
|
3593
|
+
_flush && _flush();
|
|
3594
|
+
unsubscribe && unsubscribe();
|
|
3595
|
+
}), options);
|
|
3596
|
+
}
|
|
3597
|
+
responseType = responseType || 'text';
|
|
3598
|
+
_context4.next = 28;
|
|
3599
|
+
return resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
|
|
3600
|
+
case 28:
|
|
3601
|
+
responseData = _context4.sent;
|
|
3602
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
3603
|
+
_context4.next = 32;
|
|
3604
|
+
return new Promise(function (resolve, reject) {
|
|
3605
|
+
settle(resolve, reject, {
|
|
3606
|
+
data: responseData,
|
|
3607
|
+
headers: AxiosHeaders$1.from(response.headers),
|
|
3608
|
+
status: response.status,
|
|
3609
|
+
statusText: response.statusText,
|
|
3610
|
+
config: config,
|
|
3611
|
+
request: request
|
|
3612
|
+
});
|
|
3569
3613
|
});
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
}
|
|
3590
|
-
}
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
};
|
|
3595
|
-
}
|
|
3614
|
+
case 32:
|
|
3615
|
+
return _context4.abrupt("return", _context4.sent);
|
|
3616
|
+
case 35:
|
|
3617
|
+
_context4.prev = 35;
|
|
3618
|
+
_context4.t2 = _context4["catch"](5);
|
|
3619
|
+
unsubscribe && unsubscribe();
|
|
3620
|
+
if (!(_context4.t2 && _context4.t2.name === 'TypeError' && /Load failed|fetch/i.test(_context4.t2.message))) {
|
|
3621
|
+
_context4.next = 40;
|
|
3622
|
+
break;
|
|
3623
|
+
}
|
|
3624
|
+
throw Object.assign(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request), {
|
|
3625
|
+
cause: _context4.t2.cause || _context4.t2
|
|
3626
|
+
});
|
|
3627
|
+
case 40:
|
|
3628
|
+
throw AxiosError.from(_context4.t2, _context4.t2 && _context4.t2.code, config, request);
|
|
3629
|
+
case 41:
|
|
3630
|
+
case "end":
|
|
3631
|
+
return _context4.stop();
|
|
3632
|
+
}
|
|
3633
|
+
}, _callee4, null, [[5, 35]]);
|
|
3634
|
+
}));
|
|
3635
|
+
return function (_x5) {
|
|
3636
|
+
return _ref5.apply(this, arguments);
|
|
3637
|
+
};
|
|
3638
|
+
}();
|
|
3639
|
+
};
|
|
3640
|
+
var seedCache = new Map();
|
|
3641
|
+
var getFetch = function getFetch(config) {
|
|
3642
|
+
var env = utils$1.merge.call({
|
|
3643
|
+
skipUndefined: true
|
|
3644
|
+
}, globalFetchAPI, config ? config.env : null);
|
|
3645
|
+
var fetch = env.fetch,
|
|
3646
|
+
Request = env.Request,
|
|
3647
|
+
Response = env.Response;
|
|
3648
|
+
var seeds = [Request, Response, fetch];
|
|
3649
|
+
var len = seeds.length,
|
|
3650
|
+
i = len,
|
|
3651
|
+
seed,
|
|
3652
|
+
target,
|
|
3653
|
+
map = seedCache;
|
|
3654
|
+
while (i--) {
|
|
3655
|
+
seed = seeds[i];
|
|
3656
|
+
target = map.get(seed);
|
|
3657
|
+
target === undefined && map.set(seed, target = i ? new Map() : factory(env));
|
|
3658
|
+
map = target;
|
|
3659
|
+
}
|
|
3660
|
+
return target;
|
|
3661
|
+
};
|
|
3662
|
+
getFetch();
|
|
3596
3663
|
|
|
3597
3664
|
var knownAdapters = {
|
|
3598
3665
|
http: httpAdapter,
|
|
3599
3666
|
xhr: xhrAdapter,
|
|
3600
|
-
fetch:
|
|
3667
|
+
fetch: {
|
|
3668
|
+
get: getFetch
|
|
3669
|
+
}
|
|
3601
3670
|
};
|
|
3602
3671
|
utils$1.forEach(knownAdapters, function (fn, value) {
|
|
3603
3672
|
if (fn) {
|
|
@@ -3620,7 +3689,7 @@
|
|
|
3620
3689
|
return utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
3621
3690
|
};
|
|
3622
3691
|
var adapters = {
|
|
3623
|
-
getAdapter: function getAdapter(adapters) {
|
|
3692
|
+
getAdapter: function getAdapter(adapters, config) {
|
|
3624
3693
|
adapters = utils$1.isArray(adapters) ? adapters : [adapters];
|
|
3625
3694
|
var _adapters = adapters,
|
|
3626
3695
|
length = _adapters.length;
|
|
@@ -3637,7 +3706,7 @@
|
|
|
3637
3706
|
throw new AxiosError("Unknown adapter '".concat(id, "'"));
|
|
3638
3707
|
}
|
|
3639
3708
|
}
|
|
3640
|
-
if (adapter) {
|
|
3709
|
+
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
3641
3710
|
break;
|
|
3642
3711
|
}
|
|
3643
3712
|
rejectedReasons[id || '#' + i] = adapter;
|
|
@@ -3689,7 +3758,7 @@
|
|
|
3689
3758
|
if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
|
|
3690
3759
|
config.headers.setContentType('application/x-www-form-urlencoded', false);
|
|
3691
3760
|
}
|
|
3692
|
-
var adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
|
|
3761
|
+
var adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
|
|
3693
3762
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
3694
3763
|
throwIfCancellationRequested(config);
|
|
3695
3764
|
|
|
@@ -3711,7 +3780,7 @@
|
|
|
3711
3780
|
});
|
|
3712
3781
|
}
|
|
3713
3782
|
|
|
3714
|
-
var VERSION = "1.
|
|
3783
|
+
var VERSION = "1.12.0";
|
|
3715
3784
|
|
|
3716
3785
|
var validators$1 = {};
|
|
3717
3786
|
|