supabase 2.115.0-beta.5 → 2.115.0-beta.6
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/supabase.js +26 -7
- package/package.json +10 -10
package/dist/supabase.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/shared/cli/bin.ts
|
|
4
|
-
import {
|
|
4
|
+
import { spawn } from "node:child_process";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
@@ -35,10 +35,29 @@ if (!binPath) {
|
|
|
35
35
|
if (!binPath) {
|
|
36
36
|
throw new Error(`No matching Supabase CLI binary package found for ${process.platform}-${os.arch()}`);
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
var child = spawn(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
39
|
+
var forwardedSignals = ["SIGINT", "SIGTERM", "SIGHUP"];
|
|
40
|
+
var forwarders = new Map;
|
|
41
|
+
for (const signal of forwardedSignals) {
|
|
42
|
+
const forward = () => {
|
|
43
|
+
if (child.exitCode === null && child.signalCode === null)
|
|
44
|
+
child.kill(signal);
|
|
45
|
+
};
|
|
46
|
+
process.on(signal, forward);
|
|
47
|
+
forwarders.set(signal, forward);
|
|
44
48
|
}
|
|
49
|
+
child.on("error", (error) => {
|
|
50
|
+
for (const [signal, forward] of forwarders)
|
|
51
|
+
process.removeListener(signal, forward);
|
|
52
|
+
throw error;
|
|
53
|
+
});
|
|
54
|
+
child.on("exit", (code, signal) => {
|
|
55
|
+
for (const [sig, forward] of forwarders)
|
|
56
|
+
process.removeListener(sig, forward);
|
|
57
|
+
if (signal !== null) {
|
|
58
|
+
process.kill(process.pid, signal);
|
|
59
|
+
setInterval(() => {}, 1000);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
process.exit(code ?? 1);
|
|
63
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supabase",
|
|
3
|
-
"version": "2.115.0-beta.
|
|
3
|
+
"version": "2.115.0-beta.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Supabase CLI",
|
|
6
6
|
"homepage": "https://github.com/supabase/cli#readme",
|
|
@@ -66,20 +66,20 @@
|
|
|
66
66
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
67
67
|
"vitest": "^4.1.10",
|
|
68
68
|
"yaml": "^2.9.0",
|
|
69
|
-
"@supabase/config": "0.1.0",
|
|
70
69
|
"@supabase/api": "0.1.0",
|
|
70
|
+
"@supabase/config": "0.1.0",
|
|
71
71
|
"@supabase/process-compose": "0.1.0",
|
|
72
72
|
"@supabase/stack": "0.1.0"
|
|
73
73
|
},
|
|
74
74
|
"optionalDependencies": {
|
|
75
|
-
"@supabase/cli-darwin-arm64": "2.115.0-beta.
|
|
76
|
-
"@supabase/cli-
|
|
77
|
-
"@supabase/cli-linux-arm64-musl": "2.115.0-beta.
|
|
78
|
-
"@supabase/cli-linux-
|
|
79
|
-
"@supabase/cli-
|
|
80
|
-
"@supabase/cli-
|
|
81
|
-
"@supabase/cli-
|
|
82
|
-
"@supabase/cli-
|
|
75
|
+
"@supabase/cli-darwin-arm64": "2.115.0-beta.6",
|
|
76
|
+
"@supabase/cli-darwin-x64": "2.115.0-beta.6",
|
|
77
|
+
"@supabase/cli-linux-arm64-musl": "2.115.0-beta.6",
|
|
78
|
+
"@supabase/cli-linux-arm64": "2.115.0-beta.6",
|
|
79
|
+
"@supabase/cli-linux-x64": "2.115.0-beta.6",
|
|
80
|
+
"@supabase/cli-linux-x64-musl": "2.115.0-beta.6",
|
|
81
|
+
"@supabase/cli-windows-arm64": "2.115.0-beta.6",
|
|
82
|
+
"@supabase/cli-windows-x64": "2.115.0-beta.6"
|
|
83
83
|
},
|
|
84
84
|
"release": {
|
|
85
85
|
"branches": [
|