
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
@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 13,865 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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.