New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cornflux

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cornflux - npm Package Compare versions

Comparing version

to
1.1.0

CHANGELOG.md

2

package.json
{
"name": "cornflux",
"version": "1.0.2",
"version": "1.1.0",
"description": "A dispatching library for React applications promoting data encapsulation.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -14,2 +14,3 @@ import React, { PropTypes } from 'react';

verbose = false,
passDispatchProp = true,
}) {

@@ -56,3 +57,9 @@ const debugLog = verbose ? console.debug.bind(console) : Function.prototype;

render() {
return <Component ref="container" {...this.props} />
const decoratorProps = {};
if (passDispatchProp) {
decoratorProps.dispatch = this.dispatchAction;
}
return <Component ref="container" {...decoratorProps} {...this.props} />
},

@@ -59,0 +66,0 @@