detect-import-require
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6128
68