@middy/http-router 4.3.0 → 4.4.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 +3 -1
  2. package/index.d.ts +1 -10
  3. package/package.json +4 -4
package/index.cjs CHANGED
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(module, "exports", {
6
6
  enumerable: true,
7
- get: ()=>_default
7
+ get: function() {
8
+ return _default;
9
+ }
8
10
  });
9
11
  const _util = require("@middy/util");
10
12
  const httpRouteHandler = (routes)=>{
package/index.d.ts CHANGED
@@ -8,16 +8,7 @@ import {
8
8
  Handler as LambdaHandler
9
9
  } from 'aws-lambda'
10
10
 
11
- export enum Method {
12
- Get = 'GET',
13
- Post = 'POST',
14
- Put = 'PUT',
15
- Patch = 'PATCH',
16
- Delete = 'DELETE',
17
- Options = 'OPTIONS',
18
- Head = 'HEAD',
19
- Any = 'ANY'
20
- }
11
+ export type Method = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'ANY'
21
12
 
22
13
  type TResult = ALBResult | APIGatewayProxyResult
23
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/http-router",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "HTTP event router for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -66,11 +66,11 @@
66
66
  "url": "https://github.com/sponsors/willfarrell"
67
67
  },
68
68
  "dependencies": {
69
- "@middy/util": "4.3.0"
69
+ "@middy/util": "4.4.0"
70
70
  },
71
71
  "devDependencies": {
72
- "@middy/core": "4.3.0",
72
+ "@middy/core": "4.4.0",
73
73
  "@types/aws-lambda": "^8.10.97"
74
74
  },
75
- "gitHead": "6ed88ad93746e077e8870d34d970414537abbef7"
75
+ "gitHead": "5b574488798c48bc74269af7deb3ff95139bcdcc"
76
76
  }