@wiajs/request 3.0.31 → 3.0.32
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/dist/request.cjs +2 -2
- package/dist/request.mjs +2 -2
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/dist/request.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* wia request v3.0.
|
|
2
|
+
* wia request v3.0.32
|
|
3
3
|
* (c) 2022-2024 Sibyl Yu and contributors
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1736,7 +1736,7 @@ function init(uri, opts, cb) {
|
|
|
1736
1736
|
// @ts-ignore
|
|
1737
1737
|
if (!utils.isString(opts.host) && !utils.isString(opts.hostname)) opts.hostname = '::1';
|
|
1738
1738
|
// @ts-ignore
|
|
1739
|
-
|
|
1739
|
+
opts.method = (opts.method ?? 'get').toUpperCase();
|
|
1740
1740
|
|
|
1741
1741
|
// @ts-ignore
|
|
1742
1742
|
// follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited
|
package/dist/request.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* wia request v3.0.
|
|
2
|
+
* wia request v3.0.32
|
|
3
3
|
* (c) 2022-2024 Sibyl Yu and contributors
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1733,7 +1733,7 @@ function init(uri, opts, cb) {
|
|
|
1733
1733
|
// @ts-ignore
|
|
1734
1734
|
if (!utils.isString(opts.host) && !utils.isString(opts.hostname)) opts.hostname = '::1';
|
|
1735
1735
|
// @ts-ignore
|
|
1736
|
-
|
|
1736
|
+
opts.method = (opts.method ?? 'get').toUpperCase();
|
|
1737
1737
|
|
|
1738
1738
|
// @ts-ignore
|
|
1739
1739
|
// follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited
|
package/lib/index.js
CHANGED
|
@@ -92,7 +92,7 @@ const log = Log({
|
|
|
92
92
|
// @ts-ignore
|
|
93
93
|
if (!utils.isString(opts.host) && !utils.isString(opts.hostname)) opts.hostname = '::1';
|
|
94
94
|
// @ts-ignore
|
|
95
|
-
|
|
95
|
+
opts.method = (opts.method ?? 'get').toUpperCase();
|
|
96
96
|
// @ts-ignore
|
|
97
97
|
// follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited
|
|
98
98
|
opts.maxBodyLength = opts.maxBodyLength ?? Number.POSITIVE_INFINITY;
|
package/package.json
CHANGED