File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export function getIncludePaths(fromFilename?: string, base: string[] = []) {
33
33
] ;
34
34
}
35
35
36
- const cachedResult : Record < string , boolean > = { } ;
36
+ const depCheckCache : Record < string , boolean > = { } ;
37
37
38
38
/**
39
39
* Checks if a package is installed.
@@ -43,8 +43,8 @@ const cachedResult: Record<string, boolean> = {};
43
43
* @returns boolean
44
44
*/
45
45
export async function hasDepInstalled ( dep : string ) {
46
- if ( cachedResult [ dep ] != null ) {
47
- return cachedResult [ dep ] ;
46
+ if ( depCheckCache [ dep ] != null ) {
47
+ return depCheckCache [ dep ] ;
48
48
}
49
49
50
50
let result = false ;
@@ -57,7 +57,7 @@ export async function hasDepInstalled(dep: string) {
57
57
result = false ;
58
58
}
59
59
60
- return ( cachedResult [ dep ] = result ) ;
60
+ return ( depCheckCache [ dep ] = result ) ;
61
61
}
62
62
63
63
const REMOTE_SRC_PATTERN = / ^ ( h t t p s ? : ) ? \/ \/ / ;
You can’t perform that action at this time.
0 commit comments