@@ -3,7 +3,7 @@ import os from 'node:os'
33import path from 'node:path'
44import { pipeline } from 'node:stream/promises'
55
6- import { debugFn } from '@socketsecurity/registry/lib/debug'
6+ import { debugDir , debugFn } from '@socketsecurity/registry/lib/debug'
77import { logger } from '@socketsecurity/registry/lib/logger'
88import { confirm , select } from '@socketsecurity/registry/lib/prompts'
99
@@ -398,7 +398,7 @@ async function downloadManifestFile({
398398 debugFn ( 'notice' , 'request: download url from GitHub' )
399399
400400 const fileUrl = `${ repoApiUrl } /contents/${ file } ?ref=${ defaultBranch } `
401- debugFn ( 'inspect' , 'url: file' , fileUrl )
401+ debugDir ( 'inspect' , { fileUrl } )
402402
403403 const downloadUrlResponse = await fetch ( fileUrl , {
404404 method : 'GET' ,
@@ -497,7 +497,7 @@ async function streamDownloadWithFetch(
497497 'An error was thrown while trying to download a manifest file... url:' ,
498498 downloadUrl ,
499499 )
500- debugFn ( 'inspect' , { error } )
500+ debugDir ( 'inspect' , { error } )
501501
502502 // If an error occurs and fileStream was created, attempt to clean up.
503503 if ( fs . existsSync ( localPath ) ) {
@@ -654,7 +654,7 @@ async function getRepoDetails({
654654 CResult < { defaultBranch : string ; repoDetails : unknown ; repoApiUrl : string } >
655655> {
656656 const repoApiUrl = `${ githubApiUrl } /repos/${ orgGithub } /${ repoSlug } `
657- debugFn ( 'inspect' , 'url: repo' , repoApiUrl )
657+ debugDir ( 'inspect' , { repoApiUrl } )
658658
659659 const repoDetailsResponse = await fetch ( repoApiUrl , {
660660 method : 'GET' ,
@@ -754,7 +754,7 @@ async function getRepoBranchTree({
754754 }
755755
756756 if ( ! treeDetails . tree || ! Array . isArray ( treeDetails . tree ) ) {
757- debugFn ( 'inspect' , ' treeDetails. tree:' , treeDetails . tree )
757+ debugDir ( 'inspect' , { treeDetails : { tree : treeDetails . tree } } )
758758
759759 return {
760760 ok : false ,
0 commit comments