FetchLatest queries the npm registry and returns the latest published version. This is a synchronous call with timeout, intended for diagnostic commands (doctor).
()
| 193 | // FetchLatest queries the npm registry and returns the latest published version. |
| 194 | // This is a synchronous call with timeout, intended for diagnostic commands (doctor). |
| 195 | func FetchLatest() (string, error) { |
| 196 | return fetchLatestVersion() |
| 197 | } |
| 198 | |
| 199 | // --- npm registry --- |
| 200 |
no test coverage detected