Comparing version 2.3.1 to 2.4.0
@@ -57,4 +57,10 @@ const isString = require('lodash/isString'); | ||
*/ | ||
dispatch(action) { | ||
Socket.dispatch(this.nativeSocket, action); | ||
dispatch(name, type, payload, merge) { | ||
if (typeof name === 'object' && name !== null) { | ||
Socket.dispatch(this.nativeSocket, name); | ||
return this; | ||
} | ||
Socket.dispatch( | ||
this.nativeSocket, this.redbone.makeAction(name, type, payload, merge) | ||
); | ||
return this; | ||
@@ -61,0 +67,0 @@ } |
{ | ||
"name": "redbone", | ||
"version": "2.3.1", | ||
"version": "2.4.0", | ||
"description": "Polymorphic library for two way redux dispatching", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
92032
993