Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
prisma-query-log
Advanced tools
Log prisma query event
Features:
Before:
After:
npm install --save-dev prisma-query-log
import { createPrismaQueryEventHandler } from 'prisma-query-log';
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient({
log: [
{
level: 'query',
emit: 'event',
},
],
});
const log = createPrismaQueryEventHandler();
prisma.$on('query', log);
function createPrismaQueryEventHandler(
args?: CreatePrismaQueryEventHandlerArgs,
): (event: PrismaQueryEvent) => void;
type CreatePrismaQueryEventHandlerArgs = {
/**
* Boolean of custom log function,
* if true `console.log` will be used,
* if false noop - logs nothing.
* Default: true
*/
logger?: boolean | ((query: string) => unknown);
/**
* Remove backticks.
*/
unescape?: boolean;
};
FAQs
Log prisma query event
The npm package prisma-query-log receives a total of 617 weekly downloads. As such, prisma-query-log popularity was classified as not popular.
We found that prisma-query-log demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.