Socket
Socket
Sign inDemoInstall

redux-diff-logger

Package Overview
Dependencies
1
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

20

build/logger.js

@@ -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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc