mirror of
https://github.com/Komediruzecki/token-circles.git
synced 2026-10-20 09:46:43 +02:00
send-sample-mails.ts trims RESEND_API_KEY and, before sending anything, refuses a key that is not one line of letters, digits, _ or - after re_ (exit 2, nothing sent, nothing of the value printed). Every error it prints, thrown or answered by Resend, has [key] wherever it quoted the key. The header comment says both. main takes its argv, environment, output and fetch as an Io, so the tests run the command with a stub fetch and no network.