
Security News
npm v12 Ships With Install Scripts Off by Default, Begins Deprecating 2FA-Bypass Tokens
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.
@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 10,552 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.

Security News
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.

Research
/Security News
Socket tracks the activity as Operation “Muck and Load”: a threat actor uses commit-farming workflows, public dead drops, and protected archives to stage Windows RAT and infostealer malware.

Security News
pnpm 11.10 hardens registry auth to block token redirection, tightens pack-app and deploy, and makes the Rust port (v12) installable.