react-input-message
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -9,2 +9,4 @@ 'use strict'; | ||
var useRealContext = /^0\.14/.test(React.version); | ||
module.exports = function (Component) { | ||
@@ -23,3 +25,3 @@ return (function (_React$Component) { | ||
MessageListener.prototype.getContext = function getContext() { | ||
return process.env.NODE_ENV !== 'production' ? this.context : this._reactInternalInstance._context; | ||
return useRealContext ? this.context : this._reactInternalInstance._context; | ||
}; | ||
@@ -26,0 +28,0 @@ |
@@ -195,3 +195,3 @@ 'use strict'; | ||
if (process.env.NODE_ENV !== 'production') { | ||
if (!/^0\.14/.test(React.version) || process.env.NODE_ENV !== 'production') { | ||
// this is to avoid the warning but its hacky so lets do it a less hacky way in production | ||
@@ -198,0 +198,0 @@ return attachChildren(React.Children.only(props.children), context); |
@@ -11,2 +11,4 @@ 'use strict'; | ||
var useRealContext = /^0\.14/.test(React.version); | ||
var MessageTrigger = (function (_React$Component) { | ||
@@ -24,3 +26,3 @@ function MessageTrigger() { | ||
MessageTrigger.prototype.getContext = function getContext() { | ||
return process.env.NODE_ENV !== 'production' ? this.context : this._reactInternalInstance._context; | ||
return useRealContext ? this.context : this._reactInternalInstance._context; | ||
}; | ||
@@ -27,0 +29,0 @@ |
{ | ||
"name": "react-input-message", | ||
"description": "unopinionated form input annotation", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "url": "git://github.com/jquense/react-input-message.git" |
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
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
237115
5377
2