tt-uploader
Advanced tools
Comparing version 1.2.2-beta.0 to 1.3.0-bata.0
{ | ||
"name": "tt-uploader", | ||
"version": "1.2.2-beta.0", | ||
"version": "1.3.0-bata.0", | ||
"description": "upload component for veVod and veImageX", | ||
"main": "dist/index.js", | ||
"typings": "./types/index.d.ts", | ||
"scripts": { | ||
"build-umd": "webpack --config webpack.config.js --progress --color", | ||
"build": "rm -rf dist && npm run build-umd", | ||
"demo": "NODE_ENV=development webpack --config webpack.config.js --watch --devtool eval-cheap-module-source-map", | ||
"test": "jest --no-cache", | ||
"prepublish": "npm run build", | ||
"beta": "npm publish --tag beta" | ||
"libd": { | ||
"umdName": "TTUploader" | ||
}, | ||
@@ -23,21 +18,7 @@ "files": [ | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@babel/core": "^7.6.4", | ||
"@babel/plugin-proposal-class-properties": "^7.5.5", | ||
"@babel/plugin-transform-object-assign": "^7.2.0", | ||
"@babel/preset-env": "^7.6.3", | ||
"babel-eslint": "^10.0.3", | ||
"babel-loader": "^8.0.6", | ||
"eslint": "^6.8.0", | ||
"jest": "^24.9.0", | ||
"uglifyjs-webpack-plugin": "^2.2.0", | ||
"webpack": "^5.86.0", | ||
"webpack-cli": "^5.1.4", | ||
"worker-loader": "^2.0.0" | ||
}, | ||
"dependencies": { | ||
"crypto-js": "^4.1.1", | ||
"events": "^1.1.1", | ||
"eventemitter3": "^5.0.1", | ||
"jsrsasign": "^10.8.6" | ||
} | ||
} |
@@ -33,6 +33,5 @@ export interface STSToken { | ||
export interface Options { | ||
export interface InitConfig { | ||
userId: string | ||
appId: number | ||
region?: 'cn-north-1' | 'us-east-1' | 'ap-singapore-1' | ||
videoConfig?: VideoConfig | ||
@@ -44,2 +43,3 @@ imageConfig?: ImageConfig | ||
useServerCurrentTime?: boolean | ||
taskParallelLimit?: number | ||
} | ||
@@ -50,3 +50,2 @@ | ||
appId?: number | ||
region?: 'cn-north-1' | 'us-east-1' | 'ap-singapore-1' | ||
videoConfig?: VideoConfig | ||
@@ -57,8 +56,6 @@ imageConfig?: ImageConfig | ||
} | ||
export interface FileOption { | ||
export interface VodFileOption { | ||
file: Blob | ||
stsToken: STSToken | ||
storeKey?: string | string[] | ||
type?: 'video' | 'image' | 'object' | 'media' | ||
type: 'video' | 'image' | 'object' | 'media' | ||
callbackArgs?: string | ||
@@ -71,7 +68,6 @@ fileName?: string | ||
export interface ImageFileOption { | ||
export interface ImageXFileOption { | ||
file: Blob | Blob[] | ||
stsToken: STSToken | ||
storeKey?: string | string[] | ||
type?: 'image' | 'object' | ||
prefix?: string | ||
@@ -81,4 +77,3 @@ skipMeta?: boolean | ||
serviceId?: string | ||
processAction?: Action[] | ||
overwrite?: Boolean | ||
overwrite?: boolean | ||
} | ||
@@ -89,7 +84,8 @@ | ||
export default class TTUploader { | ||
constructor(options: Options) | ||
constructor(options: InitConfig) | ||
setOption(options: UpdateOptions): void | ||
addFile(fileOption: FileOption): string | ||
addImageFile(imageFileOption: ImageFileOption): string | ||
addImageXFile(imageFileOption: ImageFileOption): string | ||
addFile(options: VodFileOption): string | ||
addVodFile(option: VodFileOption): string | ||
addImageFile(option: ImageXFileOption): string | ||
addImageXFile(option: ImageXFileOption): string | ||
setServiceId(serviceId: string): string | ||
@@ -102,6 +98,7 @@ getServiceId(): string | ||
removeFile(key?: string): void | ||
on(eventName: 'complete' | 'error' | 'progress', callback: (info: object) => void): void | ||
once(eventName: 'complete' | 'error' | 'progress', callback: (info: object) => void): void | ||
removeListener(eventName: 'complete' | 'error' | 'progress', callback: (info: object) => void): void | ||
on(eventName: 'complete' | 'error' | 'progress', callback: (info: Record<string, any>) => void): void | ||
once(eventName: 'complete' | 'error' | 'progress', callback: (info: Record<string, any>) => void): void | ||
removeListener(eventName: 'complete' | 'error' | 'progress', callback: (info: Record<string, any>) => void): void | ||
removeAllListeners(eventName: 'complete' | 'error' | 'progress'): void | ||
use(plugin: any): void | ||
} |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
0
1692
422078
4
2
0
1
+ Addedeventemitter3@^5.0.1
+ Addedeventemitter3@5.0.1(transitive)
- Removedevents@^1.1.1
- Removedevents@1.1.1(transitive)