cleaner-node
Advanced tools
Comparing version 0.4.4 to 0.4.5
{ | ||
"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 @@ |
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
53059
1251