Skip to content

Commit

Permalink
Replaces yarn with npm@5.
Browse files Browse the repository at this point in the history
Sets dev version of node to 8.1.0
Updates dev dependencies
Updates builds.
  • Loading branch information
ctrlplusb committed Jun 19, 2017
1 parent de56c6c commit 4fe3a82
Show file tree
Hide file tree
Showing 7 changed files with 5,767 additions and 5,328 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.10.1
8.1.0
20 changes: 10 additions & 10 deletions commonjs/sizeMe.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,15 @@ Placeholder.displayName = 'SizeMePlaceholder';
Placeholder.propTypes = {
className: _propTypes2.default.string,
style: _propTypes2.default.object
};

/**
* As we need to maintain a ref on the root node that is rendered within our
* SizeMe component we need to wrap our entire render in a sub component.
* Without this, we lose the DOM ref after the placeholder is removed from
* the render and the actual component is rendered.
* It took me forever to figure this out, so tread extra careful on this one!
*/
var renderWrapper = function renderWrapper(WrappedComponent) {
/**
* As we need to maintain a ref on the root node that is rendered within our
* SizeMe component we need to wrap our entire render in a sub component.
* Without this, we lose the DOM ref after the placeholder is removed from
* the render and the actual component is rendered.
* It took me forever to figure this out, so tread extra careful on this one!
*/
};var renderWrapper = function renderWrapper(WrappedComponent) {
function SizeMeRenderer(props) {
var explicitRef = props.explicitRef,
className = props.className,
Expand Down Expand Up @@ -163,7 +162,8 @@ var renderWrapper = function renderWrapper(WrappedComponent) {
style: _propTypes2.default.object, // eslint-disable-line react/forbid-prop-types
size: _propTypes2.default.shape({
width: _propTypes2.default.number, // eslint-disable-line react/no-unused-prop-types
height: _propTypes2.default.number }),
height: _propTypes2.default.number // eslint-disable-line react/no-unused-prop-types
}),
disablePlaceholder: _propTypes2.default.bool
};

Expand Down
Loading

0 comments on commit 4fe3a82

Please sign in to comment.