@tarojs/taro-h5 2.2.14 → 2.2.18

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/index.cjs.js CHANGED
@@ -5092,6 +5092,7 @@ var createUploadTask = function createUploadTask(_ref) {
5092
5092
  };
5093
5093
 
5094
5094
  xhr.onerror = function (e) {
5095
+ clearTimeout(timeout);
5095
5096
  error({
5096
5097
  errMsg: "".concat(apiName, ":fail ").concat(e.message)
5097
5098
  });
@@ -5130,6 +5131,7 @@ var createUploadTask = function createUploadTask(_ref) {
5130
5131
  */
5131
5132
 
5132
5133
  var abort = function abort() {
5134
+ clearTimeout(timeout);
5133
5135
  xhr.abort();
5134
5136
  };
5135
5137
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/taro-h5",
3
- "version": "2.2.14",
3
+ "version": "2.2.18",
4
4
  "description": "Taro h5 framework",
5
5
  "main:h5": "src/index.js",
6
6
  "main": "dist/index.cjs.js",
@@ -45,7 +45,7 @@
45
45
  "@babel/plugin-proposal-object-rest-spread": "^7.3.4",
46
46
  "@babel/plugin-transform-react-jsx": "^7.2.2",
47
47
  "@babel/preset-env": "^7.3.4",
48
- "@tarojs/taro": "^2.2.14",
48
+ "@tarojs/taro": "2.2.18",
49
49
  "babel-core": "7.0.0-bridge.0",
50
50
  "babel-jest": "24.4.0",
51
51
  "eslint": "^4.18.2",
@@ -66,5 +66,5 @@
66
66
  "rollup-plugin-postcss": "^2.0.3",
67
67
  "rollup-pluginutils": "^2.3.3"
68
68
  },
69
- "gitHead": "140e78e8c62e20c73e420edb787e66ebec6c52b9"
69
+ "gitHead": "53c891ced0d121f940dbabc8294afc96b10690d4"
70
70
  }
@@ -55,6 +55,7 @@ const createUploadTask = ({ url, filePath, fileName, formData, name, header, suc
55
55
  }
56
56
 
57
57
  xhr.onerror = e => {
58
+ clearTimeout(timeout)
58
59
  error({
59
60
  errMsg: `${apiName}:fail ${e.message}`
60
61
  })
@@ -95,6 +96,7 @@ const createUploadTask = ({ url, filePath, fileName, formData, name, header, suc
95
96
  * 中断任务
96
97
  */
97
98
  const abort = () => {
99
+ clearTimeout(timeout)
98
100
  xhr.abort()
99
101
  }
100
102