Skip to content

Commit 4fe3a82

Browse files
committed
Replaces yarn with npm@5.
Sets dev version of node to 8.1.0 Updates dev dependencies Updates builds.
1 parent de56c6c commit 4fe3a82

File tree

7 files changed

+5767
-5328
lines changed

7 files changed

+5767
-5328
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.10.1
1+
8.1.0

commonjs/sizeMe.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,15 @@ Placeholder.displayName = 'SizeMePlaceholder';
114114
Placeholder.propTypes = {
115115
className: _propTypes2.default.string,
116116
style: _propTypes2.default.object
117-
};
118117

119-
/**
120-
* As we need to maintain a ref on the root node that is rendered within our
121-
* SizeMe component we need to wrap our entire render in a sub component.
122-
* Without this, we lose the DOM ref after the placeholder is removed from
123-
* the render and the actual component is rendered.
124-
* It took me forever to figure this out, so tread extra careful on this one!
125-
*/
126-
var renderWrapper = function renderWrapper(WrappedComponent) {
118+
/**
119+
* As we need to maintain a ref on the root node that is rendered within our
120+
* SizeMe component we need to wrap our entire render in a sub component.
121+
* Without this, we lose the DOM ref after the placeholder is removed from
122+
* the render and the actual component is rendered.
123+
* It took me forever to figure this out, so tread extra careful on this one!
124+
*/
125+
};var renderWrapper = function renderWrapper(WrappedComponent) {
127126
function SizeMeRenderer(props) {
128127
var explicitRef = props.explicitRef,
129128
className = props.className,
@@ -163,7 +162,8 @@ var renderWrapper = function renderWrapper(WrappedComponent) {
163162
style: _propTypes2.default.object, // eslint-disable-line react/forbid-prop-types
164163
size: _propTypes2.default.shape({
165164
width: _propTypes2.default.number, // eslint-disable-line react/no-unused-prop-types
166-
height: _propTypes2.default.number }),
165+
height: _propTypes2.default.number // eslint-disable-line react/no-unused-prop-types
166+
}),
167167
disablePlaceholder: _propTypes2.default.bool
168168
};
169169

0 commit comments

Comments
 (0)