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

@doctolib/react-autoresize-table

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@doctolib/react-autoresize-table - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

21

lib/AutoresizeTable.js
'use strict';
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
var _react = require('react');

@@ -15,2 +15,4 @@

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**

@@ -23,3 +25,3 @@ * Properties that will trigger an updateNbVisibleRows.

exports['default'] = _react2['default'].createClass({
exports.default = _react2.default.createClass({
displayName: 'AutoresizeTable',

@@ -40,3 +42,2 @@

},
componentDidMount: function componentDidMount() {

@@ -46,3 +47,2 @@ window.addEventListener('resize', this.onResize);

},
componentWillReceiveProps: function componentWillReceiveProps(nextProps) {

@@ -57,3 +57,2 @@ var _this = this;

},
componentWillUnmount: function componentWillUnmount() {

@@ -107,3 +106,3 @@ window.removeEventListener('resize', this.onResize);

getTable: function getTable() {
var domElement = _reactDom2['default'].findDOMNode(this);
var domElement = _reactDom2.default.findDOMNode(this);

@@ -152,9 +151,7 @@ if (domElement.tagName.toLowerCase() !== 'table') throw new Error('Your child must be of type table');

},
render: function render() {
if (_react2['default'].Children.count(this.props.children) !== 1) throw new Error('You must have only one child of type table');
if (_react2.default.Children.count(this.props.children) !== 1) throw new Error('You must have only one child of type table');
return this.props.children;
}
});
module.exports = exports['default'];
});
'use strict';
var _interopRequire = require('babel-runtime/helpers/interop-require')['default'];
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
var _AutoresizeTable = require('./AutoresizeTable');
exports['default'] = _interopRequire(_AutoresizeTable);
module.exports = exports['default'];
Object.defineProperty(exports, 'default', {
enumerable: true,
get: function get() {
return _AutoresizeTable.default;
}
});
{
"name": "@doctolib/react-autoresize-table",
"version": "1.0.0",
"version": "1.1.0",
"description": "Autoresize table for React.",

@@ -10,3 +10,2 @@ "main": "lib/index.js",

"scripts": {
"cover": "gulp cover",
"coveralls": "gulp coveralls",

@@ -31,4 +30,7 @@ "travis": "npm run lint && gulp coveralls",

"devDependencies": {
"@doctolib/gulp-tasks": "^1.2.0",
"babel-eslint": "^4.1.3",
"@doctolib/gulp-tasks": "^3.0.2",
"babel-eslint": "^5.0.0-beta6",
"babel-plugin-transform-runtime": "^6.1.2",
"babel-preset-es2015": "^6.1.2",
"babel-preset-react": "^6.1.2",
"chai": "^3.4.0",

@@ -40,5 +42,3 @@ "eslint": "^1.7.3",

"gulp": "^3.9.0",
"jsdom": "^7.0.2",
"lodash.range": "^3.0.1",
"mocha-jsdom": "^1.0.0",
"react": "^0.14.0",

@@ -45,0 +45,0 @@ "react-addons-test-utils": "^0.14.2",

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