Comparing version 6.1.0 to 6.1.1
16
index.js
@@ -77,3 +77,5 @@ 'use strict'; | ||
const mapper = async (file, fileIndex) => { | ||
let deletedCount = 0; | ||
const mapper = async file => { | ||
file = path.resolve(cwd, file); | ||
@@ -89,6 +91,8 @@ | ||
deletedCount += 1; | ||
onProgress({ | ||
totalCount: files.length, | ||
deletedCount: fileIndex, | ||
percent: fileIndex / files.length | ||
deletedCount, | ||
percent: deletedCount / files.length | ||
}); | ||
@@ -101,8 +105,2 @@ | ||
onProgress({ | ||
totalCount: files.length, | ||
deletedCount: files.length, | ||
percent: 1 | ||
}); | ||
removedFiles.sort((a, b) => a.localeCompare(b)); | ||
@@ -109,0 +107,0 @@ |
{ | ||
"name": "del", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "Delete files and directories", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -130,4 +130,4 @@ # del | ||
{ | ||
totalFiles: number, | ||
deletedFiles: number, | ||
totalCount: number, | ||
deletedCount: number, | ||
percent: number | ||
@@ -134,0 +134,0 @@ } |
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
12703
199