eslint-import-resolver-typescript
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -5,3 +5,3 @@ import fs from 'node:fs'; | ||
import debug from 'debug'; | ||
import { ResolverFactory, } from 'enhanced-resolve'; | ||
import { CachedInputFileSystem, ResolverFactory, } from 'enhanced-resolve'; | ||
import { createPathsMatcher, getTsconfig } from 'get-tsconfig'; | ||
@@ -70,2 +70,3 @@ import isCore from 'is-core-module'; | ||
const RELATIVE_PATH_PATTERN = /^\.{1,2}(?:\/.*)?$/; | ||
let previousOptions; | ||
let cachedOptions; | ||
@@ -83,3 +84,4 @@ let mappersCachedOptions; | ||
export function resolve(source, file, options) { | ||
if (!cachedOptions || cachedOptions !== options) { | ||
if (!cachedOptions || previousOptions !== options) { | ||
previousOptions = options; | ||
cachedOptions = { | ||
@@ -91,3 +93,3 @@ ...options, | ||
mainFields: options?.mainFields ?? defaultMainFields, | ||
fileSystem, | ||
fileSystem: new CachedInputFileSystem(fileSystem, 5 * 1000), | ||
useSyncFileSystemCalls: true, | ||
@@ -94,0 +96,0 @@ }; |
{ | ||
"name": "eslint-import-resolver-typescript", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "This plugin adds `TypeScript` support to `eslint-plugin-import`", |
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
46944
757