Socket
Socket
Sign inDemoInstall

rc-pagination

Package Overview
Dependencies
Maintainers
2
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 1.1.0 to 1.1.1

4

lib/Options.js

@@ -16,2 +16,4 @@ 'use strict';

var Options = (function (_React$Component) {
_inherits(Options, _React$Component);
function Options(props) {

@@ -28,4 +30,2 @@ var _this = this;

_inherits(Options, _React$Component);
_createClass(Options, [{

@@ -32,0 +32,0 @@ key: 'render',

@@ -14,2 +14,4 @@ 'use strict';

var Pager = (function (_React$Component) {
_inherits(Pager, _React$Component);
function Pager() {

@@ -21,4 +23,2 @@ _classCallCheck(this, Pager);

_inherits(Pager, _React$Component);
_createClass(Pager, [{

@@ -25,0 +25,0 @@ key: 'render',

@@ -18,2 +18,4 @@ 'use strict';

var Pagination = (function (_React$Component) {
_inherits(Pagination, _React$Component);
function Pagination(props) {

@@ -36,4 +38,2 @@ var _this = this;

_inherits(Pagination, _React$Component);
_createClass(Pagination, [{

@@ -184,3 +184,3 @@ key: 'componentWillReceiveProps',

value: function _calcPage() {
return Math.floor((this.props.total - 1) / this.state.pageSize);
return Math.floor((this.props.total - 1) / this.state.pageSize) + 1;
}

@@ -187,0 +187,0 @@ }, {

{
"name": "rc-pagination",
"version": "1.1.0",
"version": "1.1.1",
"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