Comparing version 1.1.1 to 1.1.2
@@ -134,2 +134,3 @@ import assert from 'node:assert/strict'; | ||
try { | ||
if (!this.#quite) process.stdout.write(`${i}. ${cb.description}\n`); | ||
if (type === 'Function') { | ||
@@ -146,2 +147,3 @@ cb.callback(); | ||
} catch (e) { | ||
process.stdout.write(`\x1b[31mERROR: ${i}. ${cb.description}\x1b[0m\n`); | ||
if (!errors) { | ||
@@ -153,3 +155,4 @@ errors = true | ||
const duration = getDuration(start); | ||
if (!this.#quite) process.stdout.write(`${i}. ${cb.description} : ${duration} ms\n`); | ||
if (!this.#quite && !error) process.stdout.write(`Finished in: ${duration} ms\n`); | ||
if (error) { | ||
@@ -156,0 +159,0 @@ this.#handleError(error); |
@@ -5,3 +5,3 @@ { | ||
"type": "module", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Execute shell commands on Linux-based systems from javascript", | ||
@@ -53,2 +53,2 @@ "main": "lib/SH.js", | ||
] | ||
} | ||
} |
48317
1050