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 0.7.1 to 0.8.0

test/noparse.js

9

index.js

@@ -12,2 +12,4 @@ var fs = require('fs');

module.exports = function (mains, opts) {
if (!opts) opts = {};
if (!Array.isArray(mains)) mains = [ mains ].filter(Boolean);

@@ -24,5 +26,3 @@ mains = mains.map(function (file) {

if (!opts) opts = {};
var transforms = [].concat(opts.transform).filter(Boolean);
var resolve = opts.resolve || browserResolve;

@@ -105,5 +105,8 @@

var deps;
if (/\.json$/.test(file)) {
if (opts.noParse && opts.noParse.indexOf(file) >= 0) {
deps = [];
}
else if (/\.json$/.test(file)) {
deps = [];
}
else {

@@ -110,0 +113,0 @@ try { deps = detective(src) }

{
"name": "module-deps",
"version": "0.7.1",
"version": "0.8.0",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc