Download src/tests/latestVersion.ts from cursorpro/upd: direct link, hf CLI and curl.
- Browser
- Download file 356 Bytes
-
https://huggingface.co/spaces/cursorpro/upd/resolve/main/src/tests/latestVersion.ts
- Command line
-
hf download hf://spaces/cursorpro/upd/src/tests/latestVersion.ts
-
curl -L -o latestVersion.ts https://huggingface.co/spaces/cursorpro/upd/resolve/main/src/tests/latestVersion.ts
356 Bytes
| import { assertEquals } from "./deps.ts"; | |
| export async function latestVersion(baseUrl: string) { | |
| const resp = await fetch( | |
| `${baseUrl}/latest_version?id=jNQXAC9IVRw&itag=18&local=true`, | |
| { | |
| method: "GET", | |
| redirect: "manual", | |
| }, | |
| ); | |
| await resp.body?.cancel(); | |
| assertEquals(resp.status, 302); | |
| } | |