@middy/ws-router 6.3.2 → 6.4.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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +7 -4
package/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { createError } from "@middy/util";
2
+
2
3
  const defaults = {
3
4
  routes: [],
4
5
  notFoundResponse: ({ routeKey }) => {
@@ -33,7 +34,7 @@ const wsRouteHandler = (opts = {}) => {
33
34
  }
34
35
 
35
36
  // Static
36
- if (Object.hasOwnProperty.call(routesStatic, routeKey)) {
37
+ if (Object.hasOwn(routesStatic, routeKey)) {
37
38
  const handler = routesStatic[routeKey];
38
39
  return handler(event, context, abort);
39
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/ws-router",
3
- "version": "6.3.2",
3
+ "version": "6.4.1",
4
4
  "description": "WebSocket event router for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -23,7 +23,10 @@
23
23
  }
24
24
  },
25
25
  "types": "index.d.ts",
26
- "files": ["index.js", "index.d.ts"],
26
+ "files": [
27
+ "index.js",
28
+ "index.d.ts"
29
+ ],
27
30
  "scripts": {
28
31
  "test": "npm run test:unit && npm run test:fuzz",
29
32
  "test:unit": "node --test",
@@ -61,10 +64,10 @@
61
64
  "url": "https://github.com/sponsors/willfarrell"
62
65
  },
63
66
  "dependencies": {
64
- "@middy/util": "6.3.2"
67
+ "@middy/util": "6.4.1"
65
68
  },
66
69
  "devDependencies": {
67
- "@middy/core": "6.3.2",
70
+ "@middy/core": "6.4.1",
68
71
  "@types/aws-lambda": "^8.10.100"
69
72
  },
70
73
  "gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431"