@tmsfe/tms-core 0.0.199 → 0.0.200

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/request.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tms-core",
3
- "version": "0.0.199",
3
+ "version": "0.0.200",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
package/src/request.js CHANGED
@@ -574,7 +574,7 @@ export default class Request {
574
574
  * @returns {Promise} 返回 wx.request 的 requestTask
575
575
  */
576
576
  async createStreamRequestTask(path, params = {}) {
577
- const { param = {}, method = 'POST', header = {}, callbacks = {} } = params;
577
+ const { param = {}, method = 'POST', header = {}, callbacks = {}, timeout = 60000 } = params;
578
578
  const requestParam = await composeParam(param, this.withAuth, this.baseParam);
579
579
  const data = sign(requestParam, this.secretKey);
580
580
 
@@ -586,6 +586,7 @@ export default class Request {
586
586
  header,
587
587
  method,
588
588
  data,
589
+ timeout,
589
590
  enableHttp2: this.enableHttp2,
590
591
  enableChunked: this.enableChunked,
591
592
  responseType: this.responseType,