
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
prisma-frontend
Advanced tools
A Prisma generator for creating frontend-friendly exports (types and enums).
DEPRECATED
This package is now deprecated as Prisma provides functionality to achieve the same thing that this package did: use moduleFormat = "esm"
in your JS client generator now. (See https://www.prisma.io/docs/orm/prisma-schema/overview/generators#field-reference-1)
A Prisma generator for creating frontend-friendly exports (types and enums).
npm i -D prisma-frontend
Insert this as a generator in your Prisma schema file:
// the standard client generator
generator jsClient {
provider = "prisma-client-js"
output = "../generated"
}
// make sure this is placed after prisma-client-js
generator jsFrontend {
provider = "prisma-frontend"
}
This generator requires the prisma-client-js
generator to be used as well (as shown above).
Import model types and enums from prisma-frontend
:
import {type User, AuthRole} from './generated/frontend/index.js';
export function authenticateAdmin(user: Partial<User>): boolean {
return user.authRole === AuthRole.Admin;
}
FAQs
A Prisma generator for creating frontend-friendly exports (types and enums).
We found that prisma-frontend demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.