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 5.0.3 to 5.0.4

4

CHANGELOG.md
# Changelog
### 5.0.4
- Changing from `npm` to `yarn`
### 5.0.3

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

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=c.find(function(n){return t.name===n.key});return e||(e={key:t.name,fn:n},c.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=c.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&&o.instance.subscribe(e),n.initialized=!0}}var o={instance:null},c=[],r=10,s=function(t){return function(e,i){return function(c){var r=e(c);a(t,s),n(c,function(){return e(c)});var u={type:c.name,args:i};return r&&r.then?r.then(function(){return o.instance&&o.instance.send(u,t.getState())}):(o.instance&&o.instance.send(u,t.getState()),r)}}};"object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&(t.connect=function(t,n){return o.instance=window.__REDUX_DEVTOOLS_EXTENSION__.connect(n),o.instance&&o.instance.send("initialState",t),s}),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";var c={instance:null},s=[],r=10;function i(e,n){var i=JSON.parse(n.state),a=Object.keys(i.actionsById).filter(function(t){return parseInt(t,10)<=n.payload.id}),o=0;setTimeout(function t(){!function(n){if("initialState"===n.type)e.setState(i.computedStates[0].state);else{var t=s.find(function(t){return n.type===t.key});t&&t.fn()}}(i.actionsById[a[o]].action),++o>=a.length||setTimeout(t,r)},0)}function u(t,n){if(!n.initialized){var e=function(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&&i(this,t))}.bind(t);c.instance&&c.instance.subscribe(e),n.initialized=!0}}var f=function(o){return function(i,a){return function(t){var n=i(t);u(o,f),function(n,t){var e=s.find(function(t){return n.name===t.key});e||(e={key:n.name,fn:t},s.push(e))}(t,function(){return i(t)});var e={type:t.name,args:a};return n&&n.then?n.then(function(){return c.instance&&c.instance.send(e,o.getState())}):(c.instance&&c.instance.send(e,o.getState()),n)}}};"object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&(t.connect=function(t,n){return c.instance=window.__REDUX_DEVTOOLS_EXTENSION__.connect(n),c.instance&&c.instance.send("initialState",t),f}),Object.defineProperty(t,"__esModule",{value:!0})});

@@ -21,8 +21,11 @@ 'use strict';

var __assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};

@@ -29,0 +32,0 @@

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

!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):n["redux-zero"]=e()}(this,function(){"use strict";var n=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n};return function(e,t){function o(){i.forEach(function(n){return n(r)})}void 0===e&&(e={}),void 0===t&&(t=null);var r=e||{},i=[];return{middleware:t,setState:function(e){r=n({},r,"function"==typeof e?e(r):e),o()},subscribe:function(n){return i.push(n),function(){i.splice(i.indexOf(n),1)}},getState:function(){return r},reset:function(){r=e,o()}}}});
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n["redux-zero"]=t()}(this,function(){"use strict";var i=function(){return(i=Object.assign||function(n){for(var t,e=1,o=arguments.length;e<o;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}).apply(this,arguments)};return function(n,t){void 0===n&&(n={}),void 0===t&&(t=null);var e=n||{},o=[];function r(){o.forEach(function(n){return n(e)})}return{middleware:t,setState:function(n){e=i({},e,"function"==typeof n?n(e):n),r()},subscribe:function(n){return o.push(n),function(){o.splice(o.indexOf(n),1)}},getState:function(){return e},reset:function(){e=n,r()}}}});

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e["redux-zero"]={})}(this,function(e){"use strict";function t(e,t){if(null!=t){if(t.then)return t.then(e.setState);e.setState(t)}}var n=function(e,n){return function(r){return t(e,r.apply(void 0,[e.getState()].concat(n)))}};e.applyMiddleware=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.reverse(),function(r,o,u){return e.length<1?t(r,o.apply(void 0,[r.getState()].concat(u))):e.map(function(e){return e(r)}).reduce(function(e,t){return t(e,u)},n(r,u))(o)}},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e["redux-zero"]={})}(this,function(e){"use strict";function o(e,t){if(null!=t){if(t.then)return t.then(e.setState);e.setState(t)}}e.applyMiddleware=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return r.reverse(),function(t,e,n){return r.length<1?o(t,e.apply(void 0,[t.getState()].concat(n))):r.map(function(e){return e(t)}).reduce(function(e,t){return t(e,n)},function(t,n){return function(e){return o(t,e.apply(void 0,[t.getState()].concat(n)))}}(t,n))(e)}},Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "redux-zero",
"version": "5.0.3",
"version": "5.0.4",
"description": "",

@@ -14,10 +14,10 @@ "main": "dist/redux-zero.js",

"format": "prettier --write rollup.config.js \"config/**/*.js\" \"src/**/*.ts\" \"src/**/*.tsx\"",
"check": "npm run compile && npm run format && npm run lint && npm run test",
"check": "yarn run compile && yarn run format && yarn run lint && yarn run test",
"clean": "rimraf dist coverage",
"prebuild": "npm run check && npm run clean",
"prebuild": "yarn run check && yarn run clean",
"build:umd": "cross-env NODE_ENV=umd rollup --config",
"build:cjs": "cross-env NODE_ENV=cjs rollup --config",
"build": "npm run build:umd && npm run build:cjs",
"prepublish": "npm run build",
"precommit": "npm run build"
"build": "yarn run build:umd && yarn run build:cjs",
"prepublish": "yarn run build",
"precommit": "yarn run build"
},

@@ -24,0 +24,0 @@ "author": "Matheus Lima <matheusml90@gmail.com>",

@@ -23,5 +23,8 @@ 'use strict';

var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};

@@ -34,8 +37,11 @@ function __extends(d, b) {

var __assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};

@@ -42,0 +48,0 @@

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

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],n):n(t["redux-zero"]={},t.preact)}(this,function(t,n){"use strict";function e(t,n){function e(){this.constructor=t}p(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}function r(t,n){for(var e in t)if(t[e]!==n[e])return!1;for(var e in n)if(!(e in t))return!1;return!0}function o(t,n){if(null!=n){if(n.then)return n.then(t.setState);t.setState(n)}}function i(t,n,e){t="function"==typeof t?t(n,e):t;var r={};for(var i in t)!function(e){r[e]=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var p=t[e];return"function"==typeof n.middleware?n.middleware(n,p,r):o(n,p.apply(void 0,[n.getState()].concat(r)))}}(i);return r}var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])},s=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},u=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state=n.getProps(),n.actions=n.getActions(),n.update=function(){var t=n.getProps();r(t,n.state)||n.setState(t)},n}return e(n,t),n.prototype.componentWillMount=function(){this.unsubscribe=this.context.store.subscribe(this.update)},n.prototype.componentWillUnmount=function(){this.unsubscribe(this.update)},n.prototype.getProps=function(){var t=this.props.mapToProps,n=this.context.store&&this.context.store.getState()||{};return t?t(n,this.props):n},n.prototype.getActions=function(){return i(this.props.actions,this.context.store,this.props)},n.prototype.render=function(t,n,e){var r=t.children,o=e.store;return(r&&r[0]||r)(s({store:o},n,this.actions))},n}(n.Component),c=u,f=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getChildContext=function(){return{store:this.props.store}},n.prototype.render=function(){return this.props.children&&this.props.children[0]||this.props.children},n}(n.Component);t.connect=function(t,r){return void 0===r&&(r={}),function(o){return function(i){function p(){return null!==i&&i.apply(this,arguments)||this}return e(p,i),p.prototype.render=function(){var e=this.props;return n.h(c,s({},e,{mapToProps:t,actions:r}),function(t){return n.h(o,s({},t,e))})},p}(n.Component)}},t.Provider=f,t.Connect=u,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],n):n(t["redux-zero"]={},t.preact)}(this,function(t,i){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])})(t,n)};function p(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var s=function(){return(s=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};var r,n=(p(o,r=i.Component),o.prototype.componentWillMount=function(){this.unsubscribe=this.context.store.subscribe(this.update)},o.prototype.componentWillUnmount=function(){this.unsubscribe(this.update)},o.prototype.getProps=function(){var t=this.props.mapToProps,n=this.context.store&&this.context.store.getState()||{};return t?t(n,this.props):n},o.prototype.getActions=function(){return function(o,i,t){function n(e){r[e]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=o[e];return"function"==typeof i.middleware?i.middleware(i,r,t):function(t,n){if(null!=n){if(n.then)return n.then(t.setState);t.setState(n)}}(i,r.apply(void 0,[i.getState()].concat(t)))}}o="function"==typeof o?o(i,t):o;var r={};for(var e in o)n(e);return r}(this.props.actions,this.context.store,this.props)},o.prototype.render=function(t,n,r){var e=t.children,o=r.store;return(e&&e[0]||e)(s({store:o},n,this.actions))},o);function o(){var n=null!==r&&r.apply(this,arguments)||this;return n.state=n.getProps(),n.actions=n.getActions(),n.update=function(){var t=n.getProps();!function(t,n){for(var r in t)if(t[r]!==n[r])return!1;for(var r in n)if(!(r in t))return!1;return!0}(t,n.state)&&n.setState(t)},n}var u=n;var c,a=(p(f,c=i.Component),f.prototype.getChildContext=function(){return{store:this.props.store}},f.prototype.render=function(){return this.props.children&&this.props.children[0]||this.props.children},f);function f(){return null!==c&&c.apply(this,arguments)||this}t.connect=function(e,o){return void 0===o&&(o={}),function(r){return p(t,n=i.Component),t.prototype.render=function(){var n=this.props;return i.h(u,s({},n,{mapToProps:e,actions:o}),function(t){return i.h(r,s({},t,n))})},t;function t(){return null!==n&&n.apply(this,arguments)||this}var n}},t.Provider=a,t.Connect=n,Object.defineProperty(t,"__esModule",{value:!0})});

@@ -23,5 +23,8 @@ 'use strict';

var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};

@@ -34,8 +37,11 @@ function __extends(d, b) {

var __assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};

@@ -42,0 +48,0 @@

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

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],n):n(t["redux-zero"]={},t.React)}(this,function(t,n){"use strict";function e(t,n){function e(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}function o(t,n){for(var e in t)if(t[e]!==n[e])return!1;for(var e in n)if(!(e in t))return!1;return!0}function r(t,n,e){return"object"==typeof t?null:new Error("Invalid prop "+n+" supplied to "+e)}function i(t,n){if(null!=n){if(n.then)return n.then(t.setState);t.setState(n)}}function p(t,n,e){t="function"==typeof t?t(n,e):t;var o={};for(var r in t)!function(e){o[e]=function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var p=t[e];return"function"==typeof n.middleware?n.middleware(n,p,o):i(n,p.apply(void 0,[n.getState()].concat(o)))}}(r);return o}var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])},u=Object.assign||function(t){for(var n,e=1,o=arguments.length;e<o;e++){n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state=n.getProps(),n.actions=n.getActions(),n.update=function(){var t=n.getProps();o(t,n.state)||n.setState(t)},n}return e(n,t),n.prototype.componentWillMount=function(){this.unsubscribe=this.context.store.subscribe(this.update)},n.prototype.componentWillUnmount=function(){this.unsubscribe(this.update)},n.prototype.getProps=function(){var t=this.props.mapToProps,n=this.context.store&&this.context.store.getState()||{};return t?t(n,this.props):n},n.prototype.getActions=function(){return p(this.props.actions,this.context.store,this.props)},n.prototype.render=function(){return this.props.children(u({store:this.context.store},this.state,this.actions))},n.contextTypes={store:r},n}(n.Component),f=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return e(o,t),o.prototype.getChildContext=function(){return{store:this.props.store}},o.prototype.render=function(){var t=this.props.children;return n.Children.only(t)},o.childContextTypes={store:r},o}(n.Component);t.connect=function(t,o){return void 0===o&&(o={}),function(r){return function(i){function p(){return null!==i&&i.apply(this,arguments)||this}return e(p,i),p.prototype.render=function(){var e=this.props;return n.createElement(c,u({},e,{mapToProps:t,actions:o}),function(t){return n.createElement(r,u({},t,e))})},p}(n.Component)}},t.Provider=f,t.Connect=c,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],n):n(t["redux-zero"]={},t.React)}(this,function(t,i){"use strict";var o=function(t,n){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};function p(t,n){function e(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var s=function(){return(s=Object.assign||function(t){for(var n,e=1,o=arguments.length;e<o;e++)for(var r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)};function n(t,n,e){return"object"==typeof t?null:new Error("Invalid prop "+n+" supplied to "+e)}var e,u=(p(r,e=i.Component),r.prototype.componentWillMount=function(){this.unsubscribe=this.context.store.subscribe(this.update)},r.prototype.componentWillUnmount=function(){this.unsubscribe(this.update)},r.prototype.getProps=function(){var t=this.props.mapToProps,n=this.context.store&&this.context.store.getState()||{};return t?t(n,this.props):n},r.prototype.getActions=function(){return function(r,i,t){function n(o){e[o]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=r[o];return"function"==typeof i.middleware?i.middleware(i,e,t):function(t,n){if(null!=n){if(n.then)return n.then(t.setState);t.setState(n)}}(i,e.apply(void 0,[i.getState()].concat(t)))}}r="function"==typeof r?r(i,t):r;var e={};for(var o in r)n(o);return e}(this.props.actions,this.context.store,this.props)},r.prototype.render=function(){return this.props.children(s({store:this.context.store},this.state,this.actions))},r.contextTypes={store:n},r);function r(){var n=null!==e&&e.apply(this,arguments)||this;return n.state=n.getProps(),n.actions=n.getActions(),n.update=function(){var t=n.getProps();!function(t,n){for(var e in t)if(t[e]!==n[e])return!1;for(var e in n)if(!(e in t))return!1;return!0}(t,n.state)&&n.setState(t)},n}var c,a=(p(f,c=i.Component),f.prototype.getChildContext=function(){return{store:this.props.store}},f.prototype.render=function(){var t=this.props.children;return i.Children.only(t)},f.childContextTypes={store:n},f);function f(){return null!==c&&c.apply(this,arguments)||this}t.connect=function(o,r){return void 0===r&&(r={}),function(e){return p(t,n=i.Component),t.prototype.render=function(){var n=this.props;return i.createElement(u,s({},n,{mapToProps:o,actions:r}),function(t){return i.createElement(e,s({},t,n))})},t;function t(){return null!==n&&n.apply(this,arguments)||this}var n}},t.Provider=a,t.Connect=u,Object.defineProperty(t,"__esModule",{value:!0})});

@@ -23,8 +23,11 @@ 'use strict';

var __assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};

@@ -31,0 +34,0 @@

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t["redux-zero"]={})}(this,function(t){"use strict";function e(t,e){for(var n in t)if(t[n]!==e[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}function n(t,n){return t!==n||!(!t||"object"!=typeof t)&&!e(t,n)}function r(t,e){var r={},o=!1;for(var f in t){var c=t[f];n(e[f],c)&&(o=!0,"object"==typeof c&&"function"!=typeof c.getMonth?r[f]=c.constructor===Array?c.slice(0):i({},c):r[f]=c)}return{diff:r,changed:o}}function o(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}function f(t,e,n){t="function"==typeof t?t(e,n):t;var r={};for(var f in t)!function(n){r[n]=function(){for(var r=[],f=0;f<arguments.length;f++)r[f]=arguments[f];var i=t[n];return"function"==typeof e.middleware?e.middleware(e,i,r):o(e,i.apply(void 0,[e.getState()].concat(r)))}}(f);return r}var i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};t.connect=function(t,e,n){function o(){var o=r(n(e.getState()),t.get()),f=o.diff;o.changed&&t.set(f)}o(),t.on("destroy",e.subscribe(o))},t.getActions=function(t,e){return f(e,t)},Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t["redux-zero"]={})}(this,function(t){"use strict";var u=function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};t.connect=function(n,r,o){function t(){var t=function(t,e){var n,r,o={},f=!1;for(var i in t){var c=t[i];((n=e[i])!==(r=c)||n&&"object"==typeof n&&!function(t,e){for(var n in t)if(t[n]!==e[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(n,r))&&(f=!0,"object"==typeof c&&"function"!=typeof c.getMonth?o[i]=c.constructor===Array?c.slice(0):u({},c):o[i]=c)}return{diff:o,changed:f}}(o(r.getState()),n.get()),e=t.diff;t.changed&&n.set(e)}t(),n.on("destroy",r.subscribe(t))},t.getActions=function(t,e){return function(o,f,t){function e(r){n[r]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=o[r];return"function"==typeof f.middleware?f.middleware(f,n,t):function(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}(f,n.apply(void 0,[f.getState()].concat(t)))}}o="function"==typeof o?o(f,t):o;var n={};for(var r in o)e(r);return n}(e,t)},Object.defineProperty(t,"__esModule",{value:!0})});

@@ -53,8 +53,11 @@ 'use strict';

var __assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};

@@ -61,0 +64,0 @@

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e["redux-zero"]={})}(this,function(e){"use strict";function t(e,t){if(null!=t){if(t.then)return t.then(e.setState);e.setState(t)}}var n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e};e.bindActions=function(e,n,o){e="function"==typeof e?e(n,o):e;var r={};for(var i in e)!function(o){r[o]=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var f=e[o];return"function"==typeof n.middleware?n.middleware(n,f,r):t(n,f.apply(void 0,[n.getState()].concat(r)))}}(i);return r},e.combineActions=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return e.reduce(function(e,o){return n({},e,"function"==typeof o?o.apply(void 0,t):o)},{})}},Object.defineProperty(e,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t["redux-zero"]={})}(this,function(t){"use strict";var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};t.bindActions=function(o,i,t){function e(r){n[r]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=o[r];return"function"==typeof i.middleware?i.middleware(i,n,t):function(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}(i,n.apply(void 0,[i.getState()].concat(t)))}}o="function"==typeof o?o(i,t):o;var n={};for(var r in o)e(r);return n},t.combineActions=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return e.reduce(function(t,e){return r({},t,"function"==typeof e?e.apply(void 0,n):e)},{})}},Object.defineProperty(t,"__esModule",{value:!0})});

@@ -23,8 +23,11 @@ 'use strict';

var __assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};

@@ -31,0 +34,0 @@

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t["redux-zero"]={})}(this,function(t){"use strict";function e(t,e){for(var n in t)if(t[n]!==e[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}function n(t,n){return t!==n||!(!t||"object"!=typeof t)&&!e(t,n)}function r(t,e){var r={},o=!1;for(var f in t){var c=t[f];n(e[f],c)&&(o=!0,"object"==typeof c&&"function"!=typeof c.getMonth?r[f]=c.constructor===Array?c.slice(0):i({},c):r[f]=c)}return{diff:r,changed:o}}function o(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}function f(t,e,n){t="function"==typeof t?t(e,n):t;var r={};for(var f in t)!function(n){r[n]=function(){for(var r=[],f=0;f<arguments.length;f++)r[f]=arguments[f];var i=t[n];return"function"==typeof e.middleware?e.middleware(e,i,r):o(e,i.apply(void 0,[e.getState()].concat(r)))}}(f);return r}var i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};t.connect=function(t,e,n,o){function i(t,e){for(var n in t)e[n]=t[n]}function c(){var o=r(n(e.getState()),n(t)),f=o.diff;o.changed&&i(f,t)}c();var u=t.beforeDestroy,a=e.subscribe(c);t.beforeDestroy=function(){a(),u()},i(f(o,e),t)},Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t["redux-zero"]={})}(this,function(t){"use strict";var u=function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};t.connect=function(n,r,o,t){c();var e=n.beforeDestroy,f=r.subscribe(c);function i(t,e){for(var n in t)e[n]=t[n]}function c(){var t=function(t,e){var n,r,o={},f=!1;for(var i in t){var c=t[i];((n=e[i])!==(r=c)||n&&"object"==typeof n&&!function(t,e){for(var n in t)if(t[n]!==e[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(n,r))&&(f=!0,"object"==typeof c&&"function"!=typeof c.getMonth?o[i]=c.constructor===Array?c.slice(0):u({},c):o[i]=c)}return{diff:o,changed:f}}(o(r.getState()),o(n)),e=t.diff;t.changed&&i(e,n)}n.beforeDestroy=function(){f(),e()},i(function(o,f,t){function e(r){n[r]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=o[r];return"function"==typeof f.middleware?f.middleware(f,n,t):function(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}(f,n.apply(void 0,[f.getState()].concat(t)))}}o="function"==typeof o?o(f,t):o;var n={};for(var r in o)e(r);return n}(t,r),n)},Object.defineProperty(t,"__esModule",{value:!0})});
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