redux-zero
Advanced tools
Comparing version 4.9.0 to 4.9.1
# Changelog | ||
### 4.9.1 | ||
- Disable generation of source maps | ||
### 4.9.0 | ||
@@ -3,0 +8,0 @@ |
@@ -70,2 +70,1 @@ 'use strict'; | ||
} | ||
//# sourceMappingURL=index.js.map |
!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})}); | ||
//# sourceMappingURL=index.min.js.map |
@@ -54,2 +54,1 @@ 'use strict'; | ||
module.exports = createStore$1; | ||
//# sourceMappingURL=redux-zero.js.map |
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e["redux-zero"]=n()}(this,function(){"use strict";var e=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++){n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};return function(n,t){void 0===n&&(n={}),void 0===t&&(t=null);var o=[];return{middleware:t,setState:function(t){n="function"==typeof t?e({},n,t(n)):e({},n,t),o.forEach(function(e){return e(n)})},subscribe:function(e){return o.push(e),function(){o.splice(o.indexOf(e),1)}},getState:function(){return n}}}}); | ||
//# sourceMappingURL=redux-zero.min.js.map |
@@ -34,2 +34,1 @@ 'use strict'; | ||
exports.applyMiddleware = applyMiddleware; | ||
//# sourceMappingURL=index.js.map |
!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)},n(r,u))(o)}},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=index.min.js.map |
{ | ||
"name": "redux-zero", | ||
"version": "4.9.0", | ||
"version": "4.9.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/redux-zero.js", |
@@ -134,2 +134,1 @@ 'use strict'; | ||
exports.Connect = Connect; | ||
//# sourceMappingURL=index.js.map |
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],e):e(t["redux-zero"]={},t.preact)}(this,function(t,e){"use strict";function n(t,e){function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(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 r(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}function i(t,e){t="function"==typeof t?t(e):t;var n={};for(var o in t)!function(o){n[o]=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var p=t[o];return"function"==typeof e.middleware?e.middleware(e,p,n):r(e,p.apply(void 0,[e.getState()].concat(n)))}}(o);return n}var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},s=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state=e.getProps(),e.actions=e.getActions(),e.update=function(){var t=e.getProps();o(t,e.state)||e.setState(t)},e}return n(e,t),e.prototype.componentWillMount=function(){this.unsubscribe=this.context.store.subscribe(this.update)},e.prototype.componentWillUnmount=function(){this.unsubscribe(this.update)},e.prototype.getProps=function(){var t=this.props.mapToProps,e=this.context.store&&this.context.store.getState()||{};return t?t(e,this.props):e},e.prototype.getActions=function(){return i(this.props.actions,this.context.store)},e.prototype.render=function(t,e,n){var o=t.children,r=n.store;return o[0](s({store:r},e,this.actions))},e}(e.Component),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getChildContext=function(){return{store:this.props.store}},e.prototype.render=function(){return this.props.children[0]},e}(e.Component);t.Provider=c,t.Connect=u,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=index.min.js.map |
@@ -152,2 +152,1 @@ 'use strict'; | ||
exports.Connect = Connect; | ||
//# sourceMappingURL=index.js.map |
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e(t["redux-zero"]={},t.React)}(this,function(t,e){"use strict";function n(t,e){function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(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 r(t,e,n){return"object"==typeof t?null:new Error("Invalid prop "+e+" supplied to "+n)}function i(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}function s(t,e){t="function"==typeof t?t(e):t;var n={};for(var o in t)!function(o){n[o]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var s=t[o];return"function"==typeof e.middleware?e.middleware(e,s,n):i(e,s.apply(void 0,[e.getState()].concat(n)))}}(o);return n}var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},c=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state=e.getProps(),e.actions=e.getActions(),e.update=function(){var t=e.getProps();o(t,e.state)||e.setState(t)},e}return n(e,t),e.prototype.componentWillMount=function(){this.unsubscribe=this.context.store.subscribe(this.update)},e.prototype.componentWillUnmount=function(){this.unsubscribe(this.update)},e.prototype.getProps=function(){var t=this.props.mapToProps,e=this.context.store&&this.context.store.getState()||{};return t?t(e,this.props):e},e.prototype.getActions=function(){return s(this.props.actions,this.context.store)},e.prototype.render=function(){return this.props.children(c({store:this.context.store},this.state,this.actions))},e.contextTypes={store:r},e}(e.Component),f=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return n(o,t),o.prototype.getChildContext=function(){return{store:this.props.store}},o.prototype.render=function(){var t=this.props.children;return e.Children.only(t)},o.childContextTypes={store:r},o}(e.Component);t.connect=function(t,n){return void 0===n&&(n={}),function(o){return function(r){return e.createElement(p,c({},r,{mapToProps:t,actions:n}),function(t){return e.createElement(o,c({},t,r))})}}},t.Provider=f,t.Connect=p,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=index.min.js.map |
@@ -25,5 +25,5 @@ <h1 align="center"> | ||
- [Middleware](#middleware) | ||
- [DevTools](#devtools) | ||
- [Inspiration](#inspiration) | ||
- [Roadmap](#roadmap) | ||
- [Tools](#tools) | ||
- [Docs](#docs) | ||
@@ -240,5 +240,5 @@ | ||
### DevTools Middleware | ||
## DevTools | ||
You can setup DevTools middleware in store.js to connect with Redux DevTools and inspect states in the store. | ||
You can setup DevTools middleware in store.js to connect with Redux DevTools and inspect states in the store. | ||
@@ -258,2 +258,5 @@ ```js | ||
Also, these are unofficial tools, maintained by the community: | ||
- [Redux-Zero Tools](https://github.com/nyteshade/rzero-tools) | ||
## Inspiration | ||
@@ -265,6 +268,2 @@ **Redux Zero** was based on this [gist](https://gist.github.com/developit/55c48d294abab13a146eac236bae3219) by [@developit](https://github.com/developit) | ||
## Tools | ||
These are unofficial tools, maintained by the community: | ||
- [Redux-Zero Tools](https://github.com/nyteshade/rzero-tools) | ||
## Docs | ||
@@ -271,0 +270,0 @@ |
@@ -114,2 +114,1 @@ 'use strict'; | ||
exports.getActions = getActions; | ||
//# sourceMappingURL=index.js.map |
!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){t="function"==typeof t?t(e):t;var n={};for(var r in t)!function(r){n[r]=function(){for(var n=[],f=0;f<arguments.length;f++)n[f]=arguments[f];var i=t[r];return"function"==typeof e.middleware?e.middleware(e,i,n):o(e,i.apply(void 0,[e.getState()].concat(n)))}}(r);return n}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})}); | ||
//# sourceMappingURL=index.min.js.map |
@@ -36,2 +36,1 @@ 'use strict'; | ||
exports.bindActions = bindActions; | ||
//# sourceMappingURL=index.js.map |
!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)}}e.bindActions=function(e,n){e="function"==typeof e?e(n):e;var o={};for(var i in e)!function(i){o[i]=function(){for(var o=[],f=0;f<arguments.length;f++)o[f]=arguments[f];var r=e[i];return"function"==typeof n.middleware?n.middleware(n,r,o):t(n,r.apply(void 0,[n.getState()].concat(o)))}}(i);return o},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=index.min.js.map |
@@ -120,2 +120,1 @@ 'use strict'; | ||
exports.connect = connect; | ||
//# sourceMappingURL=index.js.map |
!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){t="function"==typeof t?t(e):t;var n={};for(var r in t)!function(r){n[r]=function(){for(var n=[],f=0;f<arguments.length;f++)n[f]=arguments[f];var i=t[r];return"function"==typeof e.middleware?e.middleware(e,i,n):o(e,i.apply(void 0,[e.getState()].concat(n)))}}(r);return n}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})}); | ||
//# sourceMappingURL=index.min.js.map |
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
96388
56
783
271