Skip to content

Commit cfe1cae

Browse files
committed
Remove large console.dir use in fix command
1 parent c439ef9 commit cfe1cae

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

src/commands/fix/npm-fix.mts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import path from 'node:path'
22

33
import { getManifestData } from '@socketsecurity/registry'
44
import { arrayUnique } from '@socketsecurity/registry/lib/arrays'
5-
import { debugLog, isDebug } from '@socketsecurity/registry/lib/debug'
5+
import { debugLog } from '@socketsecurity/registry/lib/debug'
66
import { logger } from '@socketsecurity/registry/lib/logger'
77
import { runScript } from '@socketsecurity/registry/lib/npm'
88
import {
@@ -178,9 +178,6 @@ export async function npmFix(
178178
logger.warn(
179179
`Unexpected condition: Lockfile entries not found for ${name}.\n`
180180
)
181-
if (isDebug()) {
182-
console.dir(actualTree, { depth: 999 })
183-
}
184181
continue
185182
}
186183

src/commands/fix/pnpm-fix.mts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,6 @@ export async function pnpmFix(
239239
logger.warn(
240240
`Unexpected condition: Lockfile entries not found for ${name}.\n`
241241
)
242-
if (isDebug()) {
243-
console.dir(actualTree, { depth: 999 })
244-
}
245242
continue
246243
}
247244

0 commit comments

Comments
 (0)