Update checked-in dependencies
This commit is contained in:
parent
1afca056e3
commit
6989ba7bd2
3942 changed files with 55190 additions and 132206 deletions
3
node_modules/eslint-module-utils/resolve.js
generated
vendored
3
node_modules/eslint-module-utils/resolve.js
generated
vendored
|
|
@ -5,6 +5,7 @@ exports.__esModule = true;
|
|||
const fs = require('fs');
|
||||
const Module = require('module');
|
||||
const path = require('path');
|
||||
const { getPhysicalFilename } = require('./contextCompat');
|
||||
|
||||
const hashObject = require('./hash').hashObject;
|
||||
const ModuleCache = require('./ModuleCache').default;
|
||||
|
|
@ -229,7 +230,7 @@ const erroredContexts = new Set();
|
|||
*/
|
||||
function resolve(p, context) {
|
||||
try {
|
||||
return relative(p, context.getPhysicalFilename ? context.getPhysicalFilename() : context.getFilename(), context.settings);
|
||||
return relative(p, getPhysicalFilename(context), context.settings);
|
||||
} catch (err) {
|
||||
if (!erroredContexts.has(context)) {
|
||||
// The `err.stack` string starts with `err.name` followed by colon and `err.message`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue