mongoose-paginate-v2
Advanced tools
Comparing version 1.3.14 to 1.3.15
# Changelog | ||
## v1.3.15 | ||
[2021-02-21] | ||
- Fixed issues where no results or incorrect count are returned when using collations. | ||
## v1.3.14 | ||
@@ -4,0 +10,0 @@ |
@@ -125,3 +125,3 @@ "use strict"; | ||
// Deprecated since starting from MongoDB Node.JS driver v3.1 | ||
countPromise = this.count(query).exec(); | ||
countPromise = this.count(query).collation(collation).exec(); | ||
} else { | ||
@@ -133,3 +133,3 @@ if (useEstimatedCount === true) { | ||
} else { | ||
countPromise = this.countDocuments(query).exec(); | ||
countPromise = this.countDocuments(query).collation(collation).exec(); | ||
} | ||
@@ -136,0 +136,0 @@ } |
{ | ||
"name": "mongoose-paginate-v2", | ||
"version": "1.3.14", | ||
"version": "1.3.15", | ||
"description": "A cursor based custom pagination library for Mongoose with customizable labels.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -120,3 +120,3 @@ /** | ||
// Deprecated since starting from MongoDB Node.JS driver v3.1 | ||
countPromise = this.count(query).exec(); | ||
countPromise = this.count(query).collation(collation).exec(); | ||
} else { | ||
@@ -128,3 +128,3 @@ if (useEstimatedCount === true) { | ||
} else { | ||
countPromise = this.countDocuments(query).exec(); | ||
countPromise = this.countDocuments(query).collation(collation).exec(); | ||
} | ||
@@ -131,0 +131,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
283400