@@ -6,19 +6,19 @@ type AgentDepsIncludesFn = (stdout: string, name: string) => boolean
6
6
7
7
const { BUN , NPM , PNPM , VLT , YARN_BERRY , YARN_CLASSIC } = constants
8
8
9
- function matchHumanStdout ( stdout : string , name : string ) {
9
+ function matchLsCmdViewHumanStdout ( stdout : string , name : string ) {
10
10
return stdout . includes ( ` ${ name } @` )
11
11
}
12
12
13
- function matchQueryStdout ( stdout : string , name : string ) {
13
+ function matchQueryCmdStdout ( stdout : string , name : string ) {
14
14
return stdout . includes ( `"${ name } "` )
15
15
}
16
16
17
17
export const depsIncludesByAgent = new Map < Agent , AgentDepsIncludesFn > ( [
18
- [ BUN , matchHumanStdout ] ,
19
- [ NPM , matchQueryStdout ] ,
20
- [ PNPM , matchQueryStdout ] ,
21
- [ VLT , matchQueryStdout ] ,
22
- [ YARN_BERRY , matchHumanStdout ] ,
23
- [ YARN_CLASSIC , matchHumanStdout ]
18
+ [ BUN , matchLsCmdViewHumanStdout ] ,
19
+ [ NPM , matchQueryCmdStdout ] ,
20
+ [ PNPM , matchQueryCmdStdout ] ,
21
+ [ VLT , matchQueryCmdStdout ] ,
22
+ [ YARN_BERRY , matchLsCmdViewHumanStdout ] ,
23
+ [ YARN_CLASSIC , matchLsCmdViewHumanStdout ]
24
24
] )
0 commit comments