eslint-import-resolver-typescript
Advanced tools
Comparing version 3.5.2 to 3.5.3
@@ -169,3 +169,21 @@ import fs from 'node:fs'; | ||
.flat(2) | ||
.filter(mappedPath => isFile(mappedPath) || isModule(mappedPath)); | ||
.filter(mappedPath => { | ||
if (mappedPath === undefined) { | ||
return false; | ||
} | ||
try { | ||
const stat = fs.statSync(mappedPath, { throwIfNoEntry: false }); | ||
if (stat === undefined) | ||
return false; | ||
if (stat.isFile()) | ||
return true; | ||
if (stat.isDirectory()) { | ||
return isModule(mappedPath); | ||
} | ||
} | ||
catch { | ||
return false; | ||
} | ||
return false; | ||
}); | ||
} | ||
@@ -172,0 +190,0 @@ if (retry && paths.length === 0) { |
{ | ||
"name": "eslint-import-resolver-typescript", | ||
"version": "3.5.2", | ||
"version": "3.5.3", | ||
"type": "module", | ||
@@ -59,5 +59,5 @@ "description": "This plugin adds `TypeScript` support to `eslint-plugin-import`", | ||
"@1stg/lib-config": "^10.3.0", | ||
"@changesets/changelog-github": "^0.4.6", | ||
"@changesets/cli": "^2.24.4", | ||
"@mozilla/glean": "^1.1.0", | ||
"@changesets/changelog-github": "^0.4.8", | ||
"@changesets/cli": "^2.25.2", | ||
"@mozilla/glean": "^1.3.0", | ||
"@types/debug": "^4.1.7", | ||
@@ -67,3 +67,3 @@ "@types/enhanced-resolve": "^3.0.7", | ||
"@types/is-glob": "^4.0.2", | ||
"@types/node": "^18.7.18", | ||
"@types/node": "^18.11.18", | ||
"@types/unist": "^2.0.6", | ||
@@ -70,0 +70,0 @@ "dummy.js": "link:dummy.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49595
897