@middy/sts 7.0.3 → 7.1.1
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/README.md +1 -1
- package/index.d.ts +3 -0
- package/index.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<h1>Middy sts middleware</h1>
|
|
2
|
+
<h1>Middy `sts` middleware</h1>
|
|
3
3
|
<img alt="Middy logo" src="https://raw.githubusercontent.com/middyjs/middy/main/docs/img/middy-logo.svg"/>
|
|
4
4
|
<p><strong>STS middleware for the middy framework, the stylish Node.js middleware engine for AWS Lambda</strong></p>
|
|
5
5
|
<p>
|
package/index.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ import type middy from "@middy/core";
|
|
|
9
9
|
import type { Options as MiddyOptions } from "@middy/util";
|
|
10
10
|
import type { Context as LambdaContext } from "aws-lambda";
|
|
11
11
|
|
|
12
|
+
export type ParamType<T> = string & { __returnType?: T };
|
|
13
|
+
export declare function stsParam<T>(name: string): ParamType<T>;
|
|
14
|
+
|
|
12
15
|
export interface AssumedRoleCredentials {
|
|
13
16
|
accessKeyId: string;
|
|
14
17
|
secretAccessKey: string;
|
package/index.js
CHANGED
|
@@ -77,7 +77,7 @@ const stsMiddleware = (opts = {}) => {
|
|
|
77
77
|
|
|
78
78
|
if (options.setToContext) {
|
|
79
79
|
const data = await getInternal(Object.keys(options.fetchData), request);
|
|
80
|
-
|
|
80
|
+
Object.assign(request.context, data);
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/sts",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "STS (Security Token Service) credentials middleware for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"url": "https://github.com/sponsors/willfarrell"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@middy/util": "7.
|
|
68
|
+
"@middy/util": "7.1.1"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@aws-sdk/client-sts": "^3.0.0"
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@aws-sdk/client-sts": "^3.0.0",
|
|
80
|
-
"@middy/core": "7.
|
|
81
|
-
"@types/aws-lambda": "^8.
|
|
80
|
+
"@middy/core": "7.1.1",
|
|
81
|
+
"@types/aws-lambda": "^8.0.0",
|
|
82
82
|
"aws-xray-sdk": "^3.3.3"
|
|
83
83
|
},
|
|
84
84
|
"gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431"
|