Skip to content

Commit 840b760

Browse files
committed
cliFeed response
1 parent 331b604 commit 840b760

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

gulpfile.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ async function prepareForWebpack(): Promise<void> {
2828
let downloadLink;
2929
async function getFuncLink() {
3030
const client = new msRest.ServiceClient();
31-
const cliFeed = (await client.sendRequest({ method: 'GET', url: 'https://aka.ms/V00v5v' })).parsedBody;
32-
const version = cliFeed.tags['v4-prerelease'].release;
31+
const cliFeed = (await client.sendRequest({ method: 'GET', url: 'https://aka.ms/V00v5v' }));
32+
console.log(`Func cli feed status code: ${cliFeed}`);
33+
const cliFeedParsedBody = cliFeed.parsedBody;
34+
const version = cliFeedParsedBody.tags['v4-prerelease'].release;
3335
console.log(`Func cli feed version: ${version}`);
34-
const cliRelease = cliFeed.releases[version].coreTools.find((rel) => {
36+
const cliRelease = cliFeedParsedBody.releases[version].coreTools.find((rel) => {
3537
return rel.Architecture === 'x64' && (
3638
matchesCliFeedOS(rel.OperatingSystem) ||
3739
matchesCliFeedOS(rel.OS)

0 commit comments

Comments
 (0)