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

@doctolib/react-paginator

Package Overview
Dependencies
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@doctolib/react-paginator - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

lib/PureComponent.js

12

lib/Button.js

@@ -9,2 +9,6 @@ 'use strict';

var _PureComponent2 = require('./PureComponent');
var _PureComponent3 = _interopRequireDefault(_PureComponent2);
var _classnames = require('classnames');

@@ -22,4 +26,4 @@

var Button = function (_Component) {
_inherits(Button, _Component);
var Button = function (_PureComponent) {
_inherits(Button, _PureComponent);

@@ -35,3 +39,3 @@ function Button() {

return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.handleClick = function (event) {
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _PureComponent.call.apply(_PureComponent, [this].concat(args))), _this), _this.handleClick = function (event) {
event.preventDefault();

@@ -71,3 +75,3 @@ if (_this.props.onPageChange) _this.props.onPageChange(_this.props.page);

return Button;
}(_react.Component);
}(_PureComponent3.default);

@@ -74,0 +78,0 @@ Button.propTypes = {

@@ -9,2 +9,6 @@ 'use strict';

var _PureComponent2 = require('./PureComponent');
var _PureComponent3 = _interopRequireDefault(_PureComponent2);
var _utils = require('./utils');

@@ -20,4 +24,4 @@

var Infos = function (_Component) {
_inherits(Infos, _Component);
var Infos = function (_PureComponent) {
_inherits(Infos, _PureComponent);

@@ -27,3 +31,3 @@ function Infos() {

return _possibleConstructorReturn(this, _Component.apply(this, arguments));
return _possibleConstructorReturn(this, _PureComponent.apply(this, arguments));
}

@@ -41,3 +45,3 @@

return Infos;
}(_react.Component);
}(_PureComponent3.default);

@@ -44,0 +48,0 @@ Infos.propTypes = {

@@ -9,2 +9,6 @@ 'use strict';

var _PureComponent2 = require('./PureComponent');
var _PureComponent3 = _interopRequireDefault(_PureComponent2);
var _lodash = require('lodash.range');

@@ -32,4 +36,4 @@

var Paginator = function (_Component) {
_inherits(Paginator, _Component);
var Paginator = function (_PureComponent) {
_inherits(Paginator, _PureComponent);

@@ -45,3 +49,3 @@ function Paginator() {

return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.handlePageChange = function (page) {
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _PureComponent.call.apply(_PureComponent, [this].concat(args))), _this), _this.handlePageChange = function (page) {
if (page >= 1 && page <= _this.getNbPages() && !_this.props.disabled) _this.props.onPageChange(page);

@@ -327,3 +331,3 @@ }, _this.renderPage = function (page, index) {

return Paginator;
}(_react.Component);
}(_PureComponent3.default);

@@ -330,0 +334,0 @@ Paginator.propTypes = {

{
"name": "@doctolib/react-paginator",
"version": "2.0.0",
"version": "2.0.1",
"description": "Basic paginator component for React.",

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

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