You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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

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