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.7.23 to 1.7.31

6

CHANGELOG.md
# Changelog
## v1.7.3
- Fix - set limit when limit is 0
## v1.7.2
- Fix #194
## v1.7.1

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

2

dist/pagination-parameters.js

@@ -120,3 +120,3 @@ "use strict";

if (page) options['page'] = Number(page);
if (limit) options['limit'] = Number(limit);
if (limit || limit == 0) options['limit'] = Number(limit);
if (customLabels) options['customLabels'] = this.optObjectOrString(customLabels);

@@ -123,0 +123,0 @@ if (pagination !== undefined) options['pagination'] = this.booleanOpt(pagination);

{
"name": "mongoose-paginate-v2",
"version": "1.7.23",
"version": "1.7.31",
"description": "A custom pagination library for Mongoose with customizable labels.",

@@ -10,3 +10,3 @@ "main": "dist/index.js",

"test": "mocha tests/*.js -R spec --ui bdd --timeout 9999999",
"build": "babel src -d dist",
"build": "babel src -d dist",
"lint": "eslint \"tests\" \"src\" \".eslintrc.js\" --fix",

@@ -13,0 +13,0 @@ "prettier": "prettier --write \"{src,tests}/**/*.js\" \"*.md\"",

@@ -101,3 +101,3 @@ class PaginationParametersHelper {

if (page) options['page'] = Number(page);
if (limit) options['limit'] = Number(limit);
if (limit || limit == 0) options['limit'] = Number(limit);
if (customLabels)

@@ -104,0 +104,0 @@ options['customLabels'] = this.optObjectOrString(customLabels);

Sorry, the diff of this file is not supported yet

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