@wiajs/req 1.7.27 → 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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @wia/req v1.7.27
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @wia/req v1.7.27
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
  */
package/dist/req.min.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @wia/req v1.7.27
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
  */
package/dist/web/req.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @wia/req v1.7.27
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
  */
package/dist/web/req.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @wia/req v1.7.27
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
  */
@@ -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.27",
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",