@doctolib/react-autoresize-table
Advanced tools
Comparing version 1.0.0 to 1.1.0
'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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7857
128
17
1