Socket
Socket
Sign inDemoInstall

module-deps

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

module-deps - npm Package Compare versions

Comparing version 3.7.3 to 3.7.4

15

index.js

@@ -39,10 +39,11 @@ var fs = require('fs');

this.paths = opts.paths || process.env.NODE_PATH;
this.paths = opts.paths || process.env.NODE_PATH || '';
if (typeof this.paths === 'string') {
this.paths = process.env.NODE_PATH.split(':');
this.paths = this.paths.split(path.delimiter);
}
if (!this.paths) this.paths = [];
this.paths = this.paths.map(function (p) {
return path.resolve(self.basedir, p);
});
this.paths = this.paths
.filter(Boolean)
.map(function (p) {
return path.resolve(self.basedir, p);
});

@@ -84,3 +85,3 @@ this.transforms = [].concat(opts.transform).filter(Boolean);

self.pending ++;
if (row.entry !== false) self.entries.push(row.file);
if (row.entry !== false) self.entries.push(path.resolve(row.basedir, row.file));

@@ -87,0 +88,0 @@ self.lookupPackage(row.file, function (err, pkg) {

{
"name": "module-deps",
"version": "3.7.3",
"version": "3.7.4",
"description": "walk the dependency graph to generate json output that can be fed into browser-pack",

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc