@middy/http-router 4.1.0 → 4.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 (3) hide show
  1. package/index.cjs +4 -4
  2. package/index.js +4 -4
  3. package/package.json +4 -4
package/index.cjs CHANGED
@@ -67,8 +67,8 @@ const Method = {
67
67
  const methods = Object.values(Method).filter((method)=>method !== 'ANY');
68
68
  const attachStaticRoute = (method, path, handler, routesType)=>{
69
69
  if (method === 'ANY') {
70
- for (const method1 of methods){
71
- attachStaticRoute(method1, path, handler, routesType);
70
+ for (const method of methods){
71
+ attachStaticRoute(method, path, handler, routesType);
72
72
  }
73
73
  return;
74
74
  }
@@ -80,8 +80,8 @@ const attachStaticRoute = (method, path, handler, routesType)=>{
80
80
  };
81
81
  const attachDynamicRoute = (method, path, handler, routesType)=>{
82
82
  if (method === 'ANY') {
83
- for (const method1 of methods){
84
- attachDynamicRoute(method1, path, handler, routesType);
83
+ for (const method of methods){
84
+ attachDynamicRoute(method, path, handler, routesType);
85
85
  }
86
86
  return;
87
87
  }
package/index.js CHANGED
@@ -53,8 +53,8 @@ export const Method = {
53
53
  const methods = Object.values(Method).filter((method)=>method !== 'ANY');
54
54
  const attachStaticRoute = (method, path, handler, routesType)=>{
55
55
  if (method === 'ANY') {
56
- for (const method1 of methods){
57
- attachStaticRoute(method1, path, handler, routesType);
56
+ for (const method of methods){
57
+ attachStaticRoute(method, path, handler, routesType);
58
58
  }
59
59
  return;
60
60
  }
@@ -66,8 +66,8 @@ const attachStaticRoute = (method, path, handler, routesType)=>{
66
66
  };
67
67
  const attachDynamicRoute = (method, path, handler, routesType)=>{
68
68
  if (method === 'ANY') {
69
- for (const method1 of methods){
70
- attachDynamicRoute(method1, path, handler, routesType);
69
+ for (const method of methods){
70
+ attachDynamicRoute(method, path, handler, routesType);
71
71
  }
72
72
  return;
73
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/http-router",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "HTTP event router for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -62,11 +62,11 @@
62
62
  },
63
63
  "homepage": "https://middy.js.org",
64
64
  "dependencies": {
65
- "@middy/util": "4.1.0"
65
+ "@middy/util": "4.2.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@middy/core": "4.1.0",
68
+ "@middy/core": "4.2.0",
69
69
  "@types/aws-lambda": "^8.10.97"
70
70
  },
71
- "gitHead": "c5abbac9280c3a2f30758188233a7b27367901d1"
71
+ "gitHead": "438103b15c184995a0a38413f6ed0b8696d13670"
72
72
  }