@icreate/ics-chromely-plugin-package
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -7,3 +7,3 @@ import icsChromelyRequest from '@icreate/ics-chromely-js-sdk'; | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-07-14 19:26:08 | ||
* @LastEditTime: 2022-07-15 13:09:37 | ||
* @Descripttion: | ||
@@ -24,3 +24,3 @@ * @FilePath: \ics-chromely-plugin-package\src\core\package.ts | ||
/** | ||
* @description: 选择升级包 | ||
* @description: 选择升级文件 | ||
*/ | ||
@@ -31,3 +31,3 @@ Package.Select = function () { | ||
/** | ||
* @description: 上传升级包 | ||
* @description: 上传升级文件 | ||
*/ | ||
@@ -38,6 +38,6 @@ Package.Upload = function (fileName, filePath) { | ||
/** | ||
* @description: 下载升级包 | ||
* @description: 下载升级文件 | ||
*/ | ||
Package.Download = function (fileName, filePath, version) { | ||
return this.OperateEx('Download', { fileName: fileName, filePath: filePath, version: version }); | ||
Package.Download = function (files) { | ||
return this.OperateEx('Download', files, 'POST'); | ||
}; | ||
@@ -44,0 +44,0 @@ /** |
@@ -13,3 +13,3 @@ (function (global, factory) { | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-07-14 19:26:08 | ||
* @LastEditTime: 2022-07-15 13:09:37 | ||
* @Descripttion: | ||
@@ -30,3 +30,3 @@ * @FilePath: \ics-chromely-plugin-package\src\core\package.ts | ||
/** | ||
* @description: 选择升级包 | ||
* @description: 选择升级文件 | ||
*/ | ||
@@ -37,3 +37,3 @@ Package.Select = function () { | ||
/** | ||
* @description: 上传升级包 | ||
* @description: 上传升级文件 | ||
*/ | ||
@@ -44,6 +44,6 @@ Package.Upload = function (fileName, filePath) { | ||
/** | ||
* @description: 下载升级包 | ||
* @description: 下载升级文件 | ||
*/ | ||
Package.Download = function (fileName, filePath, version) { | ||
return this.OperateEx('Download', { fileName: fileName, filePath: filePath, version: version }); | ||
Package.Download = function (files) { | ||
return this.OperateEx('Download', files, 'POST'); | ||
}; | ||
@@ -50,0 +50,0 @@ /** |
@@ -6,3 +6,3 @@ "use strict"; | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-07-14 19:26:08 | ||
* @LastEditTime: 2022-07-15 13:09:37 | ||
* @Descripttion: | ||
@@ -25,3 +25,3 @@ * @FilePath: \ics-chromely-plugin-package\src\core\package.ts | ||
/** | ||
* @description: 选择升级包 | ||
* @description: 选择升级文件 | ||
*/ | ||
@@ -32,3 +32,3 @@ Package.Select = function () { | ||
/** | ||
* @description: 上传升级包 | ||
* @description: 上传升级文件 | ||
*/ | ||
@@ -39,6 +39,6 @@ Package.Upload = function (fileName, filePath) { | ||
/** | ||
* @description: 下载升级包 | ||
* @description: 下载升级文件 | ||
*/ | ||
Package.Download = function (fileName, filePath, version) { | ||
return this.OperateEx('Download', { fileName: fileName, filePath: filePath, version: version }); | ||
Package.Download = function (files) { | ||
return this.OperateEx('Download', files, 'POST'); | ||
}; | ||
@@ -45,0 +45,0 @@ /** |
export default class Package { | ||
private static OperateEx; | ||
/** | ||
* @description: 选择升级包 | ||
* @description: 选择升级文件 | ||
*/ | ||
static Select(): Promise<any>; | ||
/** | ||
* @description: 上传升级包 | ||
* @description: 上传升级文件 | ||
*/ | ||
static Upload(fileName: string, filePath: string): Promise<any>; | ||
/** | ||
* @description: 下载升级包 | ||
* @description: 下载升级文件 | ||
*/ | ||
static Download(fileName: string, filePath: string, version: string): Promise<any>; | ||
static Download(files: { | ||
name: string; | ||
filePath: string; | ||
fileVersion: string; | ||
}[]): Promise<any>; | ||
/** | ||
@@ -16,0 +20,0 @@ * @description: 解压升级包 |
{ | ||
"name": "@icreate/ics-chromely-plugin-package", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "升级包和应用包上传下载和解包", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
204
17041