Socket
Socket
Sign inDemoInstall

folder-hash

Package Overview
Dependencies
7
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

CHANGELOG.md

8

index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc