MCPcopy
hub / github.com/triggerdotdev/trigger.dev / doUpdateCheck

Function doUpdateCheck

packages/cli-v3/src/utilities/initialBanner.ts:72–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72async function doUpdateCheck(): Promise<string | undefined> {
73 let update: Result | null = null;
74 try {
75 // default cache for update check is 1 day
76 update = await checkForUpdate(pkg, {
77 distTag: pkg.version.startsWith("3.0.0-beta") ? "beta" : "latest",
78 });
79 } catch (err) {
80 // ignore error
81 }
82 return update?.latest;
83}
84
85//only do this once while the cli is running
86let updateCheckPromise: Promise<string | undefined>;

Callers 1

updateCheckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…