@middy/ws-router 7.6.3 → 7.6.5
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 +5 -3
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -66,9 +66,11 @@ const wsRouteHandler = (opts = {}) => {
|
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
// Static
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
// Static. `routesStatic` is `Object.create(null)`; handlers are
|
|
70
|
+
// validated as Functions at setup, so `!== undefined` is sufficient
|
|
71
|
+
// (no prototype walk, no inherited keys to confuse the check).
|
|
72
|
+
const handler = routesStatic[routeKey];
|
|
73
|
+
if (handler !== undefined) {
|
|
72
74
|
return handler(event, context, abort);
|
|
73
75
|
}
|
|
74
76
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/ws-router",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.5",
|
|
4
4
|
"description": "WebSocket event router for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"url": "https://github.com/sponsors/willfarrell"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@middy/util": "7.6.
|
|
65
|
+
"@middy/util": "7.6.5"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@middy/core": "7.6.
|
|
68
|
+
"@middy/core": "7.6.5",
|
|
69
69
|
"@types/aws-lambda": "^8.0.0",
|
|
70
70
|
"@types/node": "^22.0.0"
|
|
71
71
|
}
|