mongoose-paginate-v2
Advanced tools
Comparing version 1.8.1 to 1.8.2
# Changelog | ||
## v1.8.2 | ||
[2024-05-29] | ||
- MongoDB < 3.4: Fix for countDocument | ||
## v1.8.1 | ||
@@ -4,0 +10,0 @@ |
@@ -125,3 +125,3 @@ "use strict"; | ||
} else { | ||
countPromise = this.countDocuments(query, findOptions).exec(); | ||
countPromise = this.countDocuments(query).exec(); | ||
} | ||
@@ -138,3 +138,3 @@ } else { | ||
} else { | ||
countPromise = this.countDocuments(query, findOptions).exec(); | ||
countPromise = this.countDocuments(query).exec(); | ||
} | ||
@@ -141,0 +141,0 @@ } |
{ | ||
"name": "mongoose-paginate-v2", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"description": "A custom pagination library for Mongoose with customizable labels.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -6,7 +6,11 @@ ![Banner](static/banner.jpg) | ||
[![npm version](https://img.shields.io/npm/v/mongoose-paginate-v2.svg)](https://www.npmjs.com/package/mongoose-paginate-v2) | ||
[![Build Status](https://travis-ci.com/aravindnc/mongoose-paginate-v2.svg?branch=master)](https://travis-ci.com/aravindnc/mongoose-paginate-v2) | ||
[![Build Status](https://github.com/aravindnc/mongoose-paginate-v2/actions/workflows/build.yml/badge.svg)](#) | ||
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/aravindnc/mongoose-paginate-v2/issues) | ||
[![Downloads](https://img.shields.io/npm/dm/mongoose-paginate-v2.svg)](https://img.shields.io/npm/dm/mongoose-paginate-v2.svg) | ||
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Faravindnc%2Fmongoose-paginate-v2.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Faravindnc%2Fmongoose-paginate-v2?ref=badge_shield) | ||
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/aravindnc/mongoose-paginate-v2) | ||
![npms.io](https://img.shields.io/npms-io/maintenance-score/mongoose-paginate-v2) | ||
![npms.io](https://img.shields.io/npms-io/quality-score/mongoose-paginate-v2) | ||
> A custom pagination library for [Mongoose](http://mongoosejs.com) with customizable labels. | ||
@@ -13,0 +17,0 @@ |
@@ -142,3 +142,3 @@ /** | ||
} else { | ||
countPromise = this.countDocuments(query, findOptions).exec(); | ||
countPromise = this.countDocuments(query).exec(); | ||
} | ||
@@ -157,3 +157,3 @@ } else { | ||
} else { | ||
countPromise = this.countDocuments(query, findOptions).exec(); | ||
countPromise = this.countDocuments(query).exec(); | ||
} | ||
@@ -160,0 +160,0 @@ } |
Sorry, the diff of this file is not supported yet
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
328043
26
460