@awsless/awsless 0.0.200 → 0.0.202

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.
Files changed (2) hide show
  1. package/dist/bin.js +2 -1
  2. package/package.json +4 -4
package/dist/bin.js CHANGED
@@ -3180,7 +3180,7 @@ var tableFeature = defineFeature({
3180
3180
  });
3181
3181
  if (props.stream) {
3182
3182
  const { lambda, policy } = createLambdaFunction(group, ctx, "table", id, props.stream.consumer);
3183
- new aws11.lambda.EventSourceMapping(group, id, {
3183
+ const source = new aws11.lambda.EventSourceMapping(group, id, {
3184
3184
  functionArn: lambda.arn,
3185
3185
  sourceArn: table2.streamArn,
3186
3186
  batchSize: 100,
@@ -3191,6 +3191,7 @@ var tableFeature = defineFeature({
3191
3191
  onFailure: getGlobalOnFailure(ctx)
3192
3192
  });
3193
3193
  policy.addStatement(table2.streamPermissions);
3194
+ source.dependsOn(policy);
3194
3195
  }
3195
3196
  ctx.onFunction(({ policy }) => {
3196
3197
  policy.addStatement(...table2.permissions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.200",
3
+ "version": "0.0.202",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -30,11 +30,11 @@
30
30
  "peerDependencies": {
31
31
  "@awsless/lambda": "^0.0.18",
32
32
  "@awsless/redis": "^0.0.12",
33
+ "@awsless/s3": "^0.0.10",
33
34
  "@awsless/open-search": "^0.0.11",
34
35
  "@awsless/sns": "^0.0.7",
35
- "@awsless/sqs": "^0.0.7",
36
36
  "@awsless/ssm": "^0.0.7",
37
- "@awsless/s3": "^0.0.10",
37
+ "@awsless/sqs": "^0.0.7",
38
38
  "@awsless/validate": "^0.0.13",
39
39
  "@awsless/weak-cache": "^0.0.1"
40
40
  },
@@ -98,7 +98,7 @@
98
98
  "zod": "^3.21.4",
99
99
  "zod-to-json-schema": "^3.22.3",
100
100
  "@awsless/duration": "^0.0.1",
101
- "@awsless/formation": "^0.0.16",
101
+ "@awsless/formation": "^0.0.17",
102
102
  "@awsless/size": "^0.0.1",
103
103
  "@awsless/graphql": "^0.0.9",
104
104
  "@awsless/validate": "^0.0.13",