@lcap/cli
Advanced tools
@@ -105,3 +105,12 @@ "use strict"; | ||
| log_1.logger.info(`硬盘文件读取完成,共 ${log_1.color.yellow(files.length)} 个文件,` + | ||
| `${log_1.color.yellow((size / 1024 / 1024).toFixed(2))} MB,开始上传...`); | ||
| `${log_1.color.yellow((size / 1024 / 1024).toFixed(2))} MB`); | ||
| log_1.logger.info(`开始删除旧文件...`); | ||
| await Promise.all(dirFiles.map(async (dir, index) => { | ||
| if (dir.length === 0) { | ||
| return; | ||
| } | ||
| const list = await client.listFiles(mappeds[index].to); | ||
| await client.deleteFiles(...list); | ||
| })); | ||
| log_1.logger.info(`开始上传文件...`); | ||
| await client.putFiles(files, metaData, (file, index) => { | ||
@@ -108,0 +117,0 @@ log_1.spinner.text = |
+3
-3
| { | ||
| "name": "@lcap/cli", | ||
| "version": "2.3.5", | ||
| "version": "2.3.6", | ||
| "description": "utils for lcap", | ||
@@ -25,4 +25,4 @@ "author": "sufangzhou", | ||
| "engines": { | ||
| "node": ">=16", | ||
| "pnpm": ">=8" | ||
| "node": ">=18", | ||
| "pnpm": ">=9" | ||
| }, | ||
@@ -29,0 +29,0 @@ "devDependencies": { |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
78451
0.41%2403
0.38%