Socket
Socket
Sign inDemoInstall

mongoose-paginate-v2

Package Overview
Dependencies
0
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.0 to 1.4.1

6

CHANGELOG.md
# Changelog
## v1.4.1
[2021-07-08]
- Removed test case for allowDiskUse, which cause build to fail on lower MongoDB versions.
## v1.4.0

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

2

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

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

@@ -569,30 +569,2 @@ 'use strict';

it('with allowDiskUse=true', function () {
var query = {
title: {
$in: [/Book/i],
},
};
var options = {
limit: 10,
page: 5,
lean: true,
allowDiskUse: true,
};
return Book.paginate(query, options).then((result) => {
expect(result.docs).to.have.length(10);
expect(result.totalDocs).to.equal(100);
expect(result.limit).to.equal(10);
expect(result.page).to.equal(5);
expect(result.pagingCounter).to.equal(41);
expect(result.hasPrevPage).to.equal(true);
expect(result.hasNextPage).to.equal(true);
expect(result.prevPage).to.equal(4);
expect(result.nextPage).to.equal(6);
expect(result.totalPages).to.equal(10);
});
});
after(function (done) {

@@ -599,0 +571,0 @@ mongoose.connection.db.dropDatabase(done);

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