Skip to content

Commit

Permalink
Added previous version to payload.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Mar 19, 2022
1 parent f9f3a5b commit 46174f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/telemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ async function sendTelemetry(action) {

const { default: isDocker } = await import('is-docker');
const { default: fetch } = await import('node-fetch');
const upgrade = json.version !== undefined && json.version !== pkg.version;

const payload = {
action,
Expand All @@ -33,7 +34,8 @@ async function sendTelemetry(action) {
os: `${os.type()} (${os.version()})`,
docker: isDocker(),
ci: isCI,
upgrade: json.version !== undefined && json.version !== pkg.version,
prev: json.version,
upgrade,
};

await retry(
Expand Down

0 comments on commit 46174f6

Please sign in to comment.