clean-my-mac-cli
Advanced tools
+4
-7
@@ -1235,14 +1235,11 @@ #!/usr/bin/env node | ||
| const results = []; | ||
| const executing = []; | ||
| const executing = /* @__PURE__ */ new Set(); | ||
| for (const task of tasks) { | ||
| const p = task().then((result) => { | ||
| results.push(result); | ||
| executing.delete(p); | ||
| }); | ||
| executing.push(p); | ||
| if (executing.length >= concurrency) { | ||
| executing.add(p); | ||
| if (executing.size >= concurrency) { | ||
| await Promise.race(executing); | ||
| executing.splice( | ||
| executing.findIndex((e) => e === p), | ||
| 1 | ||
| ); | ||
| } | ||
@@ -1249,0 +1246,0 @@ } |
+1
-1
| { | ||
| "name": "clean-my-mac-cli", | ||
| "version": "1.1.0", | ||
| "version": "1.1.1", | ||
| "description": "Open source CLI tool to clean your Mac - similar to CleanMyMac", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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 2 instances 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 2 instances in 1 package
67335
-0.06%1797
-0.17%