@stacksjs/ts-cloud 0.5.28 → 0.5.30
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/aws/client.d.ts +7 -0
- package/dist/bin/cli.js +106 -106
- package/dist/index.js +9 -3
- package/dist/ui/index.html +4 -4
- package/dist/ui/server/actions.html +4 -4
- package/dist/ui/server/activity.html +1 -1
- package/dist/ui/server/backups.html +4 -4
- package/dist/ui/server/database.html +4 -4
- package/dist/ui/server/deployments.html +4 -4
- package/dist/ui/server/diagnostics.html +1 -1
- package/dist/ui/server/logs.html +4 -4
- package/dist/ui/server/metrics.html +1 -1
- package/dist/ui/server/security.html +1 -1
- package/dist/ui/server/services.html +4 -4
- package/dist/ui/server/sites.html +4 -4
- package/dist/ui/server/ssh-keys.html +4 -4
- package/dist/ui/server/workers.html +4 -4
- package/dist/ui/serverless/assets.html +1 -1
- package/dist/ui/serverless/cost.html +1 -1
- package/dist/ui/serverless/data.html +1 -1
- package/dist/ui/serverless/deployments.html +1 -1
- package/dist/ui/serverless/firewall.html +1 -1
- package/dist/ui/serverless/functions.html +1 -1
- package/dist/ui/serverless/logs.html +4 -4
- package/dist/ui/serverless/metrics.html +1 -1
- package/dist/ui/serverless/queues.html +1 -1
- package/dist/ui/serverless/scheduler.html +1 -1
- package/dist/ui/serverless/secrets.html +1 -1
- package/dist/ui/serverless.html +1 -1
- package/dist/ui-src/pages/partials/head.stx +2 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -47257,7 +47257,6 @@ class AWSClient {
|
|
|
47257
47257
|
cache;
|
|
47258
47258
|
xmlParser;
|
|
47259
47259
|
constructor(credentials, config6) {
|
|
47260
|
-
this.credentials = credentials || this.loadCredentials();
|
|
47261
47260
|
this.config = {
|
|
47262
47261
|
maxRetries: 3,
|
|
47263
47262
|
retryDelay: 1000,
|
|
@@ -47265,6 +47264,7 @@ class AWSClient {
|
|
|
47265
47264
|
defaultCacheTTL: 60000,
|
|
47266
47265
|
...config6
|
|
47267
47266
|
};
|
|
47267
|
+
this.credentials = credentials || this.loadCredentials();
|
|
47268
47268
|
this.cache = new Map;
|
|
47269
47269
|
this.xmlParser = new XMLParser({
|
|
47270
47270
|
ignoreAttributes: false,
|
|
@@ -47295,7 +47295,7 @@ class AWSClient {
|
|
|
47295
47295
|
};
|
|
47296
47296
|
}
|
|
47297
47297
|
loadCredentialsFromFile() {
|
|
47298
|
-
const profile = process.env.AWS_PROFILE || "default";
|
|
47298
|
+
const profile = this.config?.profile || process.env.AWS_PROFILE || "default";
|
|
47299
47299
|
const credentialsPath = process.env.AWS_SHARED_CREDENTIALS_FILE || join11(homedir6(), ".aws", "credentials");
|
|
47300
47300
|
if (!existsSync16(credentialsPath)) {
|
|
47301
47301
|
return null;
|
|
@@ -47914,7 +47914,7 @@ class S3Client2 {
|
|
|
47914
47914
|
this.endpoint = options?.endpoint;
|
|
47915
47915
|
this.forcePathStyle = options?.forcePathStyle;
|
|
47916
47916
|
this.explicitCredentials = options?.credentials;
|
|
47917
|
-
this.client = new AWSClient(options?.credentials
|
|
47917
|
+
this.client = new AWSClient(options?.credentials, { profile, endpoint: options?.endpoint, forcePathStyle: options?.forcePathStyle });
|
|
47918
47918
|
}
|
|
47919
47919
|
getCredentials() {
|
|
47920
47920
|
if (this.explicitCredentials?.accessKeyId && this.explicitCredentials.secretAccessKey) {
|
|
@@ -88488,6 +88488,8 @@ function siteRoute(site) {
|
|
|
88488
88488
|
}
|
|
88489
88489
|
function siteKindLabel(name, site) {
|
|
88490
88490
|
const kind = resolveSiteKind(site);
|
|
88491
|
+
if (kind === "redirect")
|
|
88492
|
+
return "redirect";
|
|
88491
88493
|
const build = String(site.build ?? "").toLowerCase();
|
|
88492
88494
|
const start = String(site.start ?? "").toLowerCase();
|
|
88493
88495
|
if (name === "main" || start.includes("buddy/src/cli.ts serve"))
|
|
@@ -88510,6 +88512,8 @@ function siteKindLabel(name, site) {
|
|
|
88510
88512
|
}
|
|
88511
88513
|
function siteRuntime(site) {
|
|
88512
88514
|
const kind = resolveSiteKind(site);
|
|
88515
|
+
if (kind === "redirect")
|
|
88516
|
+
return "—";
|
|
88513
88517
|
const command = `${site.start ?? ""} ${site.build ?? ""}`.toLowerCase();
|
|
88514
88518
|
if (kind === "server-static")
|
|
88515
88519
|
return command.includes("bunpress") || command.includes("bun ") || command.includes("bunx ") ? "static/bun" : "static";
|
|
@@ -88521,6 +88525,8 @@ function siteRuntime(site) {
|
|
|
88521
88525
|
}
|
|
88522
88526
|
function siteDeployLabel(site) {
|
|
88523
88527
|
const kind = resolveSiteKind(site);
|
|
88528
|
+
if (kind === "redirect")
|
|
88529
|
+
return "redirect";
|
|
88524
88530
|
if (kind === "server-app")
|
|
88525
88531
|
return "service";
|
|
88526
88532
|
if (kind === "server-static")
|