Comparing version 2.0.4 to 2.0.5
@@ -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 @@ } |
{ | ||
"name": "gzipper", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "CLI for gzipping files.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
47757
341