react-paginate
Advanced tools
Comparing version 0.1.32 to 0.1.33
@@ -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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package