Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

directory-tree

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

directory-tree - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

3

lib/directory-tree.js

@@ -52,2 +52,4 @@ 'use strict';

function directoryTree (path, options, onEachFile, onEachDirectory, currentDepth = 0) {
options = options || {};
if (options.depth !== undefined && options.attributes.indexOf('size') !== -1) {

@@ -58,3 +60,2 @@ throw new Error('usage of size attribute with depth option is prohibited');

const name = PATH.basename(path);
options = options || {};
path = options.normalizePath ? normalizePath(path) : path;

@@ -61,0 +62,0 @@ const item = { path, name };

{
"name": "directory-tree",
"version": "3.2.0",
"version": "3.2.1",
"description": "Convert a directory tree to a JS object.",

@@ -5,0 +5,0 @@ "repository": {

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