🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-paginate

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-paginate - npm Package Compare versions

Comparing version

to
0.1.33

10

dist/PaginationListView.js

@@ -24,3 +24,3 @@ 'use strict';

pageViews.forEach(function (pageView, index) {
items[String(index)] = pageView;
items['key' + index] = pageView;
});

@@ -54,3 +54,3 @@ } else {

if (page <= this.props.marginPagesDisplayed) {
items[String(index)] = pageView;
items['key' + index] = pageView;
continue;

@@ -60,3 +60,3 @@ }

if (page > this.props.pageNum - this.props.marginPagesDisplayed) {
items[String(index)] = pageView;
items['key' + index] = pageView;
continue;

@@ -66,3 +66,3 @@ }

if (index >= this.props.selected - leftSide && index <= this.props.selected + rightSide) {
items[String(index)] = pageView;
items['key' + index] = pageView;
continue;

@@ -76,3 +76,3 @@ }

if (breakLabelValue !== this.props.breakLabel) {
items[String(index)] = this.props.breakLabel;
items['key' + index] = this.props.breakLabel;
}

@@ -79,0 +79,0 @@ }

{
"name": "react-paginate",
"version": "0.1.32",
"version": "0.1.33",
"description": "A ReactJS component that creates a pagination.",

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

@@ -24,3 +24,3 @@ 'use strict';

pageViews.forEach(function(pageView, index) {
items[String(index)] = pageView;
items['key' + index] = pageView;
});

@@ -58,3 +58,3 @@

if (page <= this.props.marginPagesDisplayed) {
items[String(index)] = pageView;
items['key' + index] = pageView;
continue;

@@ -64,3 +64,3 @@ }

if (page > this.props.pageNum - this.props.marginPagesDisplayed) {
items[String(index)] = pageView;
items['key' + index] = pageView;
continue;

@@ -70,3 +70,3 @@ }

if ((index >= this.props.selected - leftSide) && (index <= this.props.selected + rightSide)) {
items[String(index)] = pageView;
items['key' + index] = pageView;
continue;

@@ -80,3 +80,3 @@ }

if (breakLabelValue !== this.props.breakLabel) {
items[String(index)] = this.props.breakLabel;
items['key' + index] = this.props.breakLabel;
}

@@ -83,0 +83,0 @@ }