Bump eslint-plugin-import to avoid vulnerability in dependency
This commit is contained in:
parent
10695e6a20
commit
ed9506bbaf
1660 changed files with 67726 additions and 27926 deletions
8
node_modules/tsconfig-paths/lib/mapping-entry.js
generated
vendored
8
node_modules/tsconfig-paths/lib/mapping-entry.js
generated
vendored
|
|
@ -1,5 +1,6 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getAbsoluteMappingEntries = void 0;
|
||||
var path = require("path");
|
||||
/**
|
||||
* Converts an absolute baseUrl and paths to an array of absolute mapping entries.
|
||||
|
|
@ -13,7 +14,7 @@ var path = require("path");
|
|||
function getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll) {
|
||||
// Resolve all paths to absolute form once here, and sort them by
|
||||
// longest prefix once here, this saves time on each request later.
|
||||
// We need to put them in an array to preseve the sorting order.
|
||||
// We need to put them in an array to preserve the sorting order.
|
||||
var sortedKeys = sortByLongestPrefix(Object.keys(paths));
|
||||
var absolutePaths = [];
|
||||
for (var _i = 0, sortedKeys_1 = sortedKeys; _i < sortedKeys_1.length; _i++) {
|
||||
|
|
@ -22,7 +23,7 @@ function getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll) {
|
|||
pattern: key,
|
||||
paths: paths[key].map(function (pathToResolve) {
|
||||
return path.join(absoluteBaseUrl, pathToResolve);
|
||||
})
|
||||
}),
|
||||
});
|
||||
}
|
||||
// If there is no match-all path specified in the paths section of tsconfig, then try to match
|
||||
|
|
@ -30,7 +31,7 @@ function getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll) {
|
|||
if (!paths["*"] && addMatchAll) {
|
||||
absolutePaths.push({
|
||||
pattern: "*",
|
||||
paths: [absoluteBaseUrl.replace(/\/$/, "") + "/*"]
|
||||
paths: ["".concat(absoluteBaseUrl.replace(/\/$/, ""), "/*")],
|
||||
});
|
||||
}
|
||||
return absolutePaths;
|
||||
|
|
@ -49,3 +50,4 @@ function getPrefixLength(pattern) {
|
|||
var prefixLength = pattern.indexOf("*");
|
||||
return pattern.substr(0, prefixLength).length;
|
||||
}
|
||||
//# sourceMappingURL=mapping-entry.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue