@middy/secrets-manager 7.3.3 → 7.4.0
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
|
@@ -18,6 +18,9 @@ import {
|
|
|
18
18
|
validateOptions,
|
|
19
19
|
} from "@middy/util";
|
|
20
20
|
|
|
21
|
+
const name = "secrets-manager";
|
|
22
|
+
const pkg = `@middy/${name}`;
|
|
23
|
+
|
|
21
24
|
const defaults = {
|
|
22
25
|
AwsClient: SecretsManagerClient,
|
|
23
26
|
awsClientOptions: {},
|
|
@@ -26,7 +29,7 @@ const defaults = {
|
|
|
26
29
|
fetchData: {},
|
|
27
30
|
fetchRotationDate: false, // true: apply to all or {key: true} for individual
|
|
28
31
|
disablePrefetch: false,
|
|
29
|
-
cacheKey:
|
|
32
|
+
cacheKey: pkg,
|
|
30
33
|
cacheKeyExpiry: {},
|
|
31
34
|
cacheExpiry: -1, // ignored when fetchRotationRules is true/object
|
|
32
35
|
setToContext: false,
|
|
@@ -62,7 +65,7 @@ const optionSchema = {
|
|
|
62
65
|
};
|
|
63
66
|
|
|
64
67
|
export const secretsManagerValidateOptions = (options) =>
|
|
65
|
-
validateOptions(
|
|
68
|
+
validateOptions(pkg, optionSchema, options);
|
|
66
69
|
|
|
67
70
|
const secretsManagerMiddleware = (opts = {}) => {
|
|
68
71
|
const options = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/secrets-manager",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0",
|
|
4
4
|
"description": "Secrets Manager middleware for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"url": "https://github.com/sponsors/willfarrell"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@middy/util": "7.
|
|
63
|
+
"@middy/util": "7.4.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@aws-sdk/client-secrets-manager": "^3.0.0"
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@aws-sdk/client-secrets-manager": "^3.0.0",
|
|
75
|
-
"@middy/core": "7.
|
|
75
|
+
"@middy/core": "7.4.0",
|
|
76
76
|
"@types/aws-lambda": "^8.0.0",
|
|
77
77
|
"@types/node": "^22.0.0",
|
|
78
78
|
"aws-xray-sdk": "^3.3.3"
|