Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generic-paginate

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generic-paginate - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

5

lib/paginate.js

@@ -38,5 +38,6 @@ var Paginator = function( options ){

out.prev = pageNumber > 1 ? pageNumber - 1 : null;
out.page = pageNumber;
out.currentPage = pageNumber;
out.range = range;
out.total = pageCount;
out.totalPages = pageCount;
out.totalItems = count;
out.size = resultsPerPage;

@@ -43,0 +44,0 @@ out.start = ( (pageNumber-1)*resultsPerPage ) + 1 ;

2

package.json
{
"name": "generic-paginate",
"version": "0.0.3",
"version": "0.0.4",
"description": "A simple class that calculates pagination params that is easly usable in a View",

@@ -5,0 +5,0 @@ "main": "lib/paginate.js",

@@ -46,5 +46,6 @@ Generic-paginate

* prev: 5,
* page: 6,
* currentPage: 6,
* range: { '3': '', '4': '', '5': '', '6': 'active', '7': '' },
* total: 7,
* totalPages: 7,
* totalItems: 13
* size: 2,

@@ -51,0 +52,0 @@ * start: 11

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