Socket
Socket
Sign inDemoInstall

sequelizejs-cursor-pagination

Package Overview
Dependencies
23
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

5

__tests__/index.js

@@ -7,2 +7,3 @@ const test = require('ava');

const withPagination = require('../src');
const { Op } = Sequelize;

@@ -115,3 +116,3 @@ const Test = sequelize.define('test', {

id: {
$lte: 3,
[Op.lte]: 3,
}

@@ -130,3 +131,3 @@ },

id: {
$lte: 3,
[Op.lte]: 3,
}

@@ -133,0 +134,0 @@ },

4

package.json

@@ -7,3 +7,3 @@ {

"description": "Sequelize model decorator which provides cursor based pagination queries",
"version": "2.0.0",
"version": "2.0.1",
"main": "./src/index.js",

@@ -36,4 +36,4 @@ "license": "MIT",

"sequelize": "^5.19.8",
"sqlite3": "^3.1.11"
"sqlite3": "^4.1.0"
}
}

@@ -17,3 +17,3 @@ const Sequelize = require('sequelize');

return {
$or: [
[Op.or]: [
{

@@ -69,3 +69,3 @@ [paginationField]: {

const whereQuery = paginationQuery
? { $and: [paginationQuery, where] }
? { [Op.and]: [paginationQuery, where] }
: where;

@@ -72,0 +72,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc