@middy/cloudformation-router 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 +2 -2
- package/index.d.ts +6 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<h1>Middy cloudformation-router
|
|
2
|
+
<h1>Middy `cloudformation-router` 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>CloudFormation Custom Response router for the middy framework, the stylish Node.js middleware engine for AWS Lambda</strong></p>
|
|
5
5
|
<p>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
## License
|
|
34
34
|
|
|
35
|
-
Licensed under [MIT License](LICENSE). Copyright (c) 2017-
|
|
35
|
+
Licensed under [MIT License](LICENSE). Copyright (c) 2017-2026 [will Farrell](https://github.com/willfarrell), [Luciano Mammino](https://github.com/lmammino), and [Middy contributors](https://github.com/middyjs/middy/graphs/contributors).
|
|
36
36
|
|
|
37
37
|
<a href="https://app.fossa.io/projects/git%2Bgithub.com%2Fmiddyjs%2Fmiddy?ref=badge_large">
|
|
38
38
|
<img src="https://app.fossa.io/api/projects/git%2Bgithub.com%2Fmiddyjs%2Fmiddy.svg?type=large" alt="FOSSA Status" style="max-width:100%;">
|
package/index.d.ts
CHANGED
|
@@ -8,8 +8,13 @@ interface Route<T = never> {
|
|
|
8
8
|
handler: CloudFormationCustomResourceHandler<T>;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
export interface Options {
|
|
12
|
+
routes: Route[];
|
|
13
|
+
notFoundResponse?: (input: { requestType: string }) => never;
|
|
14
|
+
}
|
|
15
|
+
|
|
11
16
|
declare function cloudformationRouterHandler(
|
|
12
|
-
|
|
17
|
+
options: Options | Route[],
|
|
13
18
|
): middy.MiddyfiedHandler;
|
|
14
19
|
|
|
15
20
|
export default cloudformationRouterHandler;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/cloudformation-router",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "CloudFormation Custom Response event router for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -29,8 +29,9 @@
|
|
|
29
29
|
"index.d.ts"
|
|
30
30
|
],
|
|
31
31
|
"scripts": {
|
|
32
|
-
"test": "npm run test:unit",
|
|
32
|
+
"test": "npm run test:unit && npm run test:fuzz",
|
|
33
33
|
"test:unit": "node --test",
|
|
34
|
+
"test:fuzz": "node --test index.fuzz.js",
|
|
34
35
|
"test:perf": "node --test index.perf.js"
|
|
35
36
|
},
|
|
36
37
|
"license": "MIT",
|
|
@@ -64,8 +65,8 @@
|
|
|
64
65
|
"url": "https://github.com/sponsors/willfarrell"
|
|
65
66
|
},
|
|
66
67
|
"devDependencies": {
|
|
67
|
-
"@middy/core": "7.
|
|
68
|
-
"@types/aws-lambda": "^8.
|
|
68
|
+
"@middy/core": "7.1.1",
|
|
69
|
+
"@types/aws-lambda": "^8.0.0"
|
|
69
70
|
},
|
|
70
71
|
"gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431"
|
|
71
72
|
}
|