@@ -1107,33 +1107,34 @@ export class RegistryClient {
1107
1107
1108
1108
// Also directly check packages in each package.json for better coverage
1109
1109
this . logger . info ( `Checking ${ packageJsonFiles . length } package.json files directly` )
1110
-
1110
+
1111
1111
for ( const filePath of packageJsonFiles ) {
1112
- if ( filePath === 'package.json' ) continue // Skip root, already checked
1113
-
1112
+ if ( filePath === 'package.json' )
1113
+ continue // Skip root, already checked
1114
+
1114
1115
try {
1115
1116
const fullPath = path . join ( this . projectPath , filePath )
1116
1117
const content = fs . readFileSync ( fullPath , 'utf-8' )
1117
1118
const packageData = JSON . parse ( content )
1118
-
1119
+
1119
1120
const allDeps = {
1120
1121
...packageData . dependencies ,
1121
1122
...packageData . devDependencies ,
1122
1123
...packageData . peerDependencies ,
1123
1124
...packageData . optionalDependencies ,
1124
1125
}
1125
-
1126
+
1126
1127
for ( const [ packageName , currentVersion ] of Object . entries ( allDeps ) ) {
1127
1128
// Skip workspace dependencies and invalid versions
1128
1129
if ( typeof currentVersion !== 'string' || currentVersion . startsWith ( 'workspace:' ) ) {
1129
1130
continue
1130
1131
}
1131
-
1132
+
1132
1133
// Check if already found in workspace results
1133
1134
if ( allResults . some ( r => r . name === packageName ) ) {
1134
1135
continue
1135
1136
}
1136
-
1137
+
1137
1138
try {
1138
1139
const latestVersion = await this . getLatestVersion ( packageName )
1139
1140
if ( latestVersion ) {
@@ -1148,7 +1149,8 @@ export class RegistryClient {
1148
1149
} )
1149
1150
}
1150
1151
}
1151
- } catch ( error ) {
1152
+ }
1153
+ catch {
1152
1154
// Continue if version check fails for this package
1153
1155
continue
1154
1156
}
@@ -1278,7 +1280,7 @@ export class RegistryClient {
1278
1280
return filePath
1279
1281
}
1280
1282
}
1281
- catch ( error ) {
1283
+ catch {
1282
1284
// Continue searching if this file is malformed
1283
1285
continue
1284
1286
}
0 commit comments