@wiajs/req 1.7.26 → 1.7.28
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/node/req.cjs +3 -3
- package/dist/req.js +1 -1
- package/dist/req.min.js +1 -1
- package/dist/web/req.cjs +1 -1
- package/dist/web/req.mjs +1 -1
- package/lib/adapters/http.js +2 -2
- package/package.json +2 -2
package/dist/node/req.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wia/req v1.7.
|
|
2
|
+
* @wia/req v1.7.28
|
|
3
3
|
* (c) 2024 Sibyl Yu, Matt Zabriskie and contributors
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3037,8 +3037,8 @@ class HttpAdapter {
|
|
|
3037
3037
|
R = await new Promise((resolve, reject) => {
|
|
3038
3038
|
_.emitter.once('abort', reject);
|
|
3039
3039
|
|
|
3040
|
-
options.stream = config.stream;
|
|
3041
|
-
options.decompress = config.decompress;
|
|
3040
|
+
options.stream = config.stream ?? false;
|
|
3041
|
+
options.decompress = config.decompress ?? true;
|
|
3042
3042
|
// Create the request,promise false: return stream
|
|
3043
3043
|
// log.debug('request', {options});
|
|
3044
3044
|
const req = transport ? transport.request(options) : request(options);
|
package/dist/req.js
CHANGED
package/dist/req.min.js
CHANGED
package/dist/web/req.cjs
CHANGED
package/dist/web/req.mjs
CHANGED
package/lib/adapters/http.js
CHANGED
|
@@ -358,8 +358,8 @@ const isHttpAdapterSupported = typeof process !== 'undefined' && utils.kindOf(pr
|
|
|
358
358
|
// 发起异步请求
|
|
359
359
|
R = await new Promise((resolve, reject)=>{
|
|
360
360
|
_.emitter.once('abort', reject);
|
|
361
|
-
options.stream = config.stream;
|
|
362
|
-
options.decompress = config.decompress;
|
|
361
|
+
options.stream = config.stream ?? false;
|
|
362
|
+
options.decompress = config.decompress ?? true;
|
|
363
363
|
// Create the request,promise false: return stream
|
|
364
364
|
// log.debug('request', {options});
|
|
365
365
|
const req = transport ? transport.request(options) : request(options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wiajs/req",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.28",
|
|
4
4
|
"description": "Promise And Stream based AXIOS client for the browser and node.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
},
|
|
144
144
|
"dependencies": {
|
|
145
145
|
"@wiajs/log": "^4.3.19",
|
|
146
|
-
"@wiajs/request": "^3.0.
|
|
146
|
+
"@wiajs/request": "^3.0.32",
|
|
147
147
|
"@wiajs/agent": "^1.0.21",
|
|
148
148
|
"form-data": "^4.0.0",
|
|
149
149
|
"proxy-from-env": "^1.1.0"
|