@awsless/awsless 0.0.386 → 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
@@ -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",
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.386",
3
+ "version": "0.0.387",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -31,14 +31,14 @@
31
31
  "@awsless/iot": "^0.0.2",
32
32
  "@awsless/lambda": "^0.0.26",
33
33
  "@awsless/open-search": "^0.0.15",
34
- "@awsless/redis": "^0.0.13",
35
- "@awsless/s3": "^0.0.18",
36
- "@awsless/validate": "^0.0.15",
37
34
  "@awsless/sns": "^0.0.7",
35
+ "@awsless/mqtt": "^0.0.2",
36
+ "@awsless/redis": "^0.0.13",
38
37
  "@awsless/ssm": "^0.0.7",
38
+ "@awsless/validate": "^0.0.15",
39
+ "@awsless/weak-cache": "^0.0.1",
39
40
  "@awsless/sqs": "^0.0.7",
40
- "@awsless/mqtt": "^0.0.2",
41
- "@awsless/weak-cache": "^0.0.1"
41
+ "@awsless/s3": "^0.0.18"
42
42
  },
43
43
  "dependencies": {
44
44
  "@arcanyx/cidr-slicer": "^0.3.0",
@@ -112,12 +112,12 @@
112
112
  "zip-a-folder": "^3.1.6",
113
113
  "zod": "^3.21.4",
114
114
  "zod-to-json-schema": "^3.22.3",
115
+ "@awsless/code": "^0.0.10",
115
116
  "@awsless/duration": "^0.0.1",
116
- "@awsless/size": "^0.0.1",
117
117
  "@awsless/formation": "^0.0.57",
118
- "@awsless/validate": "^0.0.15",
119
118
  "@awsless/graphql": "^0.0.9",
120
- "@awsless/code": "^0.0.10",
119
+ "@awsless/validate": "^0.0.15",
120
+ "@awsless/size": "^0.0.1",
121
121
  "@awsless/ts-file-cache": "^0.0.10"
122
122
  },
123
123
  "devDependencies": {