@supacloud/admin 0.1.4 → 0.1.5

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 CHANGED
@@ -4757,11 +4757,6 @@ var require_utils = __commonJS((exports, module) => {
4757
4757
  };
4758
4758
  });
4759
4759
 
4760
- // node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node
4761
- var require_sshcrypto = __commonJS((exports, module) => {
4762
- module.exports = __require("./sshcrypto-w7mnkyjv.node");
4763
- });
4764
-
4765
4760
  // node_modules/ssh2/lib/protocol/crypto/poly1305.js
4766
4761
  var require_poly1305 = __commonJS((exports, module) => {
4767
4762
  var __dirname = "/home/runner/work/supacloud/supacloud/packages/admin/node_modules/ssh2/lib/protocol/crypto", __filename = "/home/runner/work/supacloud/supacloud/packages/admin/node_modules/ssh2/lib/protocol/crypto/poly1305.js";
@@ -5248,7 +5243,7 @@ var require_crypto = __commonJS((exports, module) => {
5248
5243
  var ChaChaPolyDecipher;
5249
5244
  var GenericDecipher;
5250
5245
  try {
5251
- binding = require_sshcrypto();
5246
+ binding = (()=>{throw new Error("Cannot require module "+"./crypto/build/Release/sshcrypto.node");})();
5252
5247
  ({
5253
5248
  AESGCMCipher,
5254
5249
  ChaChaPolyCipher,
@@ -23410,6 +23405,9 @@ function assertSafeGithubProxy(value) {
23410
23405
  }
23411
23406
  return parsed.toString();
23412
23407
  }
23408
+ function deriveStudioDomain(publicDomain) {
23409
+ return `studio.${publicDomain.trim().replace(/^(?:api|studio)\./i, "")}`;
23410
+ }
23413
23411
  function getExecTimeoutMs(timeoutSeconds) {
23414
23412
  const seconds = timeoutSeconds || 60;
23415
23413
  if (!Number.isFinite(seconds) || seconds <= 0 || seconds > SAFE_TIMEOUT_SECONDS) {
@@ -23506,7 +23504,7 @@ ${clone.stderr.slice(-500)}`;
23506
23504
  }
23507
23505
  const envLines = [
23508
23506
  `SUPABASE_PUBLIC_DOMAIN=${args.public_domain}`,
23509
- `SUPABASE_STUDIO_DOMAIN=${args.studio_domain ?? args.public_domain}`,
23507
+ `SUPABASE_STUDIO_DOMAIN=${args.studio_domain ?? deriveStudioDomain(args.public_domain)}`,
23510
23508
  `EDGE_RUNTIME=${args.edge_runtime || "bun"}`,
23511
23509
  `S3_STORAGE_TYPE=${args.storage_type || "juicefs"}`,
23512
23510
  args.postgres_password ? `POSTGRES_PASSWORD=${args.postgres_password}` : "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/admin",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Platform administration CLI for SupaCloud operators",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
Binary file