@middy/http-router 3.1.0 → 3.1.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 (3) hide show
  1. package/index.cjs +1 -1
  2. package/index.js +1 -1
  3. package/package.json +5 -4
package/index.cjs CHANGED
@@ -28,7 +28,7 @@ const httpRouteHandler = (routes)=>{
28
28
  throw new Error('[http-router] Unknown http event format');
29
29
  }
30
30
  const handler = routesStatic[method]?.[path];
31
- if (handler !== undefined) {
31
+ if (typeof handler !== 'undefined') {
32
32
  return handler(event, context, abort);
33
33
  }
34
34
  for (const route of routesDynamic[method] ?? []){
package/index.js CHANGED
@@ -23,7 +23,7 @@ const httpRouteHandler = (routes)=>{
23
23
  throw new Error('[http-router] Unknown http event format');
24
24
  }
25
25
  const handler = routesStatic[method]?.[path];
26
- if (handler !== undefined) {
26
+ if (typeof handler !== 'undefined') {
27
27
  return handler(event, context, abort);
28
28
  }
29
29
  for (const route of routesDynamic[method] ?? []){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/http-router",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "HTTP event router 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"
65
+ "@middy/util": "3.1.1"
65
66
  },
66
67
  "devDependencies": {
67
- "@middy/core": "3.1.0",
68
+ "@middy/core": "3.1.1",
68
69
  "@types/aws-lambda": "^8.10.97"
69
70
  },
70
- "gitHead": "d5284fd11c175516c189b6061fee7312106d9709"
71
+ "gitHead": "d53fc91d035b01d3fd296cb6c7d0acd8305e9f76"
71
72
  }