@middy/dynamodb 7.3.3 → 7.3.4
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/index.js +5 -2
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -14,6 +14,9 @@ import {
|
|
|
14
14
|
validateOptions,
|
|
15
15
|
} from "@middy/util";
|
|
16
16
|
|
|
17
|
+
const name = "dynamodb";
|
|
18
|
+
const pkg = `@middy/${name}`;
|
|
19
|
+
|
|
17
20
|
const defaults = {
|
|
18
21
|
AwsClient: DynamoDBClient,
|
|
19
22
|
awsClientOptions: {},
|
|
@@ -21,7 +24,7 @@ const defaults = {
|
|
|
21
24
|
awsClientCapture: undefined,
|
|
22
25
|
fetchData: {},
|
|
23
26
|
disablePrefetch: false,
|
|
24
|
-
cacheKey:
|
|
27
|
+
cacheKey: pkg,
|
|
25
28
|
cacheKeyExpiry: {},
|
|
26
29
|
cacheExpiry: -1,
|
|
27
30
|
setToContext: false,
|
|
@@ -73,7 +76,7 @@ const optionSchema = {
|
|
|
73
76
|
};
|
|
74
77
|
|
|
75
78
|
export const dynamodbValidateOptions = (options) =>
|
|
76
|
-
validateOptions(
|
|
79
|
+
validateOptions(pkg, optionSchema, options);
|
|
77
80
|
const dynamodbMiddleware = (opts = {}) => {
|
|
78
81
|
const options = {
|
|
79
82
|
...defaults,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/dynamodb",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.4",
|
|
4
4
|
"description": "DynamoDB middleware for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@middy/util": "7.3.
|
|
75
|
+
"@middy/util": "7.3.4"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@aws-sdk/client-dynamodb": "^3.0.0",
|
|
79
79
|
"@aws-sdk/util-dynamodb": "^3.0.0",
|
|
80
|
-
"@middy/core": "7.3.
|
|
80
|
+
"@middy/core": "7.3.4",
|
|
81
81
|
"@types/aws-lambda": "^8.0.0",
|
|
82
82
|
"@types/node": "^22.0.0",
|
|
83
83
|
"aws-xray-sdk": "^3.3.3"
|