
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@prisma-next/sql-contract-emitter
Advanced tools
SQL emitter hook for Prisma Next.
This package provides the SQL-specific emitter hook implementation for the Prisma Next emitter. It validates SQL contracts and generates TypeScript type definitions for SQL contracts. It's part of the SQL tooling layer (migration plane) and implements the TargetFamilyHook interface.
Contract Validation: Validates SQL contract structure and types
validateTypes(): Validates type IDs against referenced extensions (receives ValidationContext with extensionIds)validateStructure(): Validates SQL-specific logical consistency (foreign key references, model-to-table mappings, constraint consistency). Note: Structural properties (required fields, types) are validated by Arktype schema validation - this function focuses on logical validation that schema validators can't perform.Type Generation: Generates TypeScript type definitions for SQL contracts
generateContractTypes(): Generates contract.d.ts file content (receives a codecTypeImports array)@prisma-next/contract (contract IR, TargetFamilyHook SPI, ValidationContext, TypesImportSpec - types moved to shared plane)@prisma-next/emitter (emitter core, EmitOptions, EmitResult)@prisma-next/sql-contract (SQL contract type definitions)@prisma-next/cli (uses for contract emission)@prisma-next/integration-tests (uses for contract emission tests)flowchart TD
subgraph "Framework Tooling Layer"
EMITTER[@prisma-next/emitter]
CLI[@prisma-next/cli]
end
subgraph "SQL Tooling Layer"
SQL_EMITTER[@prisma-next/sql-contract-emitter]
end
subgraph "SQL Core Layer (Shared Plane)"
CT[@prisma-next/sql-contract]
end
EMITTER --> SQL_EMITTER
CT --> SQL_EMITTER
SQL_EMITTER --> CLI
import { emit } from '@prisma-next/emitter';
import { sqlEmission } from '@prisma-next/sql-contract-emitter';
const result = await emit(contractIR, options, sqlEmission);
// result.contractDts contains generated TypeScript types
// result.contractJson contains validated contract JSON
FAQs
SQL emitter hook for Prisma Next
The npm package @prisma-next/sql-contract-emitter receives a total of 21,167 weekly downloads. As such, @prisma-next/sql-contract-emitter popularity was classified as popular.
We found that @prisma-next/sql-contract-emitter 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
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.