redux-logger
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -44,3 +44,4 @@ /** | ||
var time = new Date(); | ||
var message = 'action ' + action.type + ' @ ' + time.getHours() + ':' + time.getMinutes() + ':' + time.getSeconds(); | ||
var actionType = String(action.type); | ||
var message = 'action ' + actionType + ' @ ' + time.getHours() + ':' + time.getMinutes() + ':' + time.getSeconds(); | ||
@@ -47,0 +48,0 @@ if (collapsed) { |
@@ -1,1 +0,1 @@ | ||
export const PROPERTIES_UPDATE = 'properties.update'; | ||
export const PROPERTIES_UPDATE = Symbol('properties.update'); |
@@ -20,16 +20,16 @@ { | ||
"react": "^0.13.3", | ||
"redux": "1.0.0-rc", | ||
"react-redux": "^0.8.0", | ||
"redux": "1.0.1", | ||
"react-redux": "^0.9.0", | ||
"redux-actions": "^0.7.0" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^5.6.18", | ||
"babel-loader": "^5.1.4", | ||
"react-hot-loader": "^1.2.7", | ||
"webpack": "^1.9.11", | ||
"webpack-dev-server": "^1.9.0", | ||
"sass-loader": "^2.0.0", | ||
"babel-core": "^5.8.22", | ||
"babel-loader": "^5.3.2", | ||
"react-hot-loader": "^1.2.8", | ||
"webpack": "^1.11.0", | ||
"webpack-dev-server": "^1.10.1", | ||
"sass-loader": "^2.0.1", | ||
"style-loader": "^0.12.3", | ||
"css-loader": "^0.15.6" | ||
"css-loader": "^0.16.0" | ||
} | ||
} |
{ | ||
"name": "redux-logger", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Logger for redux", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -27,8 +27,14 @@ # Logger for redux | ||
*Default: `console.log`* | ||
#### __logger (Object)__ | ||
Implementation of the `console` API. Useful if you are using a custom, wrapped version of `console`. | ||
*Default: `window.console`* | ||
#### __collapsed (Boolean)__ | ||
Is group collapsed? | ||
*Default: `false`* | ||
#### __predicate (getState: Function, action: Object): boolean__ | ||
@@ -38,2 +44,4 @@ If specified this function will be called before each action is processed with this middleware. | ||
*Default: `null` (always log)* | ||
##### Examples: | ||
@@ -40,0 +48,0 @@ ###### log only in dev mode |
@@ -30,3 +30,4 @@ /** | ||
const time = new Date(); | ||
const message = `action ${action.type} @ ${time.getHours()}:${time.getMinutes()}:${time.getSeconds()}`; | ||
const actionType = String(action.type); | ||
const message = `action ${actionType} @ ${time.getHours()}:${time.getMinutes()}:${time.getSeconds()}`; | ||
@@ -33,0 +34,0 @@ if (collapsed) { |
Sorry, the diff of this file is too big to display
217922
1166
65