Skip to content

Commit 4fc28de

Browse files
committed
add some logging to codecane
1 parent 0a7f1b2 commit 4fc28de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

npm-app/release-staging/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,13 @@ async function getLatestVersion() {
9696
`https://registry.npmjs.org/${packageName}/latest`,
9797
)
9898

99+
console.log('asdf', { code: res.statusCode })
99100
if (res.statusCode !== 200) return null
100101

101102
const body = await streamToString(res)
103+
console.log('asdf body', body)
102104
const packageData = JSON.parse(body)
105+
console.log('asdf packageData', JSON.stringify(packageData, null, 2))
103106

104107
return packageData.version || null
105108
} catch (error) {

0 commit comments

Comments
 (0)