Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prisma-pagination

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prisma-pagination - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "prisma-pagination",
"version": "0.1.1",
"version": "0.1.2",
"description": "",

@@ -5,0 +5,0 @@ "source": "src/index.ts",

@@ -26,3 +26,2 @@ # Prisma Pagination

// to have args and result typed
const result = await paginate<User, Prisma.UserFindManyArgs>(

@@ -63,7 +62,11 @@ prisma.user,

export const pagination = (req, res, next) => {
const pagination = (req, res, next) => {
const page = Number(req.query.page) || 1
req.paginate = createPaginator({ page })
next()
}
app.use(pagination)
```

@@ -70,0 +73,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc