Skip to content

Commit e6ca40b

Browse files
author
Eugene Rodionov
committed
feat: add symbols support (1.0.4)
1 parent f609718 commit e6ca40b

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

build/createLogger.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ function createLogger() {
4141
var returnValue = next(action);
4242
var nextState = getState();
4343
var time = new Date();
44-
var message = 'action ' + action.type + ' @ ' + time.getHours() + ':' + time.getMinutes() + ':' + time.getSeconds();
44+
var actionType = String(action.type);
45+
var message = 'action ' + actionType + ' @ ' + time.getHours() + ':' + time.getMinutes() + ':' + time.getSeconds();
4546

4647
if (collapsed) {
4748
try {

example/dist/bundle.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-logger",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Logger for redux",
55
"main": "build/index.js",
66
"scripts": {

src/createLogger.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ function createLogger(options = {}) {
2727
const returnValue = next(action);
2828
const nextState = getState();
2929
const time = new Date();
30-
const message = `action ${action.type} @ ${time.getHours()}:${time.getMinutes()}:${time.getSeconds()}`;
30+
const actionType = String(action.type);
31+
const message = `action ${actionType} @ ${time.getHours()}:${time.getMinutes()}:${time.getSeconds()}`;
3132

3233
if (collapsed) {
3334
try {

0 commit comments

Comments
 (0)