import-in-the-middle
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -54,3 +54,7 @@ // Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2.0 License. | ||
} else { | ||
name = name.replace(/^file:\/\//, '') | ||
if (name.startsWith('file://')) { | ||
try { | ||
name = fileURLToPath(name) | ||
} catch (e) {} | ||
} | ||
const details = parse(name) | ||
@@ -57,0 +61,0 @@ if (details) { |
{ | ||
"name": "import-in-the-middle", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Intercept imports in Node.js", | ||
@@ -8,3 +8,5 @@ "main": "index.js", | ||
"test": "c8 --check-coverage --lines 90 imhotap --runner test/runtest --files test/{hook,low-level,other}/*", | ||
"test-win": "c8 --check-coverage --lines 90 imhotap --runner test\\runtest.bat --files test/{hook,low-level,other}/*", | ||
"test:ts": "c8 imhotap --runner test/runtest --files test/typescript/*.test.mts", | ||
"test-win:ts": "c8 imhotap --runner test\\runtest.bat --files test/typescript/*.test.mts", | ||
"coverage": "c8 --reporter html imhotap --runner test/runtest --files test/{hook,low-level,other}/* && echo '\nNow open coverage/index.html\n'" | ||
@@ -11,0 +13,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
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
30819
40
698