@awsless/awsless 0.0.387 → 0.0.389

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
@@ -13278,7 +13278,6 @@ 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";
13282
13281
  var tableFeature = defineFeature({
13283
13282
  name: "table",
13284
13283
  async onTypeGen(ctx) {
@@ -13308,8 +13307,6 @@ var tableFeature = defineFeature({
13308
13307
  resourceType: "table",
13309
13308
  resourceName: "*"
13310
13309
  });
13311
- console.log(name);
13312
- console.log(paramCase8("*") || "*", "param case");
13313
13310
  policy.addStatement({
13314
13311
  actions: [
13315
13312
  "dynamodb:PutItem",
@@ -13323,8 +13320,8 @@ var tableFeature = defineFeature({
13323
13320
  "dynamodb:ConditionCheckItem"
13324
13321
  ],
13325
13322
  resources: [
13326
- `arn:aws:dynamodb:${ctx.appConfig.region}:*:table/${name}`,
13327
- `arn:aws:dynamodb:${ctx.appConfig.region}:*:table/${name}/index/*`
13323
+ `arn:aws:dynamodb:${ctx.appConfig.region}:${ctx.accountId}:table/${name}`,
13324
+ `arn:aws:dynamodb:${ctx.appConfig.region}:${ctx.accountId}:table/${name}/index/*`
13328
13325
  ]
13329
13326
  });
13330
13327
  });
@@ -13534,7 +13531,7 @@ var topicFeature = defineFeature({
13534
13531
  policy.addStatement({
13535
13532
  actions: ["sns:Publish"],
13536
13533
  resources: [
13537
- `arn:aws:sns:${ctx.appConfig.region}:*:${formatGlobalResourceName({
13534
+ `arn:aws:sns:${ctx.appConfig.region}:${ctx.accountId}:${formatGlobalResourceName({
13538
13535
  appName: ctx.app.name,
13539
13536
  resourceType: "topic",
13540
13537
  resourceName: "*"
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.387",
3
+ "version": "0.0.389",
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/sns": "^0.0.7",
35
- "@awsless/mqtt": "^0.0.2",
36
34
  "@awsless/redis": "^0.0.13",
37
- "@awsless/ssm": "^0.0.7",
35
+ "@awsless/sns": "^0.0.7",
38
36
  "@awsless/validate": "^0.0.15",
39
- "@awsless/weak-cache": "^0.0.1",
40
37
  "@awsless/sqs": "^0.0.7",
41
- "@awsless/s3": "^0.0.18"
38
+ "@awsless/weak-cache": "^0.0.1",
39
+ "@awsless/s3": "^0.0.18",
40
+ "@awsless/ssm": "^0.0.7",
41
+ "@awsless/mqtt": "^0.0.2"
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/validate": "^0.0.15",
120
119
  "@awsless/size": "^0.0.1",
121
- "@awsless/ts-file-cache": "^0.0.10"
120
+ "@awsless/ts-file-cache": "^0.0.10",
121
+ "@awsless/validate": "^0.0.15"
122
122
  },
123
123
  "devDependencies": {
124
124
  "@node-rs/bcrypt": "^1.10.5"