folder-hash
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -112,5 +112,7 @@ const crypto = require('crypto'), | ||
return fs.promises.readdir(folderPath, { withFileTypes: true }).then(files => { | ||
const children = files.sort().map(child => { | ||
return hashElementPromise(child, folderPath, options); | ||
}); | ||
const children = files | ||
.sort((a, b) => a.name.localeCompare(b.name)) | ||
.map(child => { | ||
return hashElementPromise(child, folderPath, options); | ||
}); | ||
@@ -117,0 +119,0 @@ return Promise.all(children).then(children => { |
{ | ||
"name": "folder-hash", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Create a hash checksum over a folder and its content - its children and their content", | ||
@@ -51,3 +51,3 @@ "main": "index.js", | ||
"nyc": "^15.0.0", | ||
"prettier": "~2.1.1" | ||
"prettier": "~2.2.1" | ||
}, | ||
@@ -54,0 +54,0 @@ "engines": { |
32291
7
411