Skip to content

Commit 49f606e

Browse files
committed
Move an info log to debugLog in fix
1 parent 01c197e commit 49f606e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/commands/fix/npm-fix.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export async function npmFix(
124124
continue
125125
}
126126
if (!infos.length) {
127-
debugLog(`No vulnerability info found for ${name}`)
127+
debugLog(`No vuln info found for ${name}`)
128128
continue
129129
}
130130
// eslint-disable-next-line no-await-in-loop
@@ -193,7 +193,9 @@ export async function npmFix(
193193
: undefined
194194

195195
if (!(newVersion && newVersionPackument)) {
196-
spinner?.fail(`No update found for ${oldSpec}.`)
196+
debugLog(
197+
`No suitable update. ${oldSpec} needs >=${firstPatchedVersionIdentifier}, skipping`
198+
)
197199
continue
198200
}
199201

src/commands/fix/pnpm-fix.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export async function pnpmFix(
147147
continue
148148
}
149149
if (!infos.length) {
150-
debugLog(`No vulnerability info found for ${name}`)
150+
debugLog(`No vuln info found for ${name}`)
151151
continue
152152
}
153153
// eslint-disable-next-line no-await-in-loop
@@ -222,7 +222,9 @@ export async function pnpmFix(
222222
: undefined
223223

224224
if (!(newVersion && newVersionPackument)) {
225-
spinner?.fail(`No update found for ${oldSpec}.`)
225+
debugLog(
226+
`No suitable update. ${oldSpec} needs >=${firstPatchedVersionIdentifier}, skipping`
227+
)
226228
continue
227229
}
228230

0 commit comments

Comments
 (0)