Socket
Socket
Sign inDemoInstall

module-deps

Package Overview
Dependencies
35
Maintainers
4
Versions
139
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.2 to 4.0.3

test/row_expose_name_is_file_transform.js

6

index.js

@@ -314,2 +314,6 @@ var fs = require('fs');

self.resolve(id, parent, function (err, file, pkg, fakePath) {
// this is checked early because parent.modules is also modified
// by this function.
var builtin = has(parent.modules, id);
if (rec.expose) {

@@ -370,3 +374,3 @@ // Set options.expose to make the resolved pathname available to the

.pipe(self.getTransforms(fakePath || file, pkg, {
builtin: has(parent.modules, id)
builtin: builtin
}))

@@ -373,0 +377,0 @@ .pipe(concat(function (body) {

2

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

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

@@ -14,3 +14,3 @@ var mdeps = require('../');

var pkg = JSON.parse(fs.readFileSync(dirname + pkg_.dir + '/package.json'));
pkg.__dirname = dirname + pkg_.dir;
pkg.__dirname = path.join(dirname, pkg_.dir);

@@ -17,0 +17,0 @@ t.deepEqual(pkg_, pkg);

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