+10
-4
@@ -66,3 +66,3 @@ const zlib = require('zlib') | ||
| */ | ||
| [compileFolderRecursively](target, pending = 0) { | ||
| [compileFolderRecursively](target, pending = 0, files = []) { | ||
| try { | ||
@@ -80,2 +80,3 @@ const filesList = fs.readdirSync(target) | ||
| ) { | ||
| files.push(file) | ||
| this[compressFile]( | ||
@@ -92,3 +93,8 @@ file, | ||
| if (!pending) { | ||
| this.logger.success(`All files have been compressed.`, true) | ||
| this.logger.success( | ||
| `${files.length} ${ | ||
| files.length > 1 ? 'files have' : 'file has' | ||
| } been compressed.`, | ||
| true | ||
| ) | ||
| } | ||
@@ -99,3 +105,3 @@ } | ||
| --pending | ||
| this[compileFolderRecursively](filePath, pending) | ||
| this[compileFolderRecursively](filePath, pending, files) | ||
| } | ||
@@ -163,3 +169,3 @@ }) | ||
| this.logger.warn(`${compressionType} -> ${optionsStr.slice(0, -2)}`) | ||
| this.logger.warn(`${compressionType} -> ${optionsStr.slice(0, -2)}`, true) | ||
| } | ||
@@ -166,0 +172,0 @@ } |
+1
-1
| { | ||
| "name": "gzipper", | ||
| "version": "2.0.4", | ||
| "version": "2.0.5", | ||
| "description": "CLI for gzipping files.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed 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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
47757
0.42%341
1.79%