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

6

es/Options.js

@@ -87,7 +87,5 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";

value: function getValidValue() {
var _this$state = this.state,
goInputText = _this$state.goInputText,
current = _this$state.current; // eslint-disable-next-line no-restricted-globals
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
return !goInputText || isNaN(goInputText) ? current : Number(goInputText);
return !goInputText || isNaN(goInputText) ? undefined : Number(goInputText);
}

@@ -94,0 +92,0 @@ }, {

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

if (typeof icon === 'function') {
iconNode = React.createElement(icon, _objectSpread({}, _this.props));
iconNode = /*#__PURE__*/React.createElement(icon, _objectSpread({}, _this.props));
}

@@ -328,3 +328,3 @@

var disabled = !this.hasPrev();
return isValidElement(prevButton) ? cloneElement(prevButton, {
return /*#__PURE__*/isValidElement(prevButton) ? /*#__PURE__*/cloneElement(prevButton, {
disabled: disabled

@@ -341,3 +341,3 @@ }) : prevButton;

var disabled = !this.hasNext();
return isValidElement(nextButton) ? cloneElement(nextButton, {
return /*#__PURE__*/isValidElement(nextButton) ? /*#__PURE__*/cloneElement(nextButton, {
disabled: disabled

@@ -555,3 +555,3 @@ }) : nextButton;

if (current - 1 >= pageBufferSize * 2 && current !== 1 + 2) {
pagerList[0] = cloneElement(pagerList[0], {
pagerList[0] = /*#__PURE__*/cloneElement(pagerList[0], {
className: "".concat(prefixCls, "-item-after-jump-prev")

@@ -563,3 +563,3 @@ });

if (allPages - current >= pageBufferSize * 2 && current !== allPages - 2) {
pagerList[pagerList.length - 1] = cloneElement(pagerList[pagerList.length - 1], {
pagerList[pagerList.length - 1] = /*#__PURE__*/cloneElement(pagerList[pagerList.length - 1], {
className: "".concat(prefixCls, "-item-before-jump-next")

@@ -566,0 +566,0 @@ });

@@ -100,7 +100,5 @@ "use strict";

value: function getValidValue() {
var _this$state = this.state,
goInputText = _this$state.goInputText,
current = _this$state.current; // eslint-disable-next-line no-restricted-globals
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
return !goInputText || isNaN(goInputText) ? current : Number(goInputText);
return !goInputText || isNaN(goInputText) ? undefined : Number(goInputText);
}

@@ -107,0 +105,0 @@ }, {

@@ -85,3 +85,3 @@ "use strict";

if (typeof icon === 'function') {
iconNode = _react.default.createElement(icon, (0, _objectSpread2.default)({}, _this.props));
iconNode = /*#__PURE__*/_react.default.createElement(icon, (0, _objectSpread2.default)({}, _this.props));
}

@@ -350,3 +350,3 @@

var disabled = !this.hasPrev();
return (0, _react.isValidElement)(prevButton) ? (0, _react.cloneElement)(prevButton, {
return /*#__PURE__*/(0, _react.isValidElement)(prevButton) ? /*#__PURE__*/(0, _react.cloneElement)(prevButton, {
disabled: disabled

@@ -363,3 +363,3 @@ }) : prevButton;

var disabled = !this.hasNext();
return (0, _react.isValidElement)(nextButton) ? (0, _react.cloneElement)(nextButton, {
return /*#__PURE__*/(0, _react.isValidElement)(nextButton) ? /*#__PURE__*/(0, _react.cloneElement)(nextButton, {
disabled: disabled

@@ -577,3 +577,3 @@ }) : nextButton;

if (current - 1 >= pageBufferSize * 2 && current !== 1 + 2) {
pagerList[0] = (0, _react.cloneElement)(pagerList[0], {
pagerList[0] = /*#__PURE__*/(0, _react.cloneElement)(pagerList[0], {
className: "".concat(prefixCls, "-item-after-jump-prev")

@@ -585,3 +585,3 @@ });

if (allPages - current >= pageBufferSize * 2 && current !== allPages - 2) {
pagerList[pagerList.length - 1] = (0, _react.cloneElement)(pagerList[pagerList.length - 1], {
pagerList[pagerList.length - 1] = /*#__PURE__*/(0, _react.cloneElement)(pagerList[pagerList.length - 1], {
className: "".concat(prefixCls, "-item-before-jump-next")

@@ -588,0 +588,0 @@ });

{
"name": "rc-pagination",
"version": "3.1.2",
"version": "3.1.3",
"description": "pagination ui component for react",

@@ -52,4 +52,4 @@ "keywords": [

"@types/jest": "^26.0.13",
"@types/react": "^16.9.2",
"@types/react-dom": "^16.9.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@umijs/fabric": "^2.0.3",

@@ -64,6 +64,6 @@ "coveralls": "^3.0.6",

"less": "^3.10.3",
"np": "^6.2.0",
"np": "^7.0.0",
"prettier": "^2.0.1",
"pretty-quick": "^3.0.0",
"rc-select": "^11.0.0",
"rc-select": "^12.0.0",
"react": "^16.0.0",

@@ -70,0 +70,0 @@ "react-dom": "^16.0.0",

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