Socket
Socket
Sign inDemoInstall

cleaner-node

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cleaner-node - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

2

package.json
{
"name": "cleaner-node",
"version": "0.4.4",
"version": "0.4.5",
"description": "Helpful utilities and scripts to make Node projects more legible and easier for the next developer to take over.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -112,3 +112,3 @@ const fs = require('fs');

const folderStructureChildren = (parent, parentPath, childNames) => {
const folderStructureChildren = (parent, parentPath, childNames, calculateChecksums) => {
[].concat(childNames).filter(name => (isValidString(name))).forEach(childName => {

@@ -125,3 +125,3 @@ const childPath = path.join(parentPath, childName);

};
if (child.type === 'F') {
if (child.type === 'F' && calculateChecksums) {
child.checksum = checksum(childPath);

@@ -135,3 +135,3 @@ }

const children = folderContents(childPath);
folderStructureChildren(childd, childPath, children);
folderStructureChildren(child, childPath, children);
}

@@ -153,3 +153,4 @@ }

const children = folderContents(folderPath);
folderStructureChildren(root, folderPath, children);
folderStructureChildren(root, folderPath, children, calculateChecksums);
return root;
}

@@ -156,0 +157,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc