New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cllc

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cllc - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

12

index.js

@@ -94,9 +94,9 @@ const strftime = require('strftime');

log.finish = (text = _text, ...args) => {
log.finish = (text, ...args) => {
if(!process.stdout.isTTY || !_text) return;
_text = text;
const tl = _text.split(/%s/).length - 1;
const zeros = Array(tl).fill(0);
args = args.length ? args.map(v => +v || 0) : zeros;
_i = Object.assign(zeros, args.slice(0, tl));
if(text){
_text = text;
const tl = _text.split(/%s/).length - 1;
_i = Object.assign(Array(tl).fill(0), args.slice(0, tl).map(v => +v || 0));
}
lU.show();

@@ -103,0 +103,0 @@ _text = '';

{
"name": "cllc",
"version": "1.0.0",
"version": "1.0.1",
"description": "Simple logger and counter fore console",

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

@@ -189,5 +189,5 @@ # cllc

// result output
// result output:
// TEST
// [0]
// [1]
```

@@ -194,0 +194,0 @@

@@ -223,13 +223,14 @@ const test = require('ava');

log.start();
log.step();
log.finish();
t.is(inspect.output[3].replace(re, ''), '0\n');
t.is(inspect.output.length, 4);
t.is(inspect.output[4].replace(re, ''), '1\n');
t.is(inspect.output.length, 5);
log.start();
log.finish('#%s|%s|%s#', 42, 'bad');
t.is(inspect.output[5].replace(re, ''), '#42|0|0#\n');
t.is(inspect.output.length, 6);
t.is(inspect.output[6].replace(re, ''), '#42|0|0#\n');
t.is(inspect.output.length, 7);
log.start();
log.finish('#%s|%s|%s#');
t.is(inspect.output[7].replace(re, ''), '#0|0|0#\n');
t.is(inspect.output.length, 8);
t.is(inspect.output[8].replace(re, ''), '#0|0|0#\n');
t.is(inspect.output.length, 9);
t.deepEqual(inspect.output[1].match(re), _erase);

@@ -240,3 +241,3 @@ t.deepEqual(inspect.output[3].match(re), [

]);
t.deepEqual(inspect.output[5].match(re), [
t.deepEqual(inspect.output[6].match(re), [
..._erase,

@@ -247,3 +248,3 @@ ..._color('white'),

]);
t.deepEqual(inspect.output[7].match(re), [
t.deepEqual(inspect.output[8].match(re), [
..._erase,

@@ -250,0 +251,0 @@ ..._color('white'),

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