@middy/http-error-handler 6.3.1 → 6.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 (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +7 -4
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsonSafeParse, normalizeHttpResponse } from "@middy/util";
2
2
 
3
3
  const defaults = {
4
- logger: console.error,
4
+ logger: console.error, // TODO v7 change to pass in request
5
5
  fallbackMessage: undefined,
6
6
  };
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/http-error-handler",
3
- "version": "6.3.1",
3
+ "version": "6.4.0",
4
4
  "description": "Http error handler middleware 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",
@@ -62,10 +65,10 @@
62
65
  "url": "https://github.com/sponsors/willfarrell"
63
66
  },
64
67
  "dependencies": {
65
- "@middy/util": "6.3.1"
68
+ "@middy/util": "6.4.0"
66
69
  },
67
70
  "devDependencies": {
68
- "@middy/core": "6.3.1",
71
+ "@middy/core": "6.4.0",
69
72
  "@types/http-errors": "^2.0.0",
70
73
  "@types/node": "^20.0.0"
71
74
  },