require-in-the-middle
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -11,4 +11,2 @@ 'use strict' | ||
const builtins = Module.builtinModules | ||
// 'foo/bar.js' or 'foo/bar/index.js' => 'foo/bar' | ||
@@ -55,3 +53,3 @@ const normalize = /([/\\]index)?(\.js)?$/ | ||
const filename = Module._resolveFilename(id, this) | ||
const core = builtins.includes(filename) | ||
const core = filename.includes(path.sep) === false | ||
let moduleName, basedir | ||
@@ -58,0 +56,0 @@ |
{ | ||
"name": "require-in-the-middle", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "Module to hook into the Node.js require function", | ||
@@ -15,3 +15,2 @@ "main": "index.js", | ||
"roundround": "^0.2.0", | ||
"semver": "^6.3.0", | ||
"standard": "^14.3.1", | ||
@@ -46,5 +45,5 @@ "tape": "^4.11.0" | ||
"coordinates": [ | ||
55.776587, | ||
12.592619 | ||
55.776571, | ||
12.592961 | ||
] | ||
} |
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
5
10860
134