Socket
Socket
Sign inDemoInstall

detective

Package Overview
Dependencies
2
Maintainers
38
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.7.0 to 4.7.1

6

index.js

@@ -60,2 +60,8 @@ var acorn = require('acorn');

}
else if (arg.type === 'TemplateLiteral'
&& arg.quasis.length === 1
&& arg.expressions.length === 0) {
modules.strings.push(arg.quasis[0].value.raw);
}
else {

@@ -62,0 +68,0 @@ modules.expressions.push(src.slice(arg.start, arg.end));

2

package.json
{
"name": "detective",
"description": "find all require() calls by walking the AST",
"version": "4.7.0",
"version": "4.7.1",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

@@ -6,2 +6,4 @@ var test = require('tap').test;

'require("a")',
"require('a')",
'require(`a`)',
';require("a")',

@@ -8,0 +10,0 @@ ' require("a")',

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