Update checked-in dependencies
This commit is contained in:
parent
a8ade63a2f
commit
452ffd6e8e
3120 changed files with 20845 additions and 14941 deletions
3
node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js
generated
vendored
3
node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js
generated
vendored
|
|
@ -3,7 +3,7 @@
|
|||
* @author Teddy Katz
|
||||
*/
|
||||
|
||||
import Module from "module";
|
||||
import Module from "node:module";
|
||||
|
||||
/*
|
||||
* `Module.createRequire` is added in v12.2.0. It supports URL as well.
|
||||
|
|
@ -17,6 +17,7 @@ const createRequire = Module.createRequire;
|
|||
* @param {string} relativeToPath An absolute path indicating the module that `moduleName` should be resolved relative to. This must be
|
||||
* a file rather than a directory, but the file need not actually exist.
|
||||
* @returns {string} The absolute path that would result from calling `require.resolve(moduleName)` in a file located at `relativeToPath`
|
||||
* @throws {Error} When the module cannot be resolved.
|
||||
*/
|
||||
function resolve(moduleName, relativeToPath) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue