Socket
Socket
Sign inDemoInstall

detective

Package Overview
Dependencies
6
Maintainers
39
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.2 to 5.1.0

bin/detective.js

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # detective Change Log

## 5.1.0 - 2018-02-28
* Use acorn-node parser, which matches latest Node syntax support (https://github.com/browserify/detective/pull/78)
* Add basic cli: `detective index.js` outputs dependency names (https://github.com/browserify/detective/pull/51)
## 5.0.2 - 2018-01-06

@@ -7,0 +11,0 @@ * Extend support back to 0.8 until we can determine a LTS plan.

9

index.js

@@ -1,3 +0,3 @@

var acorn = require('@browserify/acorn5-object-spread/inject')(require('acorn'));
var walk = require('acorn/dist/walk');
var acorn = require('acorn-node');
var walk = require('acorn-node/walk');
var defined = require('defined');

@@ -11,3 +11,3 @@

ecmaVersion: defined(opts.ecmaVersion, 9),
sourceType: opts.sourceType,
sourceType: defined(opts.sourceType, 'script'),
ranges: defined(opts.ranges, opts.range),

@@ -22,4 +22,3 @@ locations: defined(opts.locations, opts.loc),

),
allowHashBang: defined(opts.allowHashBang, true),
plugins: { objectSpread: true }
allowHashBang: defined(opts.allowHashBang, true)
});

@@ -26,0 +25,0 @@ }

{
"name": "detective",
"description": "find all require() calls by walking the AST",
"version": "5.0.2",
"version": "5.1.0",
"author": {

@@ -10,6 +10,7 @@ "name": "James Halliday",

},
"bin": "bin/detective.js",
"dependencies": {
"acorn": "^5.2.1",
"@browserify/acorn5-object-spread": "^5.0.1",
"defined": "^1.0.0"
"acorn-node": "^1.3.0",
"defined": "^1.0.0",
"minimist": "^1.1.1"
},

@@ -16,0 +17,0 @@ "devDependencies": {

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