tt-uploader 1.4.0 → 1.5.0

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": "tt-uploader",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "upload component for veVod and veImageX",
5
5
  "main": "dist/index.js",
6
6
  "typings": "./types/index.d.ts",
package/types/index.d.ts CHANGED
@@ -45,6 +45,7 @@ export interface InitConfig {
45
45
  cnOrOverseas?:'cn' | 'overseas'
46
46
  videoHost?:string
47
47
  imageHost?:string
48
+ uploadHost?:string
48
49
  logFromRegion?:string
49
50
  useCloudControl?: boolean
50
51
  /**
@@ -53,6 +54,8 @@ export interface InitConfig {
53
54
  * @returns 分片大小
54
55
  */
55
56
  getSliceFunc?: (fileSize: number) => number
57
+ uploadTimeout?: number
58
+ requestTimeout?: number
56
59
  }
57
60
 
58
61
  export interface UpdateOptions {