
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@prisma-next/errors
Advanced tools
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 13,007 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 now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

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