Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

immer-reducer

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

immer-reducer - npm Package Compare versions

Comparing version 0.7.3 to 0.7.4

13

lib/immer-reducer.js

@@ -130,12 +130,5 @@ "use strict";

}
// Pass args to the action object only when the reducer method
// actually takes args. This for example avoids putting the event
// object inside the action object when a bound action creator is
// passed directly to a event handler
if (method.length > 0) {
return createImmerAction(type, args);
}
else {
return createImmerAction(type, []);
}
// Make sure only the arguments are passed to the action object that
// are defined in the method
return createImmerAction(type, args.slice(0, method.length));
};

@@ -142,0 +135,0 @@ actionCreator.type = type;

{
"name": "immer-reducer",
"version": "0.7.3",
"version": "0.7.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/immer-reducer.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc