@supacloud/admin 0.10.0 → 0.10.1
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/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27073,7 +27073,7 @@ function buildRemotePreflightScript() {
|
|
|
27073
27073
|
"test -d /run/lock || { echo '/run/lock is unavailable' >&2; exit 1; }",
|
|
27074
27074
|
"test -d /var/lib/supacloud || { echo '/var/lib/supacloud is unavailable' >&2; exit 1; }",
|
|
27075
27075
|
"test -f /etc/supabase/management-api.env || { echo 'EDGE_RUNTIME_MODE is unavailable' >&2; exit 1; }",
|
|
27076
|
-
`EDGE_MODE=$(awk -F= '$1 == "EDGE_RUNTIME_MODE" { value
|
|
27076
|
+
`EDGE_MODE=$(awk -F= '$1 == "EDGE_RUNTIME_MODE" { value=substr($0, index($0, "=") + 1) } END { gsub(/^[[:space:]\\042\\047]+|[[:space:]\\042\\047]+$/, "", value); print value }' /etc/supabase/management-api.env)`,
|
|
27077
27077
|
`test "$EDGE_MODE" = external || { echo 'Local component upgrade requires persisted external Edge Runtime mode' >&2; exit 1; }`,
|
|
27078
27078
|
`case "$(uname -m)" in x86_64|amd64) echo ARCH=amd64 ;; aarch64|arm64) echo ARCH=arm64 ;; *) echo 'Unsupported remote architecture' >&2; exit 1 ;; esac`,
|
|
27079
27079
|
"VERIFIER=bundled",
|
|
@@ -27902,7 +27902,7 @@ function componentBootstrapCommands(request) {
|
|
|
27902
27902
|
function componentPreflightCommands(request) {
|
|
27903
27903
|
return request.edgeRuntimeVersion ? [
|
|
27904
27904
|
"test -f /etc/supabase/management-api.env || { echo 'EDGE_RUNTIME_MODE is unavailable; component upgrade requires external mode' >&2; exit 1; }",
|
|
27905
|
-
`EDGE_RUNTIME_MODE_VALUE=$(awk -F= '$1 == "EDGE_RUNTIME_MODE" { value
|
|
27905
|
+
`EDGE_RUNTIME_MODE_VALUE=$(awk -F= '$1 == "EDGE_RUNTIME_MODE" { value=substr($0, index($0, "=") + 1) } END { gsub(/^[[:space:]\\042\\047]+|[[:space:]\\042\\047]+$/, "", value); print value }' /etc/supabase/management-api.env)`,
|
|
27906
27906
|
`test "$EDGE_RUNTIME_MODE_VALUE" = external || { echo 'Edge Runtime component upgrade supports persisted external mode only' >&2; exit 1; }`
|
|
27907
27907
|
] : [];
|
|
27908
27908
|
}
|
|
@@ -30472,7 +30472,7 @@ Actions: routes, upsert_route, update_route, delete_route, config, get_certifica
|
|
|
30472
30472
|
// package.json
|
|
30473
30473
|
var package_default = {
|
|
30474
30474
|
name: "@supacloud/admin",
|
|
30475
|
-
version: "0.10.
|
|
30475
|
+
version: "0.10.1",
|
|
30476
30476
|
description: "Platform administration CLI for SupaCloud operators",
|
|
30477
30477
|
type: "module",
|
|
30478
30478
|
main: "./dist/index.js",
|