@@ -202,7 +202,6 @@ for (const [index, token] of result.tokens.entries()) {
202202}
203203
204204const args = result . values ;
205- // console.log(args)
206205
207206const [ magenta , red , green ] = ( [ "magenta" , "red" , "green" ] as const )
208207 . map ( color => args [ "no-color" ] ? String : ( text : string | number ) => styleText ( color , String ( text ) ) ) ;
@@ -986,7 +985,7 @@ function matchersToRegexSet(cliArgs: Array<string>, configArgs: Array<string | R
986985 return ret as Set< RegExp > ;
987986}
988987
989- function canInclude ( name : string , mode : string , include : Set < RegExp > , exclude: Set< RegExp > , depType? : string): boolean {
988+ function canInclude ( name : string , mode : string , include : Set < RegExp > , exclude: Set< RegExp > , depType: string): boolean {
990989 if ( depType === "engines" && nonPackageEngines . includes ( name ) ) return false ;
991990 if ( mode === "pypi" && name === "python" ) return false ;
992991 if ( ! include . size && ! exclude . size ) return true ;
@@ -1227,7 +1226,7 @@ async function main(): Promise<void> {
12271226
12281227 if ( Array . isArray ( obj ) && mode === "pypi" ) { // array for uv
12291228 for ( const { name, version} of parseUvDependencies ( obj ) ) {
1230- if ( canInclude ( name , mode , include , exclude ) ) {
1229+ if ( canInclude ( name , mode , include , exclude , depType ) ) {
12311230 deps [ mode ] [ `${ depType } ${ sep } ${ name } ` ] = {
12321231 old : normalizeRange ( version ) ,
12331232 oldOriginal : version ,
@@ -1243,7 +1242,7 @@ async function main(): Promise<void> {
12431242 } as Dep ;
12441243 } else { // object
12451244 for ( const [ name , value ] of Object . entries ( obj ) ) {
1246- if ( mode !== "go" && validRange ( value ) && canInclude ( name , mode , include , exclude ) ) {
1245+ if ( mode !== "go" && validRange ( value ) && canInclude ( name , mode , include , exclude , depType ) ) {
12471246 deps [ mode ] [ `${ depType } ${ sep } ${ name } ` ] = {
12481247 old : normalizeRange ( value ) ,
12491248 oldOriginal : value ,
0 commit comments