Socket
Socket
Sign inDemoInstall

react-input-message

Package Overview
Dependencies
6
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.2 to 0.6.3

4

lib/connectToMessageContainer.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc