File tree Expand file tree Collapse file tree 4 files changed +22
-17
lines changed Expand file tree Collapse file tree 4 files changed +22
-17
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,17 @@ var _logger = require('./logger');
15
15
var _logger2 = _interopRequireDefault ( _logger ) ;
16
16
17
17
function resolver ( input ) {
18
- var dispatch = input . dispatch ;
19
-
20
- console . log ( input ) ;
21
-
22
- if ( dispatch ) {
23
- console . warn ( 'redux-logger updated to 1.0.0 and old `logger` is deprecated, check out https://github.com/fcomb/redux-logger/releases/tag/1.0.0' ) ;
24
- return ( 0 , _logger2 [ 'default' ] ) ( input ) ;
18
+ if ( input ) {
19
+ var dispatch = input . dispatch ;
20
+
21
+ if ( dispatch ) {
22
+ console . warn ( 'redux-logger updated to 1.0.0 and old `logger` is deprecated, check out https://github.com/fcomb/redux-logger/releases/tag/1.0.0' ) ;
23
+ return ( 0 , _logger2 [ 'default' ] ) ( input ) ;
24
+ } else {
25
+ return ( 0 , _createLogger2 [ 'default' ] ) ( input ) ;
26
+ }
25
27
} else {
26
- return ( 0 , _createLogger2 [ 'default' ] ) ( input ) ;
28
+ return ( 0 , _createLogger2 [ 'default' ] ) ( ) ;
27
29
}
28
30
}
29
31
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " redux-logger" ,
3
- "version" : " 1.0.0 " ,
3
+ "version" : " 1.0.1 " ,
4
4
"description" : " Logger for redux" ,
5
5
"main" : " build/index.js" ,
6
6
"scripts" : {
12
12
"build" : " npm run build:module && npm run build:example" ,
13
13
"prepublish" : " npm run clean && npm run test && npm run build" ,
14
14
"deploy:ghpages" : " $(npm bin)/gh-pages -d example/dist" ,
15
- "deploy" : " npm run build && git add -A && git commit -am 'chore: update docs' && git push && npm run deploy:ghpages"
15
+ "deploy" : " git add -A && git commit -am 'chore: update docs' && git push && npm run deploy:ghpages"
16
16
},
17
17
"repository" : {
18
18
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -2,14 +2,17 @@ import createLogger from './createLogger';
2
2
import logger from './logger' ;
3
3
4
4
function resolver ( input ) {
5
- const { dispatch } = input ;
6
- console . log ( input ) ;
5
+ if ( input ) {
6
+ const { dispatch } = input ;
7
7
8
- if ( dispatch ) {
9
- console . warn ( 'redux-logger updated to 1.0.0 and old `logger` is deprecated, check out https://github.com/fcomb/redux-logger/releases/tag/1.0.0' ) ;
10
- return logger ( input ) ;
8
+ if ( dispatch ) {
9
+ console . warn ( 'redux-logger updated to 1.0.0 and old `logger` is deprecated, check out https://github.com/fcomb/redux-logger/releases/tag/1.0.0' ) ;
10
+ return logger ( input ) ;
11
+ } else {
12
+ return createLogger ( input ) ;
13
+ }
11
14
} else {
12
- return createLogger ( input ) ;
15
+ return createLogger ( ) ;
13
16
}
14
17
}
15
18
You can’t perform that action at this time.
0 commit comments