🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

redux

Package Overview
Dependencies
Maintainers
2
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux - npm Package Compare versions

Comparing version

to
3.1.1

4

dist/redux.js

@@ -429,4 +429,4 @@ (function webpackUniversalModuleDefinition(root, factory) {

return function (createStore) {
return function (reducer, initialState) {
var store = createStore(reducer, initialState);
return function (reducer, initialState, enhancer) {
var store = createStore(reducer, initialState, enhancer);
var _dispatch = store.dispatch;

@@ -433,0 +433,0 @@ var chain = [];

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Redux=e():t.Redux=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(){}e.__esModule=!0;var u=n(2),i=r(u),f=n(7),a=r(f),c=n(6),d=r(c),s=n(5),l=r(s),p=n(1),y=r(p);"isCrushed"!==o.name,1,e.createStore=i.default,e.combineReducers=a.default,e.bindActionCreators=d.default,e.applyMiddleware=l.default,e.compose=y.default},function(t,e){"use strict";function n(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];return function(){if(0===e.length)return arguments[0];var t=e[e.length-1],n=e.slice(0,-1);return n.reduceRight(function(t,e){return e(t)},t.apply(void 0,arguments))}}e.__esModule=!0,e.default=n,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,n){function r(){return s}function u(t){l.push(t);var e=!0;return function(){if(e){e=!1;var n=l.indexOf(t);l.splice(n,1)}}}function a(t){if(!i.default(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,s=d(s,t)}finally{p=!1}return l.slice().forEach(function(t){return t()}),t}function c(t){d=t,a({type:f.INIT})}if("function"==typeof e&&"undefined"==typeof n&&(n=e,e=void 0),"undefined"!=typeof n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(o)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var d=t,s=e,l=[],p=!1;return a({type:f.INIT}),{dispatch:a,subscribe:u,getState:r,replaceReducer:c}}e.__esModule=!0,e.default=o;var u=n(3),i=r(u),f={INIT:"@@redux/INIT"};e.ActionTypes=f},function(t,e){"use strict";function n(t){if(!t||"object"!=typeof t)return!1;var e="function"==typeof t.constructor?Object.getPrototypeOf(t):Object.prototype;if(null===e)return!0;var n=e.constructor;return"function"==typeof n&&n instanceof n&&r(n)===o}e.__esModule=!0,e.default=n;var r=function(t){return Function.prototype.toString.call(t)},o=r(Object);t.exports=e.default},function(t,e){"use strict";function n(t,e){return Object.keys(t).reduce(function(n,r){return n[r]=e(t[r],r),n},{})}e.__esModule=!0,e.default=n,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];return function(t){return function(n,r){var o=t(n,r),i=o.dispatch,a=[],c={getState:o.getState,dispatch:function(t){return i(t)}};return a=e.map(function(t){return t(c)}),i=f.default.apply(void 0,a)(o.dispatch),u({},o,{dispatch:i})}}}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.default=o;var i=n(1),f=r(i);t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return function(){return e(t.apply(void 0,arguments))}}function u(t,e){if("function"==typeof t)return o(t,e);if("object"!=typeof t||null===t||void 0===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');return f.default(t,function(t){return o(t,e)})}e.__esModule=!0,e.default=u;var i=n(4),f=r(i);t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var n=e&&e.type,r=n&&'"'+n.toString()+'"'||"an action";return'Reducer "'+t+'" returned undefined handling '+r+". To ignore an action, you must explicitly return the previous state."}function u(t){Object.keys(t).forEach(function(e){var n=t[e],r=n(void 0,{type:f.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+e+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:o}))throw new Error('Reducer "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle "+f.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function i(t){var e,n=l.default(t,function(t){return"function"==typeof t});try{u(n)}catch(r){e=r}return function(t,r){if(void 0===t&&(t={}),e)throw e;var u=!1,i=d.default(n,function(e,n){var i=t[n],f=e(i,r);if("undefined"==typeof f){var a=o(n,r);throw new Error(a)}return u=u||f!==i,f});return u?i:t}}e.__esModule=!0,e.default=i;var f=n(2),a=n(3),c=(r(a),n(4)),d=r(c),s=n(8),l=r(s);t.exports=e.default},function(t,e){"use strict";function n(t,e){return Object.keys(t).reduce(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{})}e.__esModule=!0,e.default=n,t.exports=e.default}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Redux=e():t.Redux=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(){}e.__esModule=!0;var u=n(2),i=r(u),f=n(7),a=r(f),c=n(6),d=r(c),s=n(5),l=r(s),p=n(1),y=r(p);"isCrushed"!==o.name,1,e.createStore=i.default,e.combineReducers=a.default,e.bindActionCreators=d.default,e.applyMiddleware=l.default,e.compose=y.default},function(t,e){"use strict";function n(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];return function(){if(0===e.length)return arguments[0];var t=e[e.length-1],n=e.slice(0,-1);return n.reduceRight(function(t,e){return e(t)},t.apply(void 0,arguments))}}e.__esModule=!0,e.default=n,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,n){function r(){return s}function u(t){l.push(t);var e=!0;return function(){if(e){e=!1;var n=l.indexOf(t);l.splice(n,1)}}}function a(t){if(!i.default(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,s=d(s,t)}finally{p=!1}return l.slice().forEach(function(t){return t()}),t}function c(t){d=t,a({type:f.INIT})}if("function"==typeof e&&"undefined"==typeof n&&(n=e,e=void 0),"undefined"!=typeof n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(o)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var d=t,s=e,l=[],p=!1;return a({type:f.INIT}),{dispatch:a,subscribe:u,getState:r,replaceReducer:c}}e.__esModule=!0,e.default=o;var u=n(3),i=r(u),f={INIT:"@@redux/INIT"};e.ActionTypes=f},function(t,e){"use strict";function n(t){if(!t||"object"!=typeof t)return!1;var e="function"==typeof t.constructor?Object.getPrototypeOf(t):Object.prototype;if(null===e)return!0;var n=e.constructor;return"function"==typeof n&&n instanceof n&&r(n)===o}e.__esModule=!0,e.default=n;var r=function(t){return Function.prototype.toString.call(t)},o=r(Object);t.exports=e.default},function(t,e){"use strict";function n(t,e){return Object.keys(t).reduce(function(n,r){return n[r]=e(t[r],r),n},{})}e.__esModule=!0,e.default=n,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];return function(t){return function(n,r,o){var i=t(n,r,o),a=i.dispatch,c=[],d={getState:i.getState,dispatch:function(t){return a(t)}};return c=e.map(function(t){return t(d)}),a=f.default.apply(void 0,c)(i.dispatch),u({},i,{dispatch:a})}}}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.default=o;var i=n(1),f=r(i);t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return function(){return e(t.apply(void 0,arguments))}}function u(t,e){if("function"==typeof t)return o(t,e);if("object"!=typeof t||null===t||void 0===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');return f.default(t,function(t){return o(t,e)})}e.__esModule=!0,e.default=u;var i=n(4),f=r(i);t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var n=e&&e.type,r=n&&'"'+n.toString()+'"'||"an action";return'Reducer "'+t+'" returned undefined handling '+r+". To ignore an action, you must explicitly return the previous state."}function u(t){Object.keys(t).forEach(function(e){var n=t[e],r=n(void 0,{type:f.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+e+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:o}))throw new Error('Reducer "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle "+f.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function i(t){var e,n=l.default(t,function(t){return"function"==typeof t});try{u(n)}catch(r){e=r}return function(t,r){if(void 0===t&&(t={}),e)throw e;var u=!1,i=d.default(n,function(e,n){var i=t[n],f=e(i,r);if("undefined"==typeof f){var a=o(n,r);throw new Error(a)}return u=u||f!==i,f});return u?i:t}}e.__esModule=!0,e.default=i;var f=n(2),a=n(3),c=(r(a),n(4)),d=r(c),s=n(8),l=r(s);t.exports=e.default},function(t,e){"use strict";function n(t,e){return Object.keys(t).reduce(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{})}e.__esModule=!0,e.default=n,t.exports=e.default}])});

@@ -38,4 +38,4 @@ 'use strict';

return function (createStore) {
return function (reducer, initialState) {
var store = createStore(reducer, initialState);
return function (reducer, initialState, enhancer) {
var store = createStore(reducer, initialState, enhancer);
var _dispatch = store.dispatch;

@@ -42,0 +42,0 @@ var chain = [];

{
"name": "redux",
"version": "3.1.0",
"version": "3.1.1",
"description": "Predictable state container for JavaScript apps",

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

@@ -20,4 +20,4 @@ import compose from './compose'

export default function applyMiddleware(...middlewares) {
return (createStore) => (reducer, initialState) => {
var store = createStore(reducer, initialState)
return (createStore) => (reducer, initialState, enhancer) => {
var store = createStore(reducer, initialState, enhancer)
var dispatch = store.dispatch

@@ -24,0 +24,0 @@ var chain = []