We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26f9584 commit 6c92184Copy full SHA for 6c92184
index.js
@@ -35,7 +35,7 @@ if (Module.isBuiltin) { // Added in node v18.6.0, v16.17.0
35
return builtinModules.has(moduleName)
36
}
37
} else {
38
- throw new Error('\'require-in-the-middle\' requires Node.js >= v9.3.0, v8.10.0')
+ throw new Error('\'require-in-the-middle\' requires Node.js >= v9.3.0 or v8.10.0')
39
40
41
// Feature detection: This property was added in Node.js 8.9.0, the same time
@@ -47,7 +47,7 @@ if (require.resolve.paths) {
47
return require.resolve(moduleName, { paths: [basedir] })
48
49
50
51
52
53
// 'foo/bar.js' or 'foo/bar/index.js' => 'foo/bar'
0 commit comments