Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

detective

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detective - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

test/complicated.js

5

index.js
var aparse = require('acorn').parse;
var defined = require('defined');
var requireRe = /\brequire\b/;
function parse (src, opts) {

@@ -70,3 +72,4 @@ if (!opts) opts = {};

if (src.indexOf(word) == -1) return modules;
var wordRe = word === 'require' ? requireRe : RegExp('\\b' + word + '\\b');
if (!wordRe.test(src)) return modules;

@@ -73,0 +76,0 @@ walk(src, opts.parse, function (node) {

2

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

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

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