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

detect-import-require

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-import-require - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

3

index.js

@@ -17,5 +17,4 @@ var acorn = require('acorn')

function findImportRequire (src, opts) {
if (!src) throw new TypeError('must specify a src option')
opts = opts || {}
src = src.toString()
src = (src || '').toString()

@@ -22,0 +21,0 @@ var imports = defined(opts.imports, true)

{
"name": "detect-import-require",
"version": "1.0.3",
"version": "1.1.0",
"description": "list require and import paths from a JavaScript source",

@@ -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