axios 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of axios might be problematic. Click here for more details.
- package/CHANGELOG.md +29 -0
- package/dist/axios.js +10 -8
- package/dist/axios.js.map +1 -1
- package/dist/axios.min.js +1 -1
- package/dist/axios.min.js.map +1 -1
- package/dist/esm/axios.js +3 -3
- package/dist/esm/axios.js.map +1 -1
- package/dist/esm/axios.min.js +1 -1
- package/dist/esm/axios.min.js.map +1 -1
- package/dist/node/axios.cjs +11 -6
- package/dist/node/axios.cjs.map +1 -1
- package/index.d.ts +5 -4
- package/lib/adapters/http.js +8 -3
- package/lib/axios.js +3 -3
- package/lib/env/data.js +1 -1
- package/lib/utils.js +1 -1
- package/package.json +1 -1
- package/rollup.config.js +1 -1
package/dist/node/axios.cjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Axios v1.
|
1
|
+
// Axios v1.1.1 Copyright (c) 2022 Matt Zabriskie and contributors
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
const FormData$1 = require('form-data');
|
@@ -158,7 +158,7 @@ const isPlainObject = (val) => {
|
|
158
158
|
}
|
159
159
|
|
160
160
|
const prototype = getPrototypeOf(val);
|
161
|
-
return prototype === null || prototype === Object.prototype;
|
161
|
+
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
|
162
162
|
};
|
163
163
|
|
164
164
|
/**
|
@@ -1313,7 +1313,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|
1313
1313
|
return requestedURL;
|
1314
1314
|
}
|
1315
1315
|
|
1316
|
-
const VERSION = "1.
|
1316
|
+
const VERSION = "1.1.1";
|
1317
1317
|
|
1318
1318
|
/**
|
1319
1319
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
@@ -2251,9 +2251,14 @@ function httpAdapter(config) {
|
|
2251
2251
|
|
2252
2252
|
auth && headers.delete('authorization');
|
2253
2253
|
|
2254
|
-
|
2254
|
+
let path;
|
2255
|
+
|
2255
2256
|
try {
|
2256
|
-
|
2257
|
+
path = buildURL(
|
2258
|
+
parsed.pathname + parsed.search,
|
2259
|
+
config.params,
|
2260
|
+
config.paramsSerializer
|
2261
|
+
).replace(/^\?/, '');
|
2257
2262
|
} catch (err) {
|
2258
2263
|
const customErr = new Error(err.message);
|
2259
2264
|
customErr.config = config;
|
@@ -2265,7 +2270,7 @@ function httpAdapter(config) {
|
|
2265
2270
|
headers.set('Accept-Encoding', 'gzip, deflate, br', false);
|
2266
2271
|
|
2267
2272
|
const options = {
|
2268
|
-
path
|
2273
|
+
path,
|
2269
2274
|
method: method,
|
2270
2275
|
headers: headers.toJSON(),
|
2271
2276
|
agents: { http: config.httpAgent, https: config.httpsAgent },
|