@dosu/cli 0.27.0 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/dosu.js +12 -3
- package/package.json +1 -1
package/bin/dosu.js
CHANGED
|
@@ -4577,7 +4577,7 @@ var init_dist4 = __esm(() => {
|
|
|
4577
4577
|
function getVersionString() {
|
|
4578
4578
|
return `v${VERSION}`;
|
|
4579
4579
|
}
|
|
4580
|
-
var VERSION = "0.27.
|
|
4580
|
+
var VERSION = "0.27.1", INSTALL_CHANNEL = "npm";
|
|
4581
4581
|
|
|
4582
4582
|
// src/debug/logger.ts
|
|
4583
4583
|
import {
|
|
@@ -15364,14 +15364,14 @@ function reviewCommand() {
|
|
|
15364
15364
|
return;
|
|
15365
15365
|
}
|
|
15366
15366
|
printTable(["ID", "Kind", "Title", "Source", "Status", "Created"], items.map((i2) => i2.kind === "draft_message" ? [
|
|
15367
|
-
i2.id
|
|
15367
|
+
i2.id,
|
|
15368
15368
|
i2.kind,
|
|
15369
15369
|
truncate(i2.title || "(untitled)", 40),
|
|
15370
15370
|
"Draft reply",
|
|
15371
15371
|
"draft",
|
|
15372
15372
|
formatDate(i2.createdAt)
|
|
15373
15373
|
] : [
|
|
15374
|
-
i2.id
|
|
15374
|
+
i2.id,
|
|
15375
15375
|
i2.kind,
|
|
15376
15376
|
truncate(i2.title ?? "(untitled)", 40),
|
|
15377
15377
|
humanizeSource(i2.origin, i2.version),
|
|
@@ -16324,5 +16324,14 @@ async function execute() {
|
|
|
16324
16324
|
process.on("SIGINT", () => process.exit(0));
|
|
16325
16325
|
execute().catch((err) => {
|
|
16326
16326
|
console.error(err.message ?? err);
|
|
16327
|
+
const data = err?.data;
|
|
16328
|
+
if (data && (data.code || data.path || data.httpStatus)) {
|
|
16329
|
+
const parts = [
|
|
16330
|
+
data.code && `code=${data.code}`,
|
|
16331
|
+
data.path && `path=${data.path}`,
|
|
16332
|
+
data.httpStatus && `status=${data.httpStatus}`
|
|
16333
|
+
].filter(Boolean);
|
|
16334
|
+
console.error(parts.join(" "));
|
|
16335
|
+
}
|
|
16327
16336
|
process.exit(1);
|
|
16328
16337
|
});
|