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.10 to 0.4.11

2

package.json
{
"name": "cleaner-node",
"version": "0.4.10",
"version": "0.4.11",
"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",

@@ -130,9 +130,8 @@ const fs = require('fs');

const folderStructureChildren = (parent, parentPath, childNames, calculateChecksums) => {
[].concat(childNames).filter(name => (isValidString(name))).forEach(childName => {
const childPath = path.join(parentPath, childName);
const folderStructureChildren = (parent, childPaths, calculateChecksums) => {
[].concat(childPaths).filter(name => (isValidString(name))).forEach(childPath => {
const stats = getStats(childPath);
if (stats && (stats.isDirectory() || stats.isFile())) {
const child = {
name : childName,
name : path.basename(childPath),
type : (stats.isDirectory() ? 'D' : 'F'),

@@ -152,3 +151,3 @@ size : stats.size,

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

@@ -163,3 +162,3 @@ }

path : folderPath,
name : stats.name,
name : path.basename(folderPath),
type : 'D',

@@ -170,4 +169,4 @@ size : stats.size,

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

@@ -174,0 +173,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