@middy/http-error-handler 3.0.4 → 3.1.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 (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +13 -7
package/README.md CHANGED
@@ -41,7 +41,7 @@ for them (using the message and the status code provided by the error object). A
41
41
  We recommend generating these HTTP errors with the npm module [`http-errors`](https://npm.im/http-errors). When manually catching and setting errors with `statusCode >= 500` setting `{expose: true}`
42
42
  is needed for them to be handled.
43
43
 
44
- This middleware should be set as the last error handler unless you also want to register the `http-reponse-serializer`. If so, this middleware should come second-last and the `http-response-serializer` should come last.
44
+ This middleware should be set as the last error handler unless you also want to register the `http-response-serializer`. If so, this middleware should come second-last and the `http-response-serializer` should come last.
45
45
 
46
46
 
47
47
  ## Install
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/http-error-handler",
3
- "version": "3.0.4",
3
+ "version": "3.1.0",
4
4
  "description": "Http error handler middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -10,11 +10,17 @@
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
13
+ "main": "./index.cjs",
13
14
  "exports": {
14
15
  ".": {
15
- "import": "./index.js",
16
- "require": "./index.cjs",
17
- "types": "./index.d.ts"
16
+ "import": {
17
+ "types": "./index.d.ts",
18
+ "default": "./index.js"
19
+ },
20
+ "require": {
21
+ "types": "./index.d.ts",
22
+ "default": "./index.cjs"
23
+ }
18
24
  }
19
25
  },
20
26
  "types": "index.d.ts",
@@ -56,12 +62,12 @@
56
62
  },
57
63
  "homepage": "https://middy.js.org",
58
64
  "dependencies": {
59
- "@middy/util": "3.0.4"
65
+ "@middy/util": "3.1.0"
60
66
  },
61
67
  "devDependencies": {
62
- "@middy/core": "3.0.4",
68
+ "@middy/core": "3.1.0",
63
69
  "@types/http-errors": "^1.8.0",
64
70
  "@types/node": "^17.0.0"
65
71
  },
66
- "gitHead": "3e9bc83e791f943c71cd7003fc27f0a3692d83a1"
72
+ "gitHead": "d5284fd11c175516c189b6061fee7312106d9709"
67
73
  }