tsarr 2.7.1 → 2.7.2
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":"doctor.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/doctor.ts"],"names":[],"mappings":"AAoCA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/doctor.ts"],"names":[],"mappings":"AAoCA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;EA8FjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seerr.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/seerr.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,eAAO,MAAM,SAAS,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"seerr.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/seerr.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,eAAO,MAAM,SAAS,EAAE,WAAW,EA4GlC,CAAC;AAEF,eAAO,MAAM,KAAK,qDAKjB,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;CACxC;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IA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M,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,uDAqLzB"}
|
package/dist/cli/index.js
CHANGED
|
@@ -5439,14 +5439,21 @@ Run \`tsarr config init\` or set TSARR_${serviceName.toUpperCase()}_API_KEY`;
|
|
|
5439
5439
|
}
|
|
5440
5440
|
});
|
|
5441
5441
|
}
|
|
5442
|
-
const singleAction = resource.actions.length === 1 ?
|
|
5442
|
+
const singleAction = resource.actions.length === 1 ? resource.actions[0] : undefined;
|
|
5443
|
+
const singleActionCommand = singleAction ? actionCommands[singleAction.name] : undefined;
|
|
5443
5444
|
subCommands[resource.name] = defineCommand({
|
|
5444
5445
|
meta: {
|
|
5445
5446
|
name: resource.name,
|
|
5446
5447
|
description: resource.description
|
|
5447
5448
|
},
|
|
5448
5449
|
subCommands: actionCommands,
|
|
5449
|
-
...
|
|
5450
|
+
...singleActionCommand ? {
|
|
5451
|
+
run: (ctx) => {
|
|
5452
|
+
if (process.argv.includes(singleAction.name))
|
|
5453
|
+
return;
|
|
5454
|
+
return singleActionCommand.run(ctx);
|
|
5455
|
+
}
|
|
5456
|
+
} : {}
|
|
5450
5457
|
});
|
|
5451
5458
|
}
|
|
5452
5459
|
return defineCommand({
|
|
@@ -21060,7 +21067,20 @@ var init_seerr3 = __esm(() => {
|
|
|
21060
21067
|
],
|
|
21061
21068
|
columns: ["id", "status", "requestedBy", "createdAt", "updatedAt"],
|
|
21062
21069
|
idField: "id",
|
|
21063
|
-
run: (c3, a2) =>
|
|
21070
|
+
run: async (c3, a2) => {
|
|
21071
|
+
const result = await c3.getRequests(a2.filter ? { filter: a2.filter } : undefined);
|
|
21072
|
+
const data = result?.data ?? result;
|
|
21073
|
+
const items = data?.results ?? data;
|
|
21074
|
+
if (!Array.isArray(items))
|
|
21075
|
+
return result;
|
|
21076
|
+
return {
|
|
21077
|
+
...data,
|
|
21078
|
+
results: items.map((r3) => ({
|
|
21079
|
+
...r3,
|
|
21080
|
+
requestedBy: r3.requestedBy?.displayName ?? r3.requestedBy?.email ?? r3.requestedBy
|
|
21081
|
+
}))
|
|
21082
|
+
};
|
|
21083
|
+
}
|
|
21064
21084
|
},
|
|
21065
21085
|
{
|
|
21066
21086
|
name: "count",
|
|
@@ -21153,13 +21173,13 @@ function classifyError(error) {
|
|
|
21153
21173
|
return "Unknown error";
|
|
21154
21174
|
const msg = error.message;
|
|
21155
21175
|
const cause = error.cause;
|
|
21156
|
-
if (cause?.code === "ECONNREFUSED" || msg.includes("ECONNREFUSED")) {
|
|
21176
|
+
if (cause?.code === "ECONNREFUSED" || cause?.code === "ConnectionRefused" || msg.includes("ECONNREFUSED")) {
|
|
21157
21177
|
return "Connection refused - is the service running?";
|
|
21158
21178
|
}
|
|
21159
21179
|
if (cause?.code === "ENOTFOUND" || msg.includes("ENOTFOUND")) {
|
|
21160
21180
|
return "Host not found - check the URL";
|
|
21161
21181
|
}
|
|
21162
|
-
if (cause?.code === "ECONNRESET" || msg.includes("ECONNRESET")) {
|
|
21182
|
+
if (cause?.code === "ECONNRESET" || cause?.code === "ConnectionReset" || msg.includes("ECONNRESET")) {
|
|
21163
21183
|
return "Connection reset - service may have crashed";
|
|
21164
21184
|
}
|
|
21165
21185
|
if (cause?.code === "ETIMEDOUT" || msg.includes("ETIMEDOUT") || msg.includes("timed out")) {
|
|
@@ -21267,6 +21287,11 @@ var init_doctor = __esm(() => {
|
|
|
21267
21287
|
}
|
|
21268
21288
|
const client9 = factory(svcConfig);
|
|
21269
21289
|
const status = await client9.getSystemStatus();
|
|
21290
|
+
if (status?.error !== undefined) {
|
|
21291
|
+
const err = status.error;
|
|
21292
|
+
const cause = err?.code ? { code: err.code } : undefined;
|
|
21293
|
+
throw Object.assign(new Error(err?.message ?? err?.code ?? "Unknown API error"), cause ? { cause } : {});
|
|
21294
|
+
}
|
|
21270
21295
|
const version = extractVersion(service, status) ?? "?";
|
|
21271
21296
|
if (version === "?") {
|
|
21272
21297
|
throw new Error("Unexpected response payload");
|
|
@@ -21709,7 +21734,7 @@ init_dist();
|
|
|
21709
21734
|
// package.json
|
|
21710
21735
|
var package_default = {
|
|
21711
21736
|
name: "tsarr",
|
|
21712
|
-
version: "2.7.
|
|
21737
|
+
version: "2.7.2",
|
|
21713
21738
|
author: "Robbe Verhelst",
|
|
21714
21739
|
repository: {
|
|
21715
21740
|
type: "git",
|
|
Binary file
|
package/package.json
CHANGED
package/dist/tsarr-2.7.1.tgz
DELETED
|
Binary file
|