From 90a7175634b5316a82a3e758d27ece331d08cbae Mon Sep 17 00:00:00 2001 From: yash Date: Thu, 6 Dec 2018 12:17:05 +0530 Subject: [PATCH] removed console --- packages/redux-subspace/lib/index.js | 6 ------ packages/redux-subspace/src/actions/processAction.js | 1 - packages/redux-subspace/src/store/subspace.js | 3 --- 3 files changed, 10 deletions(-) diff --git a/packages/redux-subspace/lib/index.js b/packages/redux-subspace/lib/index.js index 33309287..c1b060bd 100644 --- a/packages/redux-subspace/lib/index.js +++ b/packages/redux-subspace/lib/index.js @@ -295,8 +295,6 @@ var hasNamespace = function hasNamespace(action, namespace) { var processAction = function processAction(namespace) { return function (action, callback, defaultValue) { - console.log('processAction', action, callback, defaultValue); - if (!namespace || isGlobal(action)) { return callback(action); } else if (hasNamespace(action, namespace)) { @@ -338,7 +336,6 @@ var resolveParameters = function resolveParameters(mapState, namespace) { }; } - console.log('resolveParameters', [mapState, namespace]); return [mapState, namespace]; }; @@ -365,8 +362,6 @@ var resolveEnhancer = function resolveEnhancer(_temp) { }; var createSubspace = function createSubspace(store, enhancer) { - console.log('createSubspace', store, enhncer); - if (typeof enhancer !== 'undefined') { return enhancer(createSubspace)(store); } @@ -376,7 +371,6 @@ var createSubspace = function createSubspace(store, enhancer) { var subspaceEnhanced = function subspaceEnhanced(mapState, namespace, isRoot) { var subspaceEnhancers = redux.compose(subspaceEnhancer(mapState, namespace), namespaceEnhancer(namespace), subspaceTypesEnhancer(isRoot, namespace), processActionEnhancer(namespace), rootStoreEnhancer); - console.log('subspaceEnhanced', subspaceEnhancers); return function (store) { return createSubspace(store, redux.compose(resolveEnhancer(store.subspaceOptions), subspaceEnhancers)); }; diff --git a/packages/redux-subspace/src/actions/processAction.js b/packages/redux-subspace/src/actions/processAction.js index 859703ed..d460c8bd 100644 --- a/packages/redux-subspace/src/actions/processAction.js +++ b/packages/redux-subspace/src/actions/processAction.js @@ -10,7 +10,6 @@ import hasNamespace from '../actions/hasNamespace' import isGlobal from '../actions/isGlobal' const processAction = (namespace) => (action, callback, defaultValue) => { - console.log('processAction', action, callback, defaultValue) if (!namespace || isGlobal(action)) { return callback(action) } else if (hasNamespace(action, namespace)) { diff --git a/packages/redux-subspace/src/store/subspace.js b/packages/redux-subspace/src/store/subspace.js index ec9a3e92..4e1fd2ef 100644 --- a/packages/redux-subspace/src/store/subspace.js +++ b/packages/redux-subspace/src/store/subspace.js @@ -28,7 +28,6 @@ const resolveParameters = (mapState, namespace) => { if (mapStateType !== 'function') { mapState = (state) => state[namespace] } - console.log('resolveParameters', [mapState, namespace]) return [mapState, namespace] } @@ -49,7 +48,6 @@ const resolveEnhancer = ({ enhancer = DEFAULT_OPTIONS.enhancer } = DEFAULT_OPTIO } const createSubspace = (store, enhancer) => { - console.log('createSubspace', store, enhncer) if (typeof enhancer !== 'undefined') { return enhancer(createSubspace)(store) @@ -66,7 +64,6 @@ const subspaceEnhanced = (mapState, namespace, isRoot) => { processActionEnhancer(namespace), rootStoreEnhancer ) - console.log('subspaceEnhanced', subspaceEnhancers) return (store) => createSubspace(store, compose(resolveEnhancer(store.subspaceOptions), subspaceEnhancers)) }