Socket
Socket
Sign inDemoInstall

rc-pagination

Package Overview
Dependencies
Maintainers
9
Versions
202
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-pagination - npm Package Compare versions

Comparing version 3.1.9 to 3.1.10

10

es/Pagination.js

@@ -74,3 +74,4 @@ import _extends from "@babel/runtime/helpers/esm/extends";

_this.isValid = function (page) {
return isInteger(page) && page !== _this.state.current;
var total = _this.props.total;
return isInteger(page) && page !== _this.state.current && isInteger(total) && total > 0;
};

@@ -117,2 +118,8 @@

_this.handleBlur = function (e) {
var value = _this.getValidValue(e);
_this.handleChange(value);
};
_this.changePageSize = function (size) {

@@ -441,2 +448,3 @@ var current = _this.state.current;

onChange: this.handleKeyUp,
onBlur: this.handleBlur,
size: "3"

@@ -443,0 +451,0 @@ }), /*#__PURE__*/React.createElement("span", {

@@ -96,3 +96,4 @@ "use strict";

_this.isValid = function (page) {
return isInteger(page) && page !== _this.state.current;
var total = _this.props.total;
return isInteger(page) && page !== _this.state.current && isInteger(total) && total > 0;
};

@@ -139,2 +140,8 @@

_this.handleBlur = function (e) {
var value = _this.getValidValue(e);
_this.handleChange(value);
};
_this.changePageSize = function (size) {

@@ -463,2 +470,3 @@ var current = _this.state.current;

onChange: this.handleKeyUp,
onBlur: this.handleBlur,
size: "3"

@@ -465,0 +473,0 @@ }), /*#__PURE__*/_react.default.createElement("span", {

2

package.json
{
"name": "rc-pagination",
"version": "3.1.9",
"version": "3.1.10",
"description": "pagination ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

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