New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mongoose-paginate-v2

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-paginate-v2 - npm Package Compare versions

Comparing version 1.3.15 to 1.3.16

6

CHANGELOG.md
# Changelog
## v1.3.16
[2021-02-24]
- Collation fix for MongoDB v3.4 and less.
## v1.3.15

@@ -4,0 +10,0 @@

14

dist/index.js

@@ -125,3 +125,8 @@ "use strict";

// Deprecated since starting from MongoDB Node.JS driver v3.1
countPromise = this.count(query).collation(collation).exec();
// Hack for mongo < v3.4
if (Object.keys(collation).length > 0) {
countPromise = this.count(query).collation(collation).exec();
} else {
countPromise = this.count(query).exec();
}
} else {

@@ -133,3 +138,8 @@ if (useEstimatedCount === true) {

} else {
countPromise = this.countDocuments(query).collation(collation).exec();
// Hack for mongo < v3.4
if (Object.keys(collation).length > 0) {
countPromise = this.countDocuments(query).collation(collation).exec();
} else {
countPromise = this.countDocuments(query).exec();
}
}

@@ -136,0 +146,0 @@ }

2

package.json
{
"name": "mongoose-paginate-v2",
"version": "1.3.15",
"version": "1.3.16",
"description": "A cursor based custom pagination library for Mongoose with customizable labels.",

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

@@ -120,3 +120,9 @@ /**

// Deprecated since starting from MongoDB Node.JS driver v3.1
countPromise = this.count(query).collation(collation).exec();
// Hack for mongo < v3.4
if (Object.keys(collation).length > 0) {
countPromise = this.count(query).collation(collation).exec();
} else {
countPromise = this.count(query).exec();
}
} else {

@@ -128,3 +134,8 @@ if (useEstimatedCount === true) {

} else {
countPromise = this.countDocuments(query).collation(collation).exec();
// Hack for mongo < v3.4
if (Object.keys(collation).length > 0) {
countPromise = this.countDocuments(query).collation(collation).exec();
} else {
countPromise = this.countDocuments(query).exec();
}
}

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