Skip to content

Commit

Permalink
feat: always output jsDelivr API response
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Feb 14, 2024
1 parent a2d4c38 commit ff93fb8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions sources/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ async function GetCDNResponse(ProgramOptions: Types.ProgramOptionsType, ID: stri
},
http2: true,
}).json()
if (IsDebug(ProgramOptions)) {
Actions.debug(`GetCDNResponse in requests.ts called: ${JSON.stringify(ResponseRaw)}`)
}

Actions.startGroup(`GetCDNResponse called: ${ID}`)
Actions.info(JSON.stringify(ResponseRaw))
Actions.endGroup()
return ResponseRaw
}

Expand All @@ -35,10 +34,9 @@ async function PostPurgeRequest(ProgramOptions: Types.ProgramOptionsType, Branch
},
http2: true,
}).json()
if (IsDebug(ProgramOptions)) {
Actions.debug(`PostPurgeRequest in requests.ts called: ${JSON.stringify(ResponseRaw)}`)
}

Actions.startGroup(`PostPurgeRequest called: ${ResponseRaw.id}`)
Actions.info(JSON.stringify(ResponseRaw))
Actions.endGroup()
return ResponseRaw
}

Expand Down

0 comments on commit ff93fb8

Please sign in to comment.