Download mods/diff/hooks/record/safely/safely.ts from SaylorTwift/claude-code: direct link, hf CLI and curl.
- Browser
- Download file 304 Bytes
-
https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/record/safely/safely.ts
- Command line
-
hf download hf://SaylorTwift/claude-code/mods/diff/hooks/record/safely/safely.ts
-
curl -L -o safely.ts https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/record/safely/safely.ts
304 Bytes
| /** | |
| * Sends one telemetry row and forgets it: a missing `$.telemetry` (no | |
| * telemetry built-in) throws synchronously, a refused row rejects; both drop. | |
| * | |
| * @param send posts the row | |
| */ | |
| export function safely(send: () => Promise<void>) { | |
| try { | |
| void send().catch(() => undefined) | |
| } catch {} | |
| } | |