@awsless/awsless 0.0.134 → 0.0.136

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
@@ -4965,7 +4965,7 @@ var DynamoDBEventSource = class extends Group {
4965
4965
  constructor(id, lambda, props) {
4966
4966
  const source = new EventSourceMapping(id, {
4967
4967
  functionArn: lambda.arn,
4968
- sourceArn: props.tableArn,
4968
+ sourceArn: props.streamArn,
4969
4969
  batchSize: props.batchSize ?? 100,
4970
4970
  bisectBatchOnError: props.bisectBatchOnError ?? true,
4971
4971
  maxBatchingWindow: props.maxBatchingWindow,
@@ -4984,7 +4984,7 @@ var DynamoDBEventSource = class extends Group {
4984
4984
  "dynamodb:GetRecords",
4985
4985
  "dynamodb:GetShardIterator"
4986
4986
  ],
4987
- resources: [props.tableArn]
4987
+ resources: [props.streamArn]
4988
4988
  });
4989
4989
  super([source]);
4990
4990
  }
@@ -5019,7 +5019,8 @@ var tablePlugin = definePlugin({
5019
5019
  if (props.stream) {
5020
5020
  const lambda = toLambdaFunction(ctx, `stream-${id}`, props.stream.consumer);
5021
5021
  const source = new DynamoDBEventSource(id, lambda, {
5022
- tableArn: table.arn,
5022
+ streamArn: table.streamArn,
5023
+ startingPosition: "latest",
5023
5024
  onFailure: getGlobalOnFailure(ctx),
5024
5025
  ...props.stream
5025
5026
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.134",
3
+ "version": "0.0.136",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -28,12 +28,12 @@
28
28
  }
29
29
  },
30
30
  "peerDependencies": {
31
- "@awsless/sqs": "^0.0.7",
32
- "@awsless/sns": "^0.0.7",
33
31
  "@awsless/lambda": "^0.0.15",
34
- "@awsless/validate": "^0.0.10",
35
- "@awsless/ssm": "^0.0.7",
32
+ "@awsless/sns": "^0.0.7",
36
33
  "@awsless/redis": "^0.0.10",
34
+ "@awsless/sqs": "^0.0.7",
35
+ "@awsless/ssm": "^0.0.7",
36
+ "@awsless/validate": "^0.0.10",
37
37
  "@awsless/weak-cache": "^0.0.1"
38
38
  },
39
39
  "dependencies": {
@@ -87,8 +87,8 @@
87
87
  "wrap-ansi": "^8.1.0",
88
88
  "zod": "^3.21.4",
89
89
  "zod-to-json-schema": "^3.22.3",
90
- "@awsless/code": "^0.0.10",
91
- "@awsless/graphql": "^0.0.6"
90
+ "@awsless/graphql": "^0.0.6",
91
+ "@awsless/code": "^0.0.10"
92
92
  },
93
93
  "scripts": {
94
94
  "test": "pnpm code test",