SShortSingh.
Back to feed

BlockVectra Data API TypeScript client v0.1.3 rejects missing API keys at startup

0
·3 views

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.

Read the full story at DEV Community

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

Related stories

0
ProgrammingDEV Community ·

PDF merge keeps mixed page sizes; verify the downloaded file, not thumbnails

A merged PDF containing an A4 cover and a Letter-sized report can be correct even if a viewer displays every page at the same width. Viewer previews therefore cannot confirm that the downloaded file preserved each page's dimensions. The article's test used synthetic fixtures and an actual browser download, then checked the output with pypdf and Poppler's pdfinfo. Results matched the intended order, with the Letter page remaining Letter-sized in the middle. The author notes this is a narrow acceptance check, not proof for arbitrary PDFs, and that boxes, rotation and UserUnit must also be compared.

0
ProgrammingDEV Community ·

Tale of Kingdoms: The Shattered Crown Adds an RPG Campaign to Minecraft 26.2

A free Fabric mod called Tale of Kingdoms: The Shattered Crown transforms Minecraft into a role-playing game for version 26.2. Players can join a guild and progress through a main storyline containing 105 quests. The mod also offers 30 spells to learn and fifteen towns to explore. It is available for download through CurseForge, and the developer invites support via Patreon.

0
ProgrammingDEV Community ·

Claude Code MCP Setup: Where Server Configuration Lives and How Scopes Conflict

Claude Code must know about an MCP server through configuration before it can connect to it. Definitions can be stored at project, user, or local scope, or be provided centrally by an organization, depending on who should use them. A project's shared .mcp.json file can declare a team's server without exposing personal credentials, while local scope keeps individual secrets private to one project. When the same server name appears in several scopes, Claude Code uses the complete entry from the highest-precedence source rather than merging fields. Organization-managed definitions override the other sources when duplicated.

0
ProgrammingDEV Community ·

Track Your Net Worth Monthly in Google Sheets With Assets, Debts, and a Growth Chart

Net worth, the gap between what you own and what you owe, is presented as a clearer indicator of financial direction than bank balance alone. The guide walks readers through building a monthly tracker in Google Sheets, with an accounts list tagged as assets or debts and a column for each month. Formulas total assets and debts, calculate net worth and its monthly change, and compute a debt ratio that the author suggests keeping below 50%. A line chart of net worth over time and a category breakdown with a pie chart are also described. The article closes with a promotion for the author's own paid and free budget templates.