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 1.0.0 to 1.1.0

9

lib/index.js

@@ -43,2 +43,4 @@ const Knex = require('knex');

if (shouldFetchTotals) {
const groupStmt = this._statements.find(stmt => stmt.grouping === 'group');
const countQuery = await this.clone()

@@ -50,4 +52,9 @@ .clearSelect()

qb._clearGrouping('group');
if (groupStmt) {
qb.count(`${groupStmt.value[0]} as total`, { distinct: true });
} else {
qb.count('* as total');
}
})
.count('* as total')
.offset(0)

@@ -54,0 +61,0 @@ .first()

2

package.json
{
"name": "knex-paginate",
"version": "1.0.0",
"version": "1.1.0",
"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