
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@prisma-extensions/read-only
Advanced tools
Read Only disallows any-and-all mutation operations either for the client or specific models.
@prisma-extensions/factory
- Create factories@prisma-extensions/msoft-delete
- Enable a deletedAt
field.@prisma-extensions/truncate
- Truncatemodel.$allModels
you can't get the model the method is being acted on.model.$allModels
you can't get the types of the model the method is being acted on.@prisma-extensions/truncate
const xprisma = new PrismaClient()
.$extends(factoryExtension)
.$extends(truncateExtension)
const UserFactory = xprisma.user.createFactory({
firstName: "Jane",
lastName: "Doe",
})
describe("Post", () => {
describe("Standard" () => {
afterEach(async () => {
await xprisma.$truncate()
})
test("example", async () => {
const user = UserFactory.build()
const post = await PostFactory.create({
title: "Foo",
content: "Bar",
author: {
create: user,
},
})
// ...
})
})
// Tests should be isolated (use sparingly)
describe("Persistent Record", () => {
const user = UserFactory.create()
afterAll(async () => {
await xprisma.$truncate({ only: ["User"] })
})
afterEach(async () => {
await xprisma.$truncate({ exclude: ["User"] })
})
test("example", async () => {
const post = await PostFactory.create({
title: "Foo",
content: "Bar",
author: {
connect: { id: user.id },
},
})
// ...
})
})
})
Learn more about the power of Turborepo:
FAQs
Read Only disallows any-and-all mutation operations either for the client or specific models.
We found that @prisma-extensions/read-only demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.