@aws-lambda-powertools/validation 2.28.0 → 2.29.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.
package/README.md CHANGED
@@ -255,6 +255,7 @@ The following companies, among others, use Powertools:
255
255
  - [Banxware](https://www.banxware.com)
256
256
  - [Caylent](https://caylent.com/)
257
257
  - [Certible](https://www.certible.com/)
258
+ - [Codeac](https://www.codeac.io/)
258
259
  - [Elva](https://elva-group.com)
259
260
  - [Flyweight](https://flyweight.io/)
260
261
  - [FraudFalcon](https://fraudfalcon.app)
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,OAMvC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,OAOvC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
package/lib/cjs/utils.js CHANGED
@@ -10,6 +10,7 @@ exports.getErrorCause = void 0;
10
10
  */
11
11
  const getErrorCause = (error) => {
12
12
  let cause = error;
13
+ /* v8 ignore else -- @preserve */
13
14
  if (error instanceof Error && error.name === 'SchemaValidationError') {
14
15
  cause = error.cause;
15
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,OAMvC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,OAOvC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
package/lib/esm/utils.js CHANGED
@@ -7,6 +7,7 @@
7
7
  */
8
8
  const getErrorCause = (error) => {
9
9
  let cause = error;
10
+ /* v8 ignore else -- @preserve */
10
11
  if (error instanceof Error && error.name === 'SchemaValidationError') {
11
12
  cause = error.cause;
12
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-lambda-powertools/validation",
3
- "version": "2.28.0",
3
+ "version": "2.29.0",
4
4
  "description": "An utility to validate events and responses using JSON Schemas",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
@@ -27,8 +27,8 @@
27
27
  "serverless"
28
28
  ],
29
29
  "dependencies": {
30
- "@aws-lambda-powertools/commons": "2.28.0",
31
- "@aws-lambda-powertools/jmespath": "2.28.0",
30
+ "@aws-lambda-powertools/commons": "2.29.0",
31
+ "@aws-lambda-powertools/jmespath": "2.29.0",
32
32
  "ajv": "^8.17.1"
33
33
  },
34
34
  "main": "./lib/cjs/index.js",