@lacrous/omnicloud 0.2.8 → 0.2.9
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/dist/cli.js +8 -1
- package/package.json +4 -4
- package/server/index.js +1 -1
package/dist/cli.js
CHANGED
|
@@ -98,8 +98,14 @@ async function generate(env) {
|
|
|
98
98
|
const code = await run(process.execPath, [prismaCli(), "generate", "--schema", schemaPath], env);
|
|
99
99
|
if (code !== 0) throw new Error(`Prisma client generation failed (exit ${code}).`);
|
|
100
100
|
}
|
|
101
|
+
function openerFor(platform, url) {
|
|
102
|
+
if (platform === "darwin") return { command: "open", args: [url] };
|
|
103
|
+
if (platform === "win32")
|
|
104
|
+
return { command: "rundll32", args: ["url.dll,FileProtocolHandler", url] };
|
|
105
|
+
return { command: "xdg-open", args: [url] };
|
|
106
|
+
}
|
|
101
107
|
function openUrl(url) {
|
|
102
|
-
const opener = process.platform
|
|
108
|
+
const opener = openerFor(process.platform, url);
|
|
103
109
|
const child = spawn(opener.command, opener.args, { stdio: "ignore", detached: true });
|
|
104
110
|
child.on("error", () => {
|
|
105
111
|
process.stdout.write(`Open ${url} in your browser.
|
|
@@ -298,6 +304,7 @@ export {
|
|
|
298
304
|
buildEnvFile,
|
|
299
305
|
loadEnvFile,
|
|
300
306
|
main,
|
|
307
|
+
openerFor,
|
|
301
308
|
parseArgs,
|
|
302
309
|
parseEnvFile,
|
|
303
310
|
validateSetup
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lacrous/omnicloud",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "SDK and core building blocks for OmniCloud — self-hosted cloud storage powered by your Telegram account.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"prisma": "^6.2.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@omnicloud/core": "0.2.
|
|
52
|
-
"@omnicloud/shared": "0.2.
|
|
53
|
-
"@omnicloud/telegram": "0.2.
|
|
51
|
+
"@omnicloud/core": "0.2.9",
|
|
52
|
+
"@omnicloud/shared": "0.2.9",
|
|
53
|
+
"@omnicloud/telegram": "0.2.9",
|
|
54
54
|
"@types/node": "^22.10.0",
|
|
55
55
|
"esbuild": "0.25.12",
|
|
56
56
|
"tsup": "^8.3.0",
|
package/server/index.js
CHANGED
|
@@ -4895,7 +4895,7 @@ function encryptionCheck(configured) {
|
|
|
4895
4895
|
}
|
|
4896
4896
|
|
|
4897
4897
|
// ../../apps/api/src/routes/storage.ts
|
|
4898
|
-
var VERSION = "0.2.
|
|
4898
|
+
var VERSION = "0.2.9";
|
|
4899
4899
|
function registerStorageRoutes(app2, container2) {
|
|
4900
4900
|
app2.get("/api/health", async () => {
|
|
4901
4901
|
const database = await probeDatabase(container2);
|