require-in-the-middle
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -31,3 +31,7 @@ 'use strict' | ||
// figure out if this is the main module file, or a file inside the module | ||
var res = resolve.sync(name, { basedir: basedir }) | ||
try { | ||
var res = resolve.sync(name, { basedir: basedir }) | ||
} catch (e) { | ||
return exports | ||
} | ||
if (res !== filename) return exports // abort if not main module file | ||
@@ -34,0 +38,0 @@ } |
{ | ||
"name": "require-in-the-middle", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Module to hook into the Node.js require function", | ||
@@ -43,5 +43,5 @@ "main": "index.js", | ||
"coordinates": [ | ||
55.66657499999999, | ||
12.5801117 | ||
55.6665551, | ||
12.5801899 | ||
] | ||
} |
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
5335
85