@middy/validator 2.5.0 → 2.5.4

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 -0
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -62,6 +62,7 @@ NOTES:
62
62
  - At least one of `inputSchema` or `outputSchema` is required.
63
63
  - **Important** Compiling schemas on the fly will cause a 50-100ms performance hit during cold start for simple JSON Schemas. Precompiling is highly recommended.
64
64
  - Default ajv plugins used: `ajv-i18n`, `ajv-formats`, `ajv-formats-draft2019`
65
+ - If you'd like to have the error details as part of the response, it will need to be handled separately. You can access them from `request.error.details`, the original response can be found at `request.error.response`.
65
66
 
66
67
  ## Sample usage
67
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/validator",
3
- "version": "2.5.0",
3
+ "version": "2.5.4",
4
4
  "description": "Validator middleware for the middy framework",
5
5
  "type": "commonjs",
6
6
  "engines": {
@@ -45,17 +45,17 @@
45
45
  },
46
46
  "homepage": "https://github.com/middyjs/middy#readme",
47
47
  "dependencies": {
48
- "@middy/util": "^2.5.0",
49
- "ajv": "8.6.2",
50
- "ajv-formats": "2.1.0",
51
- "ajv-formats-draft2019": "1.6.0",
52
- "ajv-i18n": "4.0.1"
48
+ "@middy/util": "^2.5.4",
49
+ "ajv": "8.6.3",
50
+ "ajv-formats": "2.1.1",
51
+ "ajv-formats-draft2019": "1.6.1",
52
+ "ajv-i18n": "4.1.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@middy/core": "^2.5.0",
55
+ "@middy/core": "^2.5.4",
56
56
  "@types/http-errors": "^1.8.1",
57
57
  "ajv-bsontype": "^1.0.7",
58
58
  "http-errors": "^1.8.0"
59
59
  },
60
- "gitHead": "76d2bc02b48a4bbd054904538f5c4798ba3c4f7f"
60
+ "gitHead": "a4134a579c757a9fdfed3006877ba2c0ec8a2cfa"
61
61
  }