Comparing version 0.11.1 to 0.11.2
{ | ||
"name": "recompose", | ||
"version": "0.11.1", | ||
"version": "0.11.2", | ||
"author": "Andrew Clark <acdlite@me.com>", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -5,4 +5,2 @@ 'use strict'; | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
@@ -29,7 +27,7 @@ | ||
return (function (_Component) { | ||
_inherits(_class, _Component); | ||
var ToClass = (function (_Component) { | ||
_inherits(ToClass, _Component); | ||
function _class() { | ||
_classCallCheck(this, _class); | ||
function ToClass() { | ||
_classCallCheck(this, ToClass); | ||
@@ -39,26 +37,15 @@ _Component.apply(this, arguments); | ||
_class.prototype.render = function render() { | ||
ToClass.prototype.render = function render() { | ||
return baseComponent(this.props, this.context); | ||
}; | ||
_createClass(_class, null, [{ | ||
key: 'displayName', | ||
value: _getDisplayName2['default'](baseComponent), | ||
enumerable: true | ||
}, { | ||
key: 'propTypes', | ||
value: baseComponent.propTypes, | ||
enumerable: true | ||
}, { | ||
key: 'contextTypes', | ||
value: baseComponent.contextTypes, | ||
enumerable: true | ||
}, { | ||
key: 'defaultProps', | ||
value: baseComponent.defaultProps, | ||
enumerable: true | ||
}]); | ||
return ToClass; | ||
})(_react.Component); | ||
return _class; | ||
})(_react.Component); | ||
ToClass.displayName = _getDisplayName2['default'](baseComponent); | ||
ToClass.propTypes = baseComponent.propTypes; | ||
ToClass.contextTypes = baseComponent.contextTypes; | ||
ToClass.defaultProps = baseComponent.defaultProps; | ||
return ToClass; | ||
}; | ||
@@ -65,0 +52,0 @@ |
@@ -5,4 +5,2 @@ 'use strict'; | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
@@ -25,9 +23,9 @@ | ||
var withContext = function withContext(childContextTypes, getChildContext, BaseComponent) { | ||
return (function (_Component) { | ||
_inherits(_class, _Component); | ||
var WithContext = (function (_Component) { | ||
_inherits(WithContext, _Component); | ||
function _class() { | ||
function WithContext() { | ||
var _this = this; | ||
_classCallCheck(this, _class); | ||
_classCallCheck(this, WithContext); | ||
@@ -41,14 +39,12 @@ _Component.apply(this, arguments); | ||
_class.prototype.render = function render() { | ||
WithContext.prototype.render = function render() { | ||
return _createElement2['default'](BaseComponent, this.props); | ||
}; | ||
_createClass(_class, null, [{ | ||
key: 'childContextTypes', | ||
value: childContextTypes, | ||
enumerable: true | ||
}]); | ||
return WithContext; | ||
})(_react.Component); | ||
return _class; | ||
})(_react.Component); | ||
WithContext.childContextTypes = childContextTypes; | ||
return WithContext; | ||
}; | ||
@@ -55,0 +51,0 @@ |
54494
972