axios 1.3.3 → 1.3.5
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 +26 -0
- package/README.md +3 -0
- package/dist/axios.js +19 -11
- package/dist/axios.js.map +1 -1
- package/dist/axios.min.js +1 -1
- package/dist/axios.min.js.map +1 -1
- package/dist/browser/axios.cjs +17 -11
- package/dist/browser/axios.cjs.map +1 -1
- package/dist/esm/axios.js +17 -11
- 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 +48 -36
- package/dist/node/axios.cjs.map +1 -1
- package/index.d.cts +1 -1
- package/index.d.ts +1 -1
- package/lib/adapters/http.js +33 -25
- package/lib/core/Axios.js +11 -5
- package/lib/core/AxiosHeaders.js +1 -3
- package/lib/env/data.js +1 -1
- package/lib/platform/browser/classes/Blob.js +3 -0
- package/lib/platform/browser/index.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,31 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [1.3.5](https://github.com/axios/axios/compare/v1.3.4...v1.3.5) (2023-04-05)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* **headers:** fixed isValidHeaderName to support full list of allowed characters; ([#5584](https://github.com/axios/axios/issues/5584)) ([e7decef](https://github.com/axios/axios/commit/e7decef6a99f4627e27ed9ea5b00ce8e201c3841))
|
9
|
+
* **params:** re-added the ability to set the function as `paramsSerializer` config; ([#5633](https://github.com/axios/axios/issues/5633)) ([a56c866](https://github.com/axios/axios/commit/a56c8661209d5ce5a645a05f294a0e08a6c1f6b3))
|
10
|
+
|
11
|
+
### Contributors to this release
|
12
|
+
|
13
|
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+28/-10 (#5633 #5584 )")
|
14
|
+
|
15
|
+
## [1.3.4](https://github.com/axios/axios/compare/v1.3.3...v1.3.4) (2023-02-22)
|
16
|
+
|
17
|
+
|
18
|
+
### Bug Fixes
|
19
|
+
|
20
|
+
* **blob:** added a check to make sure the Blob class is available in the browser's global scope; ([#5548](https://github.com/axios/axios/issues/5548)) ([3772c8f](https://github.com/axios/axios/commit/3772c8fe74112a56e3e9551f894d899bc3a9443a))
|
21
|
+
* **http:** fixed regression bug when handling synchronous errors inside the adapter; ([#5564](https://github.com/axios/axios/issues/5564)) ([a3b246c](https://github.com/axios/axios/commit/a3b246c9de5c3bc4b5a742e15add55b375479451))
|
22
|
+
|
23
|
+
### Contributors to this release
|
24
|
+
|
25
|
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+38/-26 (#5564 )")
|
26
|
+
- <img src="https://avatars.githubusercontent.com/u/19550000?v=4&s=18" alt="avatar" width="18"/> [lcysgsg](https://github.com/lcysgsg "+4/-0 (#5548 )")
|
27
|
+
- <img src="https://avatars.githubusercontent.com/u/5492927?v=4&s=18" alt="avatar" width="18"/> [Michael Di Prisco](https://github.com/Cadienvan "+3/-0 (#5444 )")
|
28
|
+
|
3
29
|
## [1.3.3](https://github.com/axios/axios/compare/v1.3.2...v1.3.3) (2023-02-13)
|
4
30
|
|
5
31
|
|
package/README.md
CHANGED
@@ -492,6 +492,9 @@ These are the available config options for making requests. Only the `url` is re
|
|
492
492
|
// Only either `socketPath` or `proxy` can be specified.
|
493
493
|
// If both are specified, `socketPath` is used.
|
494
494
|
socketPath: null, // default
|
495
|
+
|
496
|
+
// `transport` determines the transport method that will be used to make the request. If defined, it will be used. Otherwise, if `maxRedirects` is 0, the default `http` or `https` library will be used, depending on the protocol specified in `protocol`. Otherwise, the `httpFollow` or `httpsFollow` library will be used, again depending on the protocol, which can handle redirects.
|
497
|
+
transport: undefined, // default
|
495
498
|
|
496
499
|
// `httpAgent` and `httpsAgent` define a custom agent to be used when performing http
|
497
500
|
// and https requests, respectively, in node.js. This allows options to be added like
|
package/dist/axios.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Axios v1.3.
|
1
|
+
// Axios v1.3.5 Copyright (c) 2023 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) :
|
@@ -1211,6 +1211,8 @@
|
|
1211
1211
|
|
1212
1212
|
var FormData$1 = typeof FormData !== 'undefined' ? FormData : null;
|
1213
1213
|
|
1214
|
+
var Blob$1 = typeof Blob !== 'undefined' ? Blob : null;
|
1215
|
+
|
1214
1216
|
/**
|
1215
1217
|
* Determine if we're running in a standard browser environment
|
1216
1218
|
*
|
@@ -1255,7 +1257,7 @@
|
|
1255
1257
|
classes: {
|
1256
1258
|
URLSearchParams: URLSearchParams$1,
|
1257
1259
|
FormData: FormData$1,
|
1258
|
-
Blob: Blob
|
1260
|
+
Blob: Blob$1
|
1259
1261
|
},
|
1260
1262
|
isStandardBrowserEnv: isStandardBrowserEnv,
|
1261
1263
|
isStandardBrowserWebWorkerEnv: isStandardBrowserWebWorkerEnv,
|
@@ -1535,9 +1537,9 @@
|
|
1535
1537
|
}
|
1536
1538
|
return tokens;
|
1537
1539
|
}
|
1538
|
-
function isValidHeaderName(str) {
|
1539
|
-
return /^[-_a-zA-
|
1540
|
-
}
|
1540
|
+
var isValidHeaderName = function isValidHeaderName(str) {
|
1541
|
+
return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
1542
|
+
};
|
1541
1543
|
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
1542
1544
|
if (utils.isFunction(filter)) {
|
1543
1545
|
return filter.call(this, value, header);
|
@@ -2426,7 +2428,7 @@
|
|
2426
2428
|
return config;
|
2427
2429
|
}
|
2428
2430
|
|
2429
|
-
var VERSION = "1.3.
|
2431
|
+
var VERSION = "1.3.5";
|
2430
2432
|
|
2431
2433
|
var validators$1 = {};
|
2432
2434
|
|
@@ -2553,11 +2555,17 @@
|
|
2553
2555
|
clarifyTimeoutError: validators.transitional(validators["boolean"])
|
2554
2556
|
}, false);
|
2555
2557
|
}
|
2556
|
-
if (paramsSerializer
|
2557
|
-
|
2558
|
-
|
2559
|
-
|
2560
|
-
|
2558
|
+
if (paramsSerializer != null) {
|
2559
|
+
if (utils.isFunction(paramsSerializer)) {
|
2560
|
+
config.paramsSerializer = {
|
2561
|
+
serialize: paramsSerializer
|
2562
|
+
};
|
2563
|
+
} else {
|
2564
|
+
validator.assertOptions(paramsSerializer, {
|
2565
|
+
encode: validators["function"],
|
2566
|
+
serialize: validators["function"]
|
2567
|
+
}, true);
|
2568
|
+
}
|
2561
2569
|
}
|
2562
2570
|
|
2563
2571
|
// Set config.method
|