@tarojs/taro-h5 3.5.0-alpha.13 → 3.5.0-alpha.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/taro-h5",
3
- "version": "3.5.0-alpha.13",
3
+ "version": "3.5.0-alpha.14",
4
4
  "description": "Taro h5 framework",
5
5
  "browser": "dist/index.esm.js",
6
6
  "main:h5": "dist/index.js",
@@ -33,14 +33,14 @@
33
33
  "author": "O2Team",
34
34
  "license": "MIT",
35
35
  "dependencies": {
36
- "@tarojs/api": "3.5.0-alpha.13",
37
- "@tarojs/router": "3.5.0-alpha.13",
38
- "@tarojs/runtime": "3.5.0-alpha.13",
36
+ "@tarojs/api": "3.5.0-alpha.14",
37
+ "@tarojs/router": "3.5.0-alpha.14",
38
+ "@tarojs/runtime": "3.5.0-alpha.14",
39
39
  "base64-js": "^1.3.0",
40
40
  "jsonp-retry": "^1.0.3",
41
41
  "mobile-detect": "^1.4.2",
42
42
  "query-string": "^7.1.1",
43
43
  "whatwg-fetch": "^3.4.0"
44
44
  },
45
- "gitHead": "1e201315913fbeb3a71f14c93a5e7a2fa490e4c4"
45
+ "gitHead": "985730e2330bfb2c3655c24d6657ed28ebeee656"
46
46
  }
@@ -13,6 +13,7 @@ const createDownloadTask = ({ url, header, success, error }): Taro.DownloadTask
13
13
  }
14
14
 
15
15
  xhr.open('GET', url, true)
16
+ xhr.withCredentials = true
16
17
  xhr.responseType = 'blob'
17
18
  setHeader(xhr, header)
18
19
 
@@ -5,7 +5,7 @@ import {
5
5
  convertObjectUrlToBlob,
6
6
  NETWORK_TIMEOUT,
7
7
  setHeader,
8
- XHR_STATS
8
+ XHR_STATS
9
9
  } from './utils'
10
10
 
11
11
  const createUploadTask = ({ url, filePath, formData = {}, name, header, timeout, fileName, success, error }): Taro.UploadTask => {
@@ -20,6 +20,7 @@ const createUploadTask = ({ url, filePath, formData = {}, name, header, timeout,
20
20
  }
21
21
 
22
22
  xhr.open('POST', url)
23
+ xhr.withCredentials = true
23
24
  setHeader(xhr, header)
24
25
 
25
26
  for (formKey in formData) {
@@ -58,6 +58,7 @@ export const convertObjectUrlToBlob = url => {
58
58
  const xhr = new XMLHttpRequest()
59
59
  xhr.open('GET', url, true)
60
60
  xhr.responseType = 'blob'
61
+ xhr.withCredentials = true
61
62
  xhr.onload = function () {
62
63
  if (this.status === 200) {
63
64
  resolve(this.response)