@wiajs/req 1.7.18 → 1.7.19
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.19
|
|
3
3
|
* (c) 2024 Sibyl Yu, Matt Zabriskie and contributors
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3125,8 +3125,8 @@ class HttpAdapter {
|
|
|
3125
3125
|
req.on(
|
|
3126
3126
|
'response',
|
|
3127
3127
|
/**
|
|
3128
|
-
* @param {*} res
|
|
3129
|
-
* @param {*} stream
|
|
3128
|
+
* @param {*} res 原数据流
|
|
3129
|
+
* @param {*} stream 解压等处理后的数据流
|
|
3130
3130
|
*/
|
|
3131
3131
|
(res, stream) => {
|
|
3132
3132
|
if (req.destroyed) return
|
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
|
@@ -408,8 +408,8 @@ const isHttpAdapterSupported = typeof process !== 'undefined' && utils.kindOf(pr
|
|
|
408
408
|
else {
|
|
409
409
|
// 非stream模式,等待响应数据,返回数据
|
|
410
410
|
req.on('response', /**
|
|
411
|
-
* @param {*} res
|
|
412
|
-
* @param {*} stream
|
|
411
|
+
* @param {*} res 原数据流
|
|
412
|
+
* @param {*} stream 解压等处理后的数据流
|
|
413
413
|
*/ (res, stream)=>{
|
|
414
414
|
if (req.destroyed) return;
|
|
415
415
|
// 'transfer-encoding': 'chunked'时,无content-length,axios v1.2 不能自动解压
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wiajs/req",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.19",
|
|
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.25",
|
|
147
147
|
"@wiajs/agent": "^1.0.21",
|
|
148
148
|
"form-data": "^4.0.0",
|
|
149
149
|
"proxy-from-env": "^1.1.0"
|