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

knex-paginate

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knex-paginate - npm Package Compare versions

Comparing version 3.1.3 to 3.1.4

8

lib/index.js

@@ -21,2 +21,6 @@ const Knex = require('knex');

if (currentPage < 1) {
currentPage = 1;
}
const shouldFetchTotals = isLengthAware || currentPage === 1 || isFromStart;

@@ -26,6 +30,2 @@ let pagination = {};

if (currentPage < 1) {
currentPage = 1;
}
const offset = isFromStart ? 0 : (currentPage - 1) * perPage;

@@ -32,0 +32,0 @@ const limit = isFromStart ? perPage * currentPage : perPage;

{
"name": "knex-paginate",
"version": "3.1.3",
"version": "3.1.4",
"description": "Extension of Knex's query builder with `paginate` method that will help with your pagination tasks.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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