We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 726cb7a commit 5075a50Copy full SHA for 5075a50
src/generator/download.ts
@@ -89,16 +89,12 @@ export async function downloadDiscoveryDocs(
89
const res = await request({url});
90
// The keys in the downloaded JSON come back in an arbitrary order from
91
// request to request. Sort them before storing.
92
- // console.log(JSON.parse(res.data as string))
93
const newDoc = sortKeys(JSON.parse(res.data as string));
94
let updateFile = true;
95
96
try {
97
const oldDoc = JSON.parse(await gfs.readFile(apiPath));
98
- // console.log(oldDoc)
99
- // console.log(newDoc)
100
updateFile = shouldUpdate(newDoc, oldDoc);
101
- // console.log(updateFile)
102
changeSet.changes = getDiffs(oldDoc, newDoc);
103
} catch {
104
// If the file doesn't exist, that's fine it's just new
0 commit comments