Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6c92184

Browse files
committedJan 30, 2025·
error wording
1 parent 26f9584 commit 6c92184

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if (Module.isBuiltin) { // Added in node v18.6.0, v16.17.0
3535
return builtinModules.has(moduleName)
3636
}
3737
} else {
38-
throw new Error('\'require-in-the-middle\' requires Node.js >= v9.3.0, v8.10.0')
38+
throw new Error('\'require-in-the-middle\' requires Node.js >= v9.3.0 or v8.10.0')
3939
}
4040

4141
// Feature detection: This property was added in Node.js 8.9.0, the same time
@@ -47,7 +47,7 @@ if (require.resolve.paths) {
4747
return require.resolve(moduleName, { paths: [basedir] })
4848
}
4949
} else {
50-
throw new Error('\'require-in-the-middle\' requires Node.js >= v9.3.0, v8.10.0')
50+
throw new Error('\'require-in-the-middle\' requires Node.js >= v9.3.0 or v8.10.0')
5151
}
5252

5353
// 'foo/bar.js' or 'foo/bar/index.js' => 'foo/bar'

0 commit comments

Comments
 (0)