
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.
paginate-prisma
Advanced tools
[](https://codeclimate.com/github/qlaffont/paginate-prisma/maintainability) [;
await paginate(prisma.user)(
{},
{
sort: {
field: 'tokens._count',
order: PAGINATION_ORDER.ASC,
},
}
);
For type-graphql integration, check example/type.ts
Options
Field Name | Type | Description |
---|---|---|
prismaModel | Prisma Model | Prisma model/table/entity to use |
sortingOptions | PaginationOptions | Options to use for pagination (Page, sorting, etc) |
additionalFindMany | Prisma FindManyArgument | Other params in findMany as include, cursor, etc |
Return Promise<PaginationResult & {data: T[]}>
Field Name | Type | Description |
---|---|---|
data | T[] | Paginated Data |
page | number | Current page |
pages | number | Total number of pages |
limit | number | Number of row to be returned |
items | number | Total number of items |
To test this package, you need to run a PostgresSQL server :
docker-compose up -d
chmod -R 777 docker
pnpm prisma migrate deploy
pnpm test
This package use TSdx. Please check documentation to update this package.
FAQs
[](https://codeclimate.com/github/qlaffont/paginate-prisma/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/6b08ca1cc22333d5e1be/test_cov
The npm package paginate-prisma receives a total of 181 weekly downloads. As such, paginate-prisma popularity was classified as not popular.
We found that paginate-prisma 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.
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.