@syntest/cli-graphics
Advanced tools
Comparing version 0.3.0-beta.0 to 0.3.0-beta.1
@@ -21,2 +21,3 @@ "use strict"; | ||
exports.UserInterface = void 0; | ||
const diagnostics_1 = require("@syntest/diagnostics"); | ||
const chalk = require("chalk"); | ||
@@ -84,6 +85,8 @@ const cliProgress = require("cli-progress"); | ||
if (this.bars === undefined) { | ||
throw new Error("Progress bars have not been started yet"); | ||
throw new diagnostics_1.IllegalStateError("Progress bars have not been started yet"); | ||
} | ||
if (this.bars.has(bar.name) === false) { | ||
throw new Error(`Progress bar with name ${bar.name} does not exist`); | ||
throw new diagnostics_1.IllegalStateError("Progress bar does not exist", { | ||
context: { barName: bar.name }, | ||
}); | ||
} | ||
@@ -101,3 +104,3 @@ this.bars | ||
if (this.barObject === undefined) { | ||
throw new Error("Progress bars have not been started yet"); | ||
throw new diagnostics_1.IllegalStateError("Progress bars have not been started yet"); | ||
} | ||
@@ -104,0 +107,0 @@ this.barObject.stop(); |
{ | ||
"name": "@syntest/cli-graphics", | ||
"version": "0.3.0-beta.0", | ||
"version": "0.3.0-beta.1", | ||
"description": "SynTest library for cli graphics", | ||
@@ -51,3 +51,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@syntest/logging": "^0.2.0-beta.1", | ||
"@syntest/diagnostics": "^0.1.0-beta.0", | ||
"@syntest/logging": "^0.2.0-beta.2", | ||
"chalk": "4.1.1", | ||
@@ -68,3 +69,3 @@ "clear": "0.1.0", | ||
}, | ||
"gitHead": "20ce3f59489341e9e9ba8f3a441b516a5d625d9a" | ||
"gitHead": "3f6b9612c030ffc79d5e79c5c1c126ca816a87a6" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31203
254
7