@middy/http-event-normalizer 7.2.3 → 7.3.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.d.ts +4 -0
- package/index.js +7 -0
- package/package.json +2 -5
package/index.d.ts
CHANGED
|
@@ -43,4 +43,8 @@ declare function httpEventNormalizer<
|
|
|
43
43
|
EventType extends RequestEvent = RequestEvent,
|
|
44
44
|
>(): middy.MiddlewareObj<Event<EventType>, unknown, Error>;
|
|
45
45
|
|
|
46
|
+
export declare function httpEventNormalizerValidateOptions(
|
|
47
|
+
options?: Record<string, unknown>,
|
|
48
|
+
): void;
|
|
49
|
+
|
|
46
50
|
export default httpEventNormalizer;
|
package/index.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
// Copyright 2017 - 2026 will Farrell, Luciano Mammino, and Middy contributors.
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
|
+
import { validateOptions } from "@middy/util";
|
|
4
|
+
|
|
5
|
+
const optionSchema = {};
|
|
6
|
+
|
|
7
|
+
export const httpEventNormalizerValidateOptions = (options) =>
|
|
8
|
+
validateOptions("@middy/http-event-normalizer", optionSchema, options);
|
|
9
|
+
|
|
3
10
|
const httpEventNormalizerMiddleware = () => {
|
|
4
11
|
const httpEventNormalizerMiddlewareBefore = (request) => {
|
|
5
12
|
const { event } = request;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/http-event-normalizer",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "HTTP event normalizer middleware for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -17,9 +17,6 @@
|
|
|
17
17
|
"import": {
|
|
18
18
|
"types": "./index.d.ts",
|
|
19
19
|
"default": "./index.js"
|
|
20
|
-
},
|
|
21
|
-
"require": {
|
|
22
|
-
"default": "./index.js"
|
|
23
20
|
}
|
|
24
21
|
}
|
|
25
22
|
},
|
|
@@ -65,7 +62,7 @@
|
|
|
65
62
|
"url": "https://github.com/sponsors/willfarrell"
|
|
66
63
|
},
|
|
67
64
|
"devDependencies": {
|
|
68
|
-
"@middy/core": "7.
|
|
65
|
+
"@middy/core": "7.3.0",
|
|
69
66
|
"@types/aws-lambda": "^8.0.0",
|
|
70
67
|
"@types/node": "^22.0.0"
|
|
71
68
|
}
|