@awsless/awsless 0.0.385 → 0.0.387

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
@@ -7336,6 +7336,9 @@ var pushRemoteState = async (app, stateProvider) => {
7336
7336
  };
7337
7337
 
7338
7338
  // src/cli/ui/util.ts
7339
+ import { spinner } from "@clack/prompts";
7340
+ import { capitalCase } from "change-case";
7341
+ import Table from "cli-table3";
7339
7342
  import wrapAnsi from "wrap-ansi";
7340
7343
 
7341
7344
  // src/cli/ui/style.ts
@@ -7376,9 +7379,6 @@ var char = {
7376
7379
  };
7377
7380
 
7378
7381
  // src/cli/ui/util.ts
7379
- import Table from "cli-table3";
7380
- import { capitalCase } from "change-case";
7381
- import { spinner } from "@clack/prompts";
7382
7382
  var wrap = (lines, options) => {
7383
7383
  return wrapAnsi(typeof lines === "string" ? lines : lines.join("\n"), process.stdout.columns - 8, options);
7384
7384
  };
@@ -7394,7 +7394,7 @@ var task = async (message, cb) => {
7394
7394
  spin.start(last);
7395
7395
  try {
7396
7396
  const result = await cb((m) => {
7397
- spin.message(m);
7397
+ spin.message(m.substring(0, process.stdout.columns - 8));
7398
7398
  last = m;
7399
7399
  });
7400
7400
  spin.stop(last);
@@ -8954,7 +8954,7 @@ var formatGlobalResourceName = (opt) => {
8954
8954
  opt.resourceType,
8955
8955
  opt.resourceName,
8956
8956
  opt.postfix
8957
- ].filter((v) => typeof v === "string").map((v) => paramCase3(v)).join(opt.seperator ?? "--");
8957
+ ].filter((v) => typeof v === "string").map((v) => paramCase3(v) || v).join(opt.seperator ?? "--");
8958
8958
  };
8959
8959
  var formatLocalResourceName = (opt) => {
8960
8960
  return [
@@ -8965,7 +8965,7 @@ var formatLocalResourceName = (opt) => {
8965
8965
  opt.resourceType,
8966
8966
  opt.resourceName,
8967
8967
  opt.postfix
8968
- ].filter((v) => typeof v === "string").map((v) => paramCase3(v)).join(opt.seperator ?? "--");
8968
+ ].filter((v) => typeof v === "string").map((v) => paramCase3(v) || v).join(opt.seperator ?? "--");
8969
8969
  };
8970
8970
  var generateGlobalAppId = (opt) => {
8971
8971
  return createHmac("sha1", "awsless").update(opt.accountId).update(opt.region).update(opt.appName).digest("hex").substring(0, 8);
@@ -13278,6 +13278,7 @@ var streamFeature = defineFeature({
13278
13278
 
13279
13279
  // src/feature/table/index.ts
13280
13280
  import { aws as aws22, Node as Node21 } from "@awsless/formation";
13281
+ import { paramCase as paramCase8 } from "change-case";
13281
13282
  var tableFeature = defineFeature({
13282
13283
  name: "table",
13283
13284
  async onTypeGen(ctx) {
@@ -13307,6 +13308,8 @@ var tableFeature = defineFeature({
13307
13308
  resourceType: "table",
13308
13309
  resourceName: "*"
13309
13310
  });
13311
+ console.log(name);
13312
+ console.log(paramCase8("*") || "*", "param case");
13310
13313
  policy.addStatement({
13311
13314
  actions: [
13312
13315
  "dynamodb:PutItem",
@@ -14723,7 +14726,8 @@ var runTest = async (stack, dir, filters) => {
14723
14726
  //
14724
14727
  stack,
14725
14728
  icon.arrow.right,
14726
- tasks.map((t) => t.name).join(` ${icon.arrow.right} `)
14729
+ tasks.at(-1)?.name
14730
+ // tasks.map(t => t.name).join(` ${icon.arrow.right} `),
14727
14731
  ].join(" ")
14728
14732
  );
14729
14733
  });
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.385",
3
+ "version": "0.0.387",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -28,17 +28,17 @@
28
28
  }
29
29
  },
30
30
  "peerDependencies": {
31
- "@awsless/lambda": "^0.0.26",
32
31
  "@awsless/iot": "^0.0.2",
32
+ "@awsless/lambda": "^0.0.26",
33
33
  "@awsless/open-search": "^0.0.15",
34
- "@awsless/redis": "^0.0.13",
35
34
  "@awsless/sns": "^0.0.7",
36
- "@awsless/sqs": "^0.0.7",
37
- "@awsless/s3": "^0.0.18",
35
+ "@awsless/mqtt": "^0.0.2",
36
+ "@awsless/redis": "^0.0.13",
38
37
  "@awsless/ssm": "^0.0.7",
39
38
  "@awsless/validate": "^0.0.15",
40
39
  "@awsless/weak-cache": "^0.0.1",
41
- "@awsless/mqtt": "^0.0.2"
40
+ "@awsless/sqs": "^0.0.7",
41
+ "@awsless/s3": "^0.0.18"
42
42
  },
43
43
  "dependencies": {
44
44
  "@arcanyx/cidr-slicer": "^0.3.0",
@@ -116,9 +116,9 @@
116
116
  "@awsless/duration": "^0.0.1",
117
117
  "@awsless/formation": "^0.0.57",
118
118
  "@awsless/graphql": "^0.0.9",
119
- "@awsless/ts-file-cache": "^0.0.10",
120
119
  "@awsless/validate": "^0.0.15",
121
- "@awsless/size": "^0.0.1"
120
+ "@awsless/size": "^0.0.1",
121
+ "@awsless/ts-file-cache": "^0.0.10"
122
122
  },
123
123
  "devDependencies": {
124
124
  "@node-rs/bcrypt": "^1.10.5"