Socket
Socket
Sign inDemoInstall

dependency-tree

Package Overview
Dependencies
Maintainers
3
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependency-tree - npm Package Compare versions

Comparing version 10.0.8 to 10.0.9

22

index.js

@@ -99,5 +99,5 @@ 'use strict';

for (const dep of dependencies) {
for (const dependency of dependencies) {
const result = cabinet({
partial: dep,
partial: dependency,
filename: config.filename,

@@ -114,4 +114,4 @@ directory: config.directory,

if (!result) {
debug(`skipping an empty filepath resolution for partial: ${dep}`);
config.nonExistent.push(dep);
debug(`skipping an empty filepath resolution for partial: ${dependency}`);
config.nonExistent.push(dependency);
continue;

@@ -123,4 +123,4 @@ }

if (!exists) {
config.nonExistent.push(dep);
debug(`skipping non-empty but non-existent resolution: ${result} for partial: ${dep}`);
config.nonExistent.push(dependency);
debug(`skipping non-empty but non-existent resolution: ${result} for partial: ${dependency}`);
continue;

@@ -164,5 +164,5 @@ }

for (const dep of dependencies) {
for (const dependency of dependencies) {
const localConfig = config.clone();
localConfig.filename = dep;
localConfig.filename = dependency;

@@ -174,3 +174,3 @@ if (localConfig.isListForm) {

} else {
subTree[dep] = traverse(localConfig);
subTree[dependency] = traverse(localConfig);
}

@@ -194,5 +194,7 @@ }

for (const { elem, i } of Object.entries(deduped)) {
let i = 0;
for (const elem of deduped) {
nonExistent[i] = elem;
i++;
}
}
{
"name": "dependency-tree",
"version": "10.0.8",
"version": "10.0.9",
"description": "Get the dependency tree of a module",

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

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