Bump eslint-plugin-import to avoid vulnerability in dependency

This commit is contained in:
Henry Mercer 2023-01-18 20:26:59 +00:00
parent 10695e6a20
commit ed9506bbaf
1660 changed files with 67726 additions and 27926 deletions

View file

@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = void 0;
var path = require("path");
var TryPath = require("./try-path");
var MappingEntry = require("./mapping-entry");
@ -68,7 +69,6 @@ function findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, ind
return doneCallback(err);
}
if (exists) {
// Not sure why we don't just return the full path? Why strip it?
return doneCallback(undefined, TryPath.getStrippedPath(tryPath));
}
if (index === tryPaths.length - 1) {
@ -89,8 +89,7 @@ function findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, ind
return doneCallback(mainFieldErr);
}
if (mainFieldMappedFile) {
// Not sure why we don't just return the full path? Why strip it?
return doneCallback(undefined, Filesystem.removeExtension(mainFieldMappedFile));
return doneCallback(undefined, mainFieldMappedFile);
}
// No field in package json was a valid option. Continue with the next path.
return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields);
@ -111,3 +110,4 @@ function findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, ind
TryPath.exhaustiveTypeException(tryPath.type);
}
}
//# sourceMappingURL=match-path-async.js.map