Skip to content

Commit 0f41c64

Browse files
committed
Add debug for npm config
1 parent 7768141 commit 0f41c64

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/commands/fix/npm-fix.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export async function npmFix(
8686
shorthands: npmConfigShorthands,
8787
})
8888
await config.load()
89+
debugFn('npm config:', config)
8990
const arb = new Arborist({
9091
path: pkgEnvDetails.pkgPath,
9192
...SAFE_ARBORIST_REIFY_OPTIONS_OVERRIDES,

src/commands/package/output-purls-shallow-score.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import colors from 'yoctocolors-cjs'
22

3-
import { debugLog } from '@socketsecurity/registry/lib/debug'
3+
import { debugFn } from '@socketsecurity/registry/lib/debug'
44
import { logger } from '@socketsecurity/registry/lib/logger'
55

66
import { failMsgWithBadge } from '../../utils/fail-msg-with-badge.mts'
@@ -71,7 +71,7 @@ function formatReportCard(artifact: DedupedArtifact, color: boolean): string {
7171
}
7272
const alertString = getAlertString(artifact.alerts, !color)
7373
if (!artifact.ecosystem) {
74-
debugLog('miss: Artifact ecosystem', artifact)
74+
debugFn('miss: Artifact ecosystem', artifact)
7575
}
7676
const purl = `pkg:${artifact.ecosystem}/${artifact.name}${artifact.version ? '@' + artifact.version : ''}`
7777

0 commit comments

Comments
 (0)