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.5.2 to 3.5.3

17

index.js

@@ -142,3 +142,3 @@ var fs = require('fs');

this.emit('file', file, id);
return rs.pipe(this.getTransforms(file, pkg));
return rs;
};

@@ -290,5 +290,12 @@

self.readFile(file, id, pkg).pipe(concat(function (body) {
fromSource(body.toString('utf8'));
}));
self.readFile(file, id, pkg)
.pipe(
has(parent.modules, id)
? through()
: self.getTransforms(file, pkg)
)
.pipe(concat(function (body) {
fromSource(body.toString('utf8'));
}))
;

@@ -453,3 +460,3 @@ function fromSource (src) {

function has (obj, key) {
return Object.prototype.hasOwnProperty.call(obj, key);
return obj && Object.prototype.hasOwnProperty.call(obj, key);
}

@@ -456,0 +463,0 @@

{
"name": "module-deps",
"version": "3.5.2",
"version": "3.5.3",
"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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc