Socket
Socket
Sign inDemoInstall

module-deps

Package Overview
Dependencies
34
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.7.6 to 3.7.7

test/cache_expose.js

34

index.js

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

this.pending = 0;
this.inputPending = 0;

@@ -302,2 +303,3 @@ var topfile = path.join(this.basedir, '__fake.js');

var rec = {};
var input;
if (typeof id === 'object') {

@@ -307,2 +309,4 @@ rec = copy(id);

id = rec.file || rec.id;
input = true;
this.inputPending ++;
}

@@ -325,2 +329,3 @@

if (--self.pending === 0) self.push(null);
if (input) --self.inputPending;
return cb(null, undefined);

@@ -340,2 +345,3 @@ }

if (--self.pending === 0) self.push(null);
if (input) --self.inputPending;
self.emit('missing', id, parent);

@@ -347,2 +353,3 @@ return cb && cb(null, undefined);

if (-- self.pending === 0) self.push(null);
if (input) --self.inputPending;
return cb && cb(null, file);

@@ -389,14 +396,19 @@ }

deps.forEach(function (id) {
if (opts.filter && !opts.filter(id)) {
resolved[id] = false;
if (--p === 0) done();
return;
}
self.walk(id, current, function (err, r) {
resolved[id] = r;
if (--p === 0) done();
if (input) --self.inputPending;
(function resolve () {
if (self.inputPending > 0) return setTimeout(resolve);
deps.forEach(function (id) {
if (opts.filter && !opts.filter(id)) {
resolved[id] = false;
if (--p === 0) done();
return;
}
self.walk(id, current, function (err, r) {
resolved[id] = r;
if (--p === 0) done();
});
});
});
if (deps.length === 0) done();
if (deps.length === 0) done();
})();

@@ -403,0 +415,0 @@ function done () {

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

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc