redux-zero
Advanced tools
Comparing version 5.0.1 to 5.0.2
# Changelog | ||
### 5.0.2 | ||
- Fixed Provider and connect in preact biddings so they now work for Preact X | ||
### 5.0.1 | ||
@@ -4,0 +7,0 @@ |
@@ -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.1", | ||
"version": "5.0.2", | ||
"description": "", | ||
@@ -13,4 +13,6 @@ "main": "dist/redux-zero.js", | ||
"test:watch": "jest --watch", | ||
"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", | ||
"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", | ||
"clean": "rimraf dist coverage", | ||
@@ -44,16 +46,8 @@ "prebuild": "npm run check && npm run clean", | ||
"jest": { | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js" | ||
], | ||
"setupFiles": [ | ||
"<rootDir>/config/testSetup.js" | ||
], | ||
"moduleFileExtensions": ["ts", "tsx", "js"], | ||
"setupFiles": ["<rootDir>/config/testSetup.js"], | ||
"transform": { | ||
"^.+\\.(ts|tsx)$": "<rootDir>/config/preprocessor.js" | ||
}, | ||
"testMatch": [ | ||
"<rootDir>/src/**/*.spec.(ts|tsx)" | ||
] | ||
"testMatch": ["<rootDir>/src/**/*.spec.(ts|tsx)"] | ||
}, | ||
@@ -60,0 +54,0 @@ "devDependencies": { |
@@ -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); | ||
}; | ||
@@ -115,3 +121,4 @@ | ||
var store = _b.store; | ||
return children[0](__assign({ store: store }, state, this.actions)); | ||
var child = (children && children[0]) || children; | ||
return child(__assign({ store: store }, state, this.actions)); | ||
}; | ||
@@ -150,3 +157,4 @@ return Connect; | ||
Provider.prototype.render = function () { | ||
return this.props.children[0]; | ||
return ((this.props.children && this.props.children[0]) || | ||
this.props.children); | ||
}; | ||
@@ -153,0 +161,0 @@ return Provider; |
@@ -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 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){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 o={};for(var i in t)!function(e){o[e]=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var p=t[e];return"function"==typeof n.middleware?n.middleware(n,p,o):r(n,p.apply(void 0,[n.getState()].concat(o)))}}(i);return o}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])},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},s=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 i(this.props.actions,this.context.store,this.props)},n.prototype.render=function(t,n,e){var o=t.children,r=e.store;return o[0](u({store:r},n,this.actions))},n}(n.Component),c=s,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[0]},n}(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.h(c,u({},e,{mapToProps:t,actions:o}),function(t){return n.h(r,u({},t,e))})},p}(n.Component)}},t.Provider=f,t.Connect=s,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 u=function(){return(u=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 n=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();(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}return p(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 function(o,i,t){o="function"==typeof o?o(i,t):o;var n={},r=function(e){n[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)))}};for(var e in o)r(e);return n}(this.props.actions,this.context.store,this.props)},n.prototype.render=function(t,n,r){var e=t.children,o=r.store;return(e&&e[0]||e)(u({store:o},n,this.actions))},n}(i.Component),s=n;var r=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return p(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}(i.Component);t.connect=function(e,o){return void 0===o&&(o={}),function(r){return function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return p(n,t),n.prototype.render=function(){var n=this.props;return i.h(s,u({},n,{mapToProps:e,actions:o}),function(t){return i.h(r,u({},t,n))})},n}(i.Component)}},t.Provider=r,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 r=function(t,n){return(r=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}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var u=function(){return(u=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function e(t,n,e){return"object"==typeof t?null:new Error("Invalid prop "+n+" supplied to "+e)}var s=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();(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}return p(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 function(o,i,t){o="function"==typeof o?o(i,t):o;var n={},e=function(r){n[r]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=o[r];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)))}};for(var r in o)e(r);return n}(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:e},n}(i.Component);var n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return p(n,t),n.prototype.getChildContext=function(){return{store:this.props.store}},n.prototype.render=function(){var t=this.props.children;return i.Children.only(t)},n.childContextTypes={store:e},n}(i.Component);t.connect=function(r,o){return void 0===o&&(o={}),function(e){return function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return p(n,t),n.prototype.render=function(){var n=this.props;return i.createElement(s,u({},n,{mapToProps:r,actions:o}),function(t){return i.createElement(e,u({},t,n))})},n}(i.Component)}},t.Provider=n,t.Connect=s,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){o="function"==typeof o?o(f,t):o;var e={},n=function(r){e[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)))}};for(var r in o)n(r);return e}(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){o="function"==typeof o?o(i,t):o;var e={},n=function(r){e[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)))}};for(var r in o)n(r);return e},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){o="function"==typeof o?o(f,t):o;var e={},n=function(r){e[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)))}};for(var r in o)n(r);return e}(t,r),n)},Object.defineProperty(t,"__esModule",{value:!0})}); |
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
69277
1016