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

redux-zero

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-zero - npm Package Compare versions

Comparing version 4.10.0 to 4.10.1

4

CHANGELOG.md
# Changelog
### 4.10.1
- Fix bug of devtools middleware - handle async actions
### 4.10.0

@@ -4,0 +8,0 @@

@@ -60,2 +60,7 @@ 'use strict';

getOrAddAction(action, function () { return next(action); });
if (result && result.then) {
return result.then(function () {
return devTools.instance.send(action.name, store.getState());
});
}
devTools.instance.send(action.name, store.getState());

@@ -62,0 +67,0 @@ return result;

2

devtools/index.min.js

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t["redux-zero"]={})}(this,function(t){"use strict";function n(t,n){var e=u.find(function(n){return t.name===n.key});return e||(e={key:t.name,fn:n},u.push(e)),e}function e(t,n){var e=JSON.parse(n.state),i=function(n){if("initialState"===n.type)t.setState(e.computedStates[0].state);else{var i=u.find(function(t){return n.type===t.key});i&&i.fn()}},o=Object.keys(e.actionsById).filter(function(t){return parseInt(t,10)<=n.payload.id}),a=0;setTimeout(function t(){i(e.actionsById[o[a]].action),++a>=o.length||setTimeout(t,r)},0)}function i(t){"DISPATCH"===t.type&&("JUMP_TO_ACTION"===t.payload.type||"JUMP_TO_STATE"===t.payload.type?this.setState(JSON.parse(t.state)):"TOGGLE_ACTION"===t.payload.type&&e(this,t))}function o(t,n){if(!n.initialized){var e=i.bind(t);a.instance.subscribe(e),n.initialized=!0}}var a={instance:null},u=[],r=10,c=function(t){return function(e){return function(i){var u=e(i);return o(t,c),n(i,function(){return e(i)}),a.instance.send(i.name,t.getState()),u}}};void 0!==window&&window.__REDUX_DEVTOOLS_EXTENSION__&&(t.connect=function(t){return a.instance=window.__REDUX_DEVTOOLS_EXTENSION__.connect(),a.instance.send("initialState",t),c}),Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t["redux-zero"]={})}(this,function(t){"use strict";function n(t,n){var e=u.find(function(n){return t.name===n.key});return e||(e={key:t.name,fn:n},u.push(e)),e}function e(t,n){var e=JSON.parse(n.state),i=function(n){if("initialState"===n.type)t.setState(e.computedStates[0].state);else{var i=u.find(function(t){return n.type===t.key});i&&i.fn()}},a=Object.keys(e.actionsById).filter(function(t){return parseInt(t,10)<=n.payload.id}),o=0;setTimeout(function t(){i(e.actionsById[a[o]].action),++o>=a.length||setTimeout(t,r)},0)}function i(t){"DISPATCH"===t.type&&("JUMP_TO_ACTION"===t.payload.type||"JUMP_TO_STATE"===t.payload.type?this.setState(JSON.parse(t.state)):"TOGGLE_ACTION"===t.payload.type&&e(this,t))}function a(t,n){if(!n.initialized){var e=i.bind(t);o.instance.subscribe(e),n.initialized=!0}}var o={instance:null},u=[],r=10,c=function(t){return function(e){return function(i){var u=e(i);return a(t,c),n(i,function(){return e(i)}),u&&u.then?u.then(function(){return o.instance.send(i.name,t.getState())}):(o.instance.send(i.name,t.getState()),u)}}};void 0!==window&&window.__REDUX_DEVTOOLS_EXTENSION__&&(t.connect=function(t){return o.instance=window.__REDUX_DEVTOOLS_EXTENSION__.connect(),o.instance.send("initialState",t),c}),Object.defineProperty(t,"__esModule",{value:!0})});
{
"name": "redux-zero",
"version": "4.10.0",
"version": "4.10.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/redux-zero.js",

@@ -268,2 +268,3 @@ <h1 align="center">

* [Full Docs](https://matheusml1.gitbooks.io/redux-zero-docs/content/)
* [Contributing](https://github.com/concretesolutions/redux-zero/blob/master/CONTRIBUTING.md)

@@ -270,0 +271,0 @@ * [Changelog](https://github.com/concretesolutions/redux-zero/blob/master/CHANGELOG.md)

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