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.2 to 0.0.3

2

lib/paginate.js

@@ -36,2 +36,4 @@ var Paginator = function( options ){

var out = {};
out.next = pageNumber < pageCount ? pageNumber + 1 : null;
out.prev = pageNumber > 1 ? pageNumber - 1 : null;
out.page = pageNumber;

@@ -38,0 +40,0 @@ out.range = range;

2

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

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

@@ -44,2 +44,4 @@ Generic-paginate

* pagination = {
* next: 7,
* prev: 5,
* page: 6,

@@ -46,0 +48,0 @@ * range: { '3': '', '4': '', '5': '', '6': 'active', '7': '' },

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