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.2.0 to 1.2.1

10

CHANGELOG.md

@@ -7,2 +7,11 @@ ### Changelog

#### [v1.2.1](https://github.com/felixmosh/knex-paginate/compare/v1.2.0...v1.2.1)
> 29 April 2020
- fix(mssql): fix count request in MSSQL [`#7`](https://github.com/felixmosh/knex-paginate/pull/7)
- fix(mssql): fix count request in MSSQL (#7) [`#6`](https://github.com/felixmosh/knex-paginate/issues/6)
- Add test for clearing order statement from the count sub query. [`7a1301b`](https://github.com/felixmosh/knex-paginate/commit/7a1301b7e792ca818f5722145d7e26675da1411b)
- Bump dev deps [`b258c62`](https://github.com/felixmosh/knex-paginate/commit/b258c62fcd09915175a0f8bafc2d71aad9e3cf49)
#### [v1.2.0](https://github.com/felixmosh/knex-paginate/compare/v1.1.1...v1.2.0)

@@ -13,2 +22,3 @@

- Refactor count of query result by using subquery. [`#4`](https://github.com/felixmosh/knex-paginate/issues/4)
- Bump v1.2.0 [`ab44e85`](https://github.com/felixmosh/knex-paginate/commit/ab44e85781258fd67f5c55d68a8d5e1bab0ea112)
- Update deps & install auto-changelog [`368fbd5`](https://github.com/felixmosh/knex-paginate/commit/368fbd5b533e8c2467add26bcf8d7afe484f94bc)

@@ -15,0 +25,0 @@

4

lib/index.js

@@ -43,5 +43,7 @@ const Knex = require('knex');

.offset(0)
.clearOrder()
.as('__count__query__'),
)
.first();
.first()
.debug(this._debug);
}

@@ -48,0 +50,0 @@

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

@@ -35,7 +35,7 @@ "main": "lib/index.js",

"@types/jest": "^24.0.12",
"@types/node": "^12.0.0",
"auto-changelog": "^1.16.2",
"@types/node": "^12.12.37",
"auto-changelog": "^1.16.4",
"dotenv": "^8.2.0",
"jest": "^25.1.0",
"knex": "latest",
"jest": "^25.5.1",
"knex": "^0.21.1",
"mysql": "^2.18.1"

@@ -42,0 +42,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