BlockVectra Data API TypeScript client v0.1.3 rejects missing API keys at startup
The BlockVectra Data API TypeScript client now throws an error when it is created with a missing, empty or whitespace-only key, catching configuration mistakes before the first request. Non-empty keys are passed through unchanged, with validity still checked by the API itself. Version 0.1.3 is distributed as a prebuilt GitHub package, not yet through npm's public registry, and includes JavaScript and TypeScript declarations. The release also adds an isDataApiError guard that identifies structured JSON error responses while preserving the original HTTP status. The developers note that the release passed unit tests and example checks, but the credentialed live API test was skipped.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in