
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
@prisma-next/errors
Advanced tools
Internal package. This package is an implementation detail of
prisma-nextand is published only to support its runtime. Its API is unstable and may change without notice. Do not depend on this package directly; installprisma-nextinstead.
Structured error types and factories for CLI and runtime error reporting.
This package provides CliStructuredError (the shared error class) and factory functions for creating structured errors with error codes, fix suggestions, and machine-readable metadata. Errors are split across two entry points by domain:
./control — CLI errors (PN-CLI-4xxx): config validation, file resolution, migration planning./execution — Runtime errors (PN-RUN-3xxx): contract verification, hash mismatch, database signingimport { CliStructuredError, errorConfigFileNotFound } from '@prisma-next/errors/control';
import { errorHashMismatch } from '@prisma-next/errors/execution';
// Create a CLI error
throw errorConfigFileNotFound('/path/to/config.ts');
// Create a runtime error
throw errorHashMismatch({ expected: 'abc123', actual: 'def456' });
// Type-guard check
if (CliStructuredError.is(caught)) {
const envelope = caught.toEnvelope();
// { ok: false, code: 'PN-CLI-4001', domain: 'CLI', summary: '...', ... }
}
| Entry point | Domain | Code range | Contents |
|---|---|---|---|
./control | CLI | PN-CLI-4xxx | CliStructuredError class, CliErrorEnvelope/CliErrorConflict types, 14 CLI factory functions, errorUnexpected |
./execution | RUN | PN-RUN-3xxx | 8 runtime factory functions, ERROR_CODE_DESTRUCTIVE_CHANGES constant |
FAQs
Structured error types for Prisma Next control and execution planes
The npm package @prisma-next/errors receives a total of 14,922 weekly downloads. As such, @prisma-next/errors popularity was classified as popular.
We found that @prisma-next/errors demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.