tsarr 2.7.2 → 2.7.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qbit.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/qbit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,eAAO,MAAM,SAAS,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"qbit.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/qbit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,eAAO,MAAM,SAAS,EAAE,WAAW,EAgGlC,CAAC;AAEF,eAAO,MAAM,IAAI,qDAKhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/service.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/service.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACvC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;CAC/D;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,SAAS,EAAE,CAAC;CACtB;AAED,eAAO,MAAM,sBAAsB,UAA0D,CAAC;AAE9F,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,CAAC,EAAE,CAM5E;AAED,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,EACnC,SAAS,EAAE,WAAW,EAAE,uDA+MzB"}
|
package/dist/cli/index.js
CHANGED
|
@@ -5384,6 +5384,10 @@ function buildServiceCommand(serviceName, description, clientFactory, resources)
|
|
|
5384
5384
|
} else if (argDef.type === "boolean" && resolvedArgs[argDef.name] != null) {
|
|
5385
5385
|
resolvedArgs[argDef.name] = coerceBooleanArg(resolvedArgs[argDef.name]);
|
|
5386
5386
|
}
|
|
5387
|
+
if (argDef.values && resolvedArgs[argDef.name] != null && !argDef.values.includes(resolvedArgs[argDef.name])) {
|
|
5388
|
+
consola.error(`Invalid ${argDef.name}: "${resolvedArgs[argDef.name]}". Must be one of: ${argDef.values.join(", ")}`);
|
|
5389
|
+
process.exit(1);
|
|
5390
|
+
}
|
|
5387
5391
|
}
|
|
5388
5392
|
const format = detectFormat(args);
|
|
5389
5393
|
const noHeader = process.argv.includes("--no-header") || !!args.noHeader;
|
|
@@ -5412,6 +5416,18 @@ Run \`tsarr config init\` or set TSARR_${serviceName.toUpperCase()}_API_KEY`;
|
|
|
5412
5416
|
consola.error(`Unauthorized. ${authHint}`);
|
|
5413
5417
|
} else if (status === 404) {
|
|
5414
5418
|
consola.error("Not found.");
|
|
5419
|
+
} else if (!status && err?.code) {
|
|
5420
|
+
const code = err.code;
|
|
5421
|
+
if (code === "ConnectionRefused" || code === "ECONNREFUSED") {
|
|
5422
|
+
consola.error(`Connection refused. Is ${serviceName} running?
|
|
5423
|
+
Run \`tsarr doctor\` to diagnose.`);
|
|
5424
|
+
} else if (code === "ConnectionReset" || code === "ECONNRESET") {
|
|
5425
|
+
consola.error(`Connection reset. ${serviceName} may have crashed.
|
|
5426
|
+
Run \`tsarr doctor\` to diagnose.`);
|
|
5427
|
+
} else {
|
|
5428
|
+
consola.error(`${err?.message ?? `Network error (${code})`}
|
|
5429
|
+
Run \`tsarr doctor\` to diagnose.`);
|
|
5430
|
+
}
|
|
5415
5431
|
} else {
|
|
5416
5432
|
consola.error(err?.title ?? err?.message ?? `API error (${status ?? "unknown"})`);
|
|
5417
5433
|
}
|
|
@@ -19991,7 +20007,21 @@ var init_qbit = __esm(() => {
|
|
|
19991
20007
|
args: [
|
|
19992
20008
|
{
|
|
19993
20009
|
name: "filter",
|
|
19994
|
-
description: "Filter (all|downloading|seeding|completed|paused|active|inactive|stalled|errored)"
|
|
20010
|
+
description: "Filter (all|downloading|seeding|completed|paused|active|inactive|stalled|errored)",
|
|
20011
|
+
values: [
|
|
20012
|
+
"all",
|
|
20013
|
+
"downloading",
|
|
20014
|
+
"seeding",
|
|
20015
|
+
"completed",
|
|
20016
|
+
"paused",
|
|
20017
|
+
"active",
|
|
20018
|
+
"inactive",
|
|
20019
|
+
"resumed",
|
|
20020
|
+
"stalled",
|
|
20021
|
+
"stalled_uploading",
|
|
20022
|
+
"stalled_downloading",
|
|
20023
|
+
"errored"
|
|
20024
|
+
]
|
|
19995
20025
|
}
|
|
19996
20026
|
],
|
|
19997
20027
|
columns: ["hash", "name", "state", "progress", "size", "dlspeed", "upspeed"],
|
|
@@ -21734,7 +21764,7 @@ init_dist();
|
|
|
21734
21764
|
// package.json
|
|
21735
21765
|
var package_default = {
|
|
21736
21766
|
name: "tsarr",
|
|
21737
|
-
version: "2.7.
|
|
21767
|
+
version: "2.7.3",
|
|
21738
21768
|
author: "Robbe Verhelst",
|
|
21739
21769
|
repository: {
|
|
21740
21770
|
type: "git",
|
|
Binary file
|
package/package.json
CHANGED
package/dist/tsarr-2.7.2.tgz
DELETED
|
Binary file
|