commander-scripts-ivan
Advanced tools
@@ -14,10 +14,12 @@ #!/usr/bin/env node | ||
| function red(...x) { | ||
| return console.error(chalk.red(x.join('\n'))) | ||
| } | ||
| process.on('unhandledRejection', (err) => { | ||
| red('unhandledRejection') | ||
| console.error(err) | ||
| throw err | ||
| }) | ||
| function red(...x) { | ||
| return console.error(chalk.red(x.join('\n'))) | ||
| } | ||
| // 创建项目指令处理 | ||
@@ -91,4 +93,4 @@ let name | ||
| .catch((error) => { | ||
| console.error(chalk.red('\n\nExecute init script failed...')) | ||
| if (error) { | ||
| console.error(chalk.red('\n\nExecute init script failed...')) | ||
| console.error(error) | ||
@@ -95,0 +97,0 @@ } |
+1
-1
| { | ||
| "name": "commander-scripts-ivan", | ||
| "version": "0.0.11", | ||
| "version": "0.0.12", | ||
| "description": "Node.js命令行脚本", | ||
@@ -5,0 +5,0 @@ "bin": "./commander-scripts-ivan.js", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
4782
0.99%111
1.83%