redux-diff-logger
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -32,14 +32,16 @@ // https://github.com/flitbit/diff#differences | ||
console.group('diff @', time.getHours() + ':' + time.getMinutes() + ':' + time.getSeconds()); | ||
if (diff) { | ||
console.group('diff @', time.getHours() + ':' + time.getMinutes() + ':' + time.getSeconds()); | ||
diff.forEach(function (elem) { | ||
var kind = elem.kind; | ||
var path = elem.path; | ||
var lhs = elem.lhs; | ||
var rhs = elem.rhs; | ||
diff.forEach(function (elem) { | ||
var kind = elem.kind; | ||
var path = elem.path; | ||
var lhs = elem.lhs; | ||
var rhs = elem.rhs; | ||
console.info(dictionary[kind], path.join('.'), lhs, ' → ', rhs); | ||
}); | ||
console.info(dictionary[kind], path.join('.'), lhs, ' → ', rhs); | ||
}); | ||
console.groupEnd('diff'); | ||
console.groupEnd('diff'); | ||
} | ||
@@ -46,0 +48,0 @@ return returnValue; |
{ | ||
"name": "redux-diff-logger", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Diff logger between states for redux", | ||
@@ -5,0 +5,0 @@ "main": "build/logger.js", |
@@ -19,10 +19,12 @@ // https://github.com/flitbit/diff#differences | ||
console.group('diff @', `${time.getHours()}:${time.getMinutes()}:${time.getSeconds()}`); | ||
if (diff) { | ||
console.group('diff @', `${time.getHours()}:${time.getMinutes()}:${time.getSeconds()}`); | ||
diff.forEach((elem) => { | ||
const { kind, path, lhs, rhs } = elem; | ||
console.info(dictionary[kind], path.join('.'), lhs, ' → ', rhs); | ||
}); | ||
diff.forEach((elem) => { | ||
const { kind, path, lhs, rhs } = elem; | ||
console.info(dictionary[kind], path.join('.'), lhs, ' → ', rhs); | ||
}); | ||
console.groupEnd('diff'); | ||
console.groupEnd('diff'); | ||
} | ||
@@ -29,0 +31,0 @@ return returnValue; |
3695
64