Updated telemetry payload.

This commit is contained in:
Mike Cao 2022-03-16 21:59:17 -07:00
parent 45e4bfe3a9
commit 0d33e6d08f

View File

@ -31,14 +31,14 @@ async function run() {
node: process.version, node: process.version,
platform: os.platform(), platform: os.platform(),
arch: os.arch(), arch: os.arch(),
os: os.version(), os: `${os.type()} (${os.version()})`,
isDocker: isDocker(), isDocker: isDocker(),
isCI, isCI,
}; };
await retry( await retry(
async () => { async () => {
const res = await fetch(url, { await fetch(url, {
method: 'post', method: 'post',
cache: 'no-cache', cache: 'no-cache',
headers: { headers: {
@ -46,8 +46,6 @@ async function run() {
}, },
body: JSON.stringify(payload), body: JSON.stringify(payload),
}); });
console.log(res);
}, },
{ minTimeout: 500, retries: 1, factor: 1 }, { minTimeout: 500, retries: 1, factor: 1 },
).catch(() => {}); ).catch(() => {});