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

react-paginate

Package Overview
Dependencies
Maintainers
1
Versions
106
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 4.4.2 to 4.4.3

11

dist/PaginationBoxView.js

@@ -106,2 +106,5 @@ 'use strict';

var breakView = void 0;
var createPageView = function createPageView(index) {
return _this.getPageElement(index);
};

@@ -112,6 +115,4 @@ for (_index = 0; _index < _this.props.pageCount; _index++) {

var pageView = _this.getPageElement(_index);
if (page <= _this.props.marginPagesDisplayed) {
items['key' + _index] = pageView;
items['key' + _index] = createPageView(_index);
continue;

@@ -121,3 +122,3 @@ }

if (page > _this.props.pageCount - _this.props.marginPagesDisplayed) {
items['key' + _index] = pageView;
items['key' + _index] = createPageView(_index);
continue;

@@ -127,3 +128,3 @@ }

if (_index >= _this.state.selected - leftSide && _index <= _this.state.selected + rightSide) {
items['key' + _index] = pageView;
items['key' + _index] = createPageView(_index);
continue;

@@ -130,0 +131,0 @@ }

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

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

@@ -154,2 +154,3 @@ 'use strict';

let breakView;
let createPageView = (index) => this.getPageElement(index);

@@ -160,6 +161,4 @@ for (index = 0; index < this.props.pageCount; index++) {

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

@@ -169,3 +168,3 @@ }

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

@@ -175,3 +174,3 @@ }

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

@@ -178,0 +177,0 @@ }

Sorry, the diff of this file is not supported yet

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