Socket
Socket
Sign inDemoInstall

redux-cli-logger

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-cli-logger - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

13

build/index.js

@@ -79,3 +79,6 @@ 'use strict';

var message = downArrow + ' action ' + action.type + ' @ ' + time.getHours() + ':' + time.getMinutes() + ':' + time.getSeconds();
var h = padLeft(time.getHours(), 2, "0");
var m = padLeft(time.getMinutes(), 2, "0");
var s = padLeft(time.getSeconds(), 2, "0");
var message = downArrow + ' action ' + action.type + ' @ ' + h + ':' + m + ':' + s;

@@ -89,2 +92,10 @@ var output = colors[messageColor](message) + '\n' + (' ' + colors[prevColor]('prev state\n' + prevState)) + (' ' + colors[actionColor]('action\n' + actionDisplay)) + (' ' + colors[nextColor]('next\n' + nextState));

};
}
function padLeft(input, len, filler) {
var output = "" + input;
while (output.length < len) {
output = filler + output;
}
return output;
}

2

package.json
{
"name": "redux-cli-logger",
"version": "2.0.1",
"version": "2.1.0",
"description": "Redux logger for a node environment",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -59,3 +59,6 @@ 'use strict'

const message = `${downArrow} action ${action.type} @ ${time.getHours()}:${time.getMinutes()}:${time.getSeconds()}`
const h = padLeft(time.getHours(), 2, "0");
const m = padLeft(time.getMinutes(), 2, "0");
const s = padLeft(time.getSeconds(), 2, "0");
const message = `${downArrow} action ${action.type} @ ${h}:${m}:${s}`

@@ -71,1 +74,9 @@ const output = `${colors[messageColor](message)}\n` +

}
function padLeft(input, len, filler) {
var output = ""+input;
while (output.length < len) {
output = filler + output;
}
return output;
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc