()
| 70 | } |
| 71 | |
| 72 | async 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 |
| 86 | let updateCheckPromise: Promise<string | undefined>; |
no outgoing calls
no test coverage detected
searching dependent graphs…