@hisaabo/cli 0.8.4 → 0.9.0
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.
|
@@ -77,10 +77,7 @@ async function exportCommand(opts) {
|
|
|
77
77
|
let exportUrl;
|
|
78
78
|
try {
|
|
79
79
|
const result = await client.selfExport.request({ tenantId });
|
|
80
|
-
exportUrl = result.url;
|
|
81
|
-
if (exportUrl.startsWith("/")) {
|
|
82
|
-
exportUrl = `${cfg.apiUrl}${exportUrl}`;
|
|
83
|
-
}
|
|
80
|
+
exportUrl = result.url.startsWith("/") ? `${cfg.apiUrl}${result.url}` : result.url;
|
|
84
81
|
} catch (e) {
|
|
85
82
|
if (e instanceof HisaaboApiError) {
|
|
86
83
|
const err = e.hisaaboError;
|
package/dist/bin/hisaabo.js
CHANGED
|
@@ -5129,7 +5129,7 @@ Exit codes:
|
|
|
5129
5129
|
2 Rate limit reached (2 exports per day)
|
|
5130
5130
|
5 Server or network error`
|
|
5131
5131
|
).action(async (opts) => {
|
|
5132
|
-
const { exportCommand } = await import("./export-
|
|
5132
|
+
const { exportCommand } = await import("./export-6PMJ2YVL.js");
|
|
5133
5133
|
await exportCommand({ tenant: opts.tenant, output: opts.output });
|
|
5134
5134
|
});
|
|
5135
5135
|
program2.command("restore").description("Upload a .tar.gz backup archive into an empty tenant").requiredOption("--tenant <slug-or-id>", "Target tenant slug or UUID (must be empty)").requiredOption("-i, --input <file>", "Input backup file path (e.g. backup.tar.gz)").option("-y, --yes", "Skip confirmation prompt").addHelpText(
|
|
@@ -5158,7 +5158,7 @@ Exit codes:
|
|
|
5158
5158
|
|
|
5159
5159
|
// src/bin/hisaabo.ts
|
|
5160
5160
|
var program = new Command();
|
|
5161
|
-
var cliVersion = true ? "0.
|
|
5161
|
+
var cliVersion = true ? "0.9.0" : "dev";
|
|
5162
5162
|
program.name("hisaabo").description("Hisaabo CLI \u2014 Invoicing and business management").version(cliVersion);
|
|
5163
5163
|
registerAuthCommands(program);
|
|
5164
5164
|
registerDashboardCommands(program);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hisaabo/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Hisaabo command-line interface — manage invoices, parties, items, payments, and reports from your terminal.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hisaabo",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"tsup": "^8.3.0",
|
|
48
48
|
"tsx": "^4.19.0",
|
|
49
49
|
"typescript": "^5.7.0",
|
|
50
|
-
"@hisaabo/api": "0.
|
|
51
|
-
"@hisaabo/shared": "0.
|
|
50
|
+
"@hisaabo/api": "0.9.0",
|
|
51
|
+
"@hisaabo/shared": "0.9.0"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=20"
|