Socket
Socket
Sign inDemoInstall

detective

Package Overview
Dependencies
6
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.0 to 2.4.1

test/noargs.js

13

index.js

@@ -58,9 +58,10 @@ var esprima = require('esprima-six');

if (!isRequire(node)) return;
if (node.arguments.length
&& node.arguments[0].type === 'Literal') {
modules.strings.push(node.arguments[0].value);
if (node.arguments.length) {
if (node.arguments[0].type === 'Literal') {
modules.strings.push(node.arguments[0].value);
}
else {
modules.expressions.push(escodegen.generate(node.arguments[0]));
}
}
else {
modules.expressions.push(escodegen.generate(node.arguments[0]));
}
if (opts.nodes) modules.nodes.push(node);

@@ -67,0 +68,0 @@ });

{
"name": "detective",
"description": "find all require() calls by walking the AST",
"version": "2.4.0",
"version": "2.4.1",
"repository": {

@@ -20,3 +20,3 @@ "type": "git",

"dependencies": {
"escodegen": "0.0.15",
"escodegen": "~1.1.0",
"esprima-six": "0.0.3"

@@ -23,0 +23,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc