Socket
Socket
Sign inDemoInstall

detective-cjs

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detective-cjs - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

5

index.js

@@ -23,3 +23,6 @@ 'use strict';

if (types.isPlainRequire(node)) {
dependencies.push(extractDependencyFromRequire(node));
const result = extractDependencyFromRequire(node);
if (result) {
dependencies.push(result);
}
} else if (types.isMainScopedRequire(node)) {

@@ -26,0 +29,0 @@ dependencies.push(extractDependencyFromMainRequire(node));

2

package.json
{
"name": "detective-cjs",
"version": "3.1.0",
"version": "3.1.1",
"description": "Get the dependencies of a CommonJS module by traversing its AST",

@@ -5,0 +5,0 @@ "main": "index.js",

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