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

prisma-extension-pagination

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prisma-extension-pagination - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

dist/index.cjs

12

dist/index.module.js

@@ -70,4 +70,4 @@ import { Prisma } from '@prisma/client';

const cursor = parseCursor(before);
let nextResultCount;
[results, nextResultCount] = await Promise.all([model.findMany({
let nextResult;
[results, nextResult] = await Promise.all([model.findMany({
...query,

@@ -86,7 +86,7 @@ cursor,

}
hasNextPage = Boolean(nextResultCount.length);
hasNextPage = Boolean(nextResult.length);
} else if (typeof after === "string") {
const cursor = parseCursor(after);
let previousResultCount;
[results, previousResultCount] = await Promise.all([model.findMany({
let previousResult;
[results, previousResult] = await Promise.all([model.findMany({
...query,

@@ -102,3 +102,3 @@ cursor,

})]);
hasPreviousPage = Boolean(previousResultCount.length);
hasPreviousPage = Boolean(previousResult.length);
if (results.length > limit) {

@@ -105,0 +105,0 @@ hasNextPage = Boolean(results.pop());

{
"name": "prisma-extension-pagination",
"version": "0.2.3",
"version": "0.2.4",
"description": "Prisma Client extension for pagination",
"type": "module",
"source": "src/index.ts",
"types": "dist/index.d.ts",
"exports": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.module.js"

@@ -10,0 +12,0 @@ },

Sorry, the diff of this file is not supported yet

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