@middy/http-cors 5.2.2 → 5.2.3
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 +0 -5
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -131,11 +131,6 @@ const modifyHeaders = (headers, options, request) => {
|
|
|
131
131
|
const httpMethod = getVersionHttpMethod[request.event.version ?? '1.0']?.(
|
|
132
132
|
request.event
|
|
133
133
|
)
|
|
134
|
-
if (!httpMethod) {
|
|
135
|
-
throw new Error('Unknown http event format', {
|
|
136
|
-
cause: { package: '@middy/http-cors' }
|
|
137
|
-
})
|
|
138
|
-
}
|
|
139
134
|
if (
|
|
140
135
|
httpMethod === 'OPTIONS' &&
|
|
141
136
|
options.cacheControl &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/http-cors",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.3",
|
|
4
4
|
"description": "CORS (Cross-Origin Resource Sharing) middleware for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"type": "github",
|
|
59
59
|
"url": "https://github.com/sponsors/willfarrell"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "5fa384cca11e64e8a8c3b4113b5896cf8b5b229e",
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@middy/util": "5.2.
|
|
63
|
+
"@middy/util": "5.2.3"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@middy/core": "5.2.
|
|
66
|
+
"@middy/core": "5.2.3"
|
|
67
67
|
}
|
|
68
68
|
}
|