@middy/http-content-negotiation 3.1.0-rc.1 → 3.2.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.
Files changed (2) hide show
  1. package/index.d.ts +14 -1
  2. package/package.json +5 -4
package/index.d.ts CHANGED
@@ -12,6 +12,19 @@ interface Options {
12
12
  failOnMismatch?: boolean
13
13
  }
14
14
 
15
- declare function httpContentNegotiation (options?: Options): middy.MiddlewareObj
15
+ export interface Event {
16
+ preferredCharsets: string[]
17
+ preferredCharset: string
18
+ preferredEncodings: string[]
19
+ preferredEncoding: string
20
+ preferredLanguages: string[]
21
+ preferredLanguage: string
22
+ preferredMediaTypes: string[]
23
+ preferredMediaType: string
24
+ }
25
+
26
+ declare function httpContentNegotiation (
27
+ options?: Options
28
+ ): middy.MiddlewareObj<Event>
16
29
 
17
30
  export default httpContentNegotiation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/http-content-negotiation",
3
- "version": "3.1.0-rc.1",
3
+ "version": "3.2.0",
4
4
  "description": "Http content negotiation middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -11,6 +11,7 @@
11
11
  "access": "public"
12
12
  },
13
13
  "main": "./index.cjs",
14
+ "module": "./index.js",
14
15
  "exports": {
15
16
  ".": {
16
17
  "import": {
@@ -61,11 +62,11 @@
61
62
  },
62
63
  "homepage": "https://middy.js.org",
63
64
  "dependencies": {
64
- "@middy/util": "3.1.0-rc.1",
65
+ "@middy/util": "3.2.0",
65
66
  "negotiator": "0.6.3"
66
67
  },
67
68
  "devDependencies": {
68
- "@middy/core": "3.1.0-rc.1"
69
+ "@middy/core": "3.2.0"
69
70
  },
70
- "gitHead": "044c397e7a2b1de516b4b5c21ece2baffdbfa771"
71
+ "gitHead": "ac46270daa388b52a81472ae8f9b8808a0136940"
71
72
  }