require-in-the-middle
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -24,2 +24,9 @@ 'use strict' | ||
// Ugly hack to make sure we don't process modules that haven't been | ||
// completely evaluated yet. This happens for circular dependencies. | ||
if (exports !== null && | ||
typeof exports === 'object' && | ||
!Array.isArray(exports) && | ||
Object.keys(exports).length === 0) return exports | ||
var filename = Module._resolveFilename(request, parent) | ||
@@ -26,0 +33,0 @@ var core = filename.indexOf(path.sep) === -1 |
{ | ||
"name": "require-in-the-middle", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Module to hook into the Node.js require function", | ||
@@ -18,3 +18,3 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "standard && tape test.js" | ||
"test": "standard && tape test/test.js" | ||
}, | ||
@@ -44,5 +44,5 @@ "repository": { | ||
"coordinates": [ | ||
55.6665607, | ||
12.5801843 | ||
37.42921750000001, | ||
-122.1225455 | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
7552
8
141
7