@salsita/koa-joi-middleware
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -1,2 +0,1 @@ | ||
const joi = require("@hapi/joi"); | ||
const { JoiError } = require("@salsita/errors"); | ||
@@ -11,5 +10,3 @@ | ||
try { | ||
await Promise.all( | ||
schemas.map(({ get, schema }) => joi.validate(get(ctx), schema, extOptions)) | ||
); | ||
await Promise.all(schemas.map(({ get, schema }) => schema.validate(get(ctx), extOptions))); | ||
} catch (err) { | ||
@@ -16,0 +13,0 @@ throw new JoiError(err); |
{ | ||
"name": "@salsita/koa-joi-middleware", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -13,5 +13,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@hapi/joi": "^17.0.0", | ||
"@salsita/errors": "^1.0.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
2256
15
- Removed@hapi/joi@^17.0.0
- Removed@hapi/address@4.1.0(transitive)
- Removed@hapi/formula@2.0.0(transitive)
- Removed@hapi/hoek@9.3.0(transitive)
- Removed@hapi/joi@17.1.1(transitive)
- Removed@hapi/pinpoint@2.0.1(transitive)
- Removed@hapi/topo@5.1.0(transitive)