Skip to content

Commit

Permalink
feat(#55): json parse
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Mar 18, 2024
1 parent 95c2ced commit 55042bd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/blob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ export class Blob {
ref: 'master', // read default branch
path: 'src/main/java/git/tracehub/tk/TkGitHub.java' // file path after deterministic parsing
});
const data = response.toString();
const data = response.data.toString();
if (data) {
const decoded = Base64.decode(JSON.parse(data).data.content);
console.log(decoded);
console.log(JSON.parse(data))
// const decoded = Base64.decode(JSON.parse(data));
// console.log(decoded);
}
}
}

0 comments on commit 55042bd

Please sign in to comment.