@awsless/awsless 0.0.625 → 0.0.627

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/bin.js CHANGED
@@ -5312,7 +5312,8 @@ var siteFeature = defineFeature({
5312
5312
  const instance = Bun.spawn(buildProps.command.split(" "), {
5313
5313
  cwd,
5314
5314
  env,
5315
- stdout: "ignore"
5315
+ stdout: "ignore",
5316
+ stderr: "ignore"
5316
5317
  // stdout: 'inherit',
5317
5318
  // stderr: 'inherit',
5318
5319
  });
@@ -10590,26 +10591,45 @@ var logs2 = (program2) => {
10590
10591
  const profile = appConfig.profile;
10591
10592
  const credentials = await getCredentials(profile);
10592
10593
  const accountId = await getAccountId(credentials, region);
10593
- const { app } = createApp({ appConfig, stackConfigs, accountId });
10594
- const { activityLog } = await createWorkSpace({ credentials, region, accountId });
10595
- const limit = parseInt(options.limit, 10) ?? 10;
10596
- const logs3 = await activityLog.tail(app.urn, limit);
10594
+ await bootstrapAwsless({ credentials, region, accountId });
10595
+ const logs3 = await log31.task({
10596
+ initialMessage: "Loading activity logs",
10597
+ successMessage: "Done loading activity logs.",
10598
+ errorMessage: "Failed loading activity logs.",
10599
+ async task() {
10600
+ const { app } = createApp({ appConfig, stackConfigs, accountId });
10601
+ const { activityLog } = await createWorkSpace({ credentials, region, accountId });
10602
+ const limit = parseInt(options.limit, 10) ?? 10;
10603
+ const logs4 = await activityLog.tail(app.urn, limit);
10604
+ return logs4;
10605
+ }
10606
+ });
10607
+ if (logs3.length === 0) {
10608
+ return color.line.dim(`(empty)`);
10609
+ }
10610
+ const actions = {
10611
+ deploy: color.success("deploy"),
10612
+ delete: color.error("delete")
10613
+ };
10597
10614
  for (const item of logs3) {
10615
+ const date = new Date(item.date);
10598
10616
  log31.info(
10599
10617
  [
10600
- //
10601
10618
  [
10602
- color.line(format2(new Date(item.date), "yyyy-MM-dd HH:mm:ss")),
10619
+ color.line.dim(format2(date, "yyyy-MM-dd")),
10620
+ color.line(format2(date, "HH:mm:ss")),
10603
10621
  color.line.dim(icon.arrow.right),
10604
10622
  color.warning(item.user)
10605
10623
  ].join(" "),
10606
10624
  [
10607
- item.action === "deploy" ? color.success("deploy") : color.error("delete"),
10625
+ //
10626
+ actions[item.action],
10608
10627
  ...item.filters?.map((f) => color.info(f)) ?? []
10609
10628
  ].join(" ")
10610
10629
  ].join("\n")
10611
10630
  );
10612
10631
  }
10632
+ return;
10613
10633
  });
10614
10634
  });
10615
10635
  };
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.625",
3
+ "version": "0.0.627",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -35,21 +35,21 @@
35
35
  "peerDependencies": {
36
36
  "@awsless/big-float": "^0.1.5",
37
37
  "@awsless/cloudwatch": "^0.0.1",
38
- "@awsless/clui": "^0.0.8",
39
- "@awsless/dynamodb": "^0.3.14",
40
- "@awsless/duration": "^0.0.4",
41
38
  "@awsless/json": "^0.0.11",
39
+ "@awsless/dynamodb": "^0.3.14",
40
+ "@awsless/clui": "^0.0.8",
42
41
  "@awsless/lambda": "^0.0.36",
43
- "@awsless/mqtt": "^0.0.2",
44
42
  "@awsless/iot": "^0.0.3",
43
+ "@awsless/sns": "^0.0.10",
44
+ "@awsless/validate": "^0.1.5",
45
45
  "@awsless/redis": "^0.0.14",
46
- "@awsless/open-search": "^0.0.21",
47
- "@awsless/s3": "^0.0.21",
46
+ "@awsless/mqtt": "^0.0.2",
48
47
  "@awsless/sqs": "^0.0.16",
49
- "@awsless/sns": "^0.0.10",
48
+ "@awsless/duration": "^0.0.4",
50
49
  "@awsless/ssm": "^0.0.7",
51
- "@awsless/validate": "^0.1.5",
52
- "@awsless/weak-cache": "^0.0.1"
50
+ "@awsless/open-search": "^0.0.21",
51
+ "@awsless/weak-cache": "^0.0.1",
52
+ "@awsless/s3": "^0.0.21"
53
53
  },
54
54
  "dependencies": {
55
55
  "@arcanyx/cidr-slicer": "^0.3.0",
@@ -139,15 +139,15 @@
139
139
  "zip-a-folder": "^3.1.6",
140
140
  "zod": "^3.24.2",
141
141
  "zod-to-json-schema": "^3.24.3",
142
- "@awsless/big-float": "^0.1.5",
143
142
  "@awsless/clui": "^0.0.8",
144
143
  "@awsless/cloudwatch": "^0.0.1",
144
+ "@awsless/big-float": "^0.1.5",
145
+ "@awsless/json": "^0.0.11",
145
146
  "@awsless/duration": "^0.0.4",
146
147
  "@awsless/graphql": "^0.0.9",
147
- "@awsless/json": "^0.0.11",
148
- "@awsless/scheduler": "^0.0.4",
149
148
  "@awsless/size": "^0.0.2",
150
149
  "@awsless/validate": "^0.1.5",
150
+ "@awsless/scheduler": "^0.0.4",
151
151
  "@awsless/ts-file-cache": "^0.0.12"
152
152
  },
153
153
  "devDependencies": {