@percy/config
Advanced tools
Comparing version 1.0.0-beta.52 to 1.0.0-beta.53
@@ -23,2 +23,3 @@ "use strict"; | ||
allErrors: true, | ||
strict: false, | ||
schemas: { | ||
@@ -82,2 +83,4 @@ config: getDefaultSchema() | ||
for (let error of ajv.errors) { | ||
var _parentSchema$errors; | ||
let { | ||
@@ -88,2 +91,3 @@ instancePath, | ||
message, | ||
parentSchema, | ||
data | ||
@@ -93,3 +97,6 @@ } = error; | ||
if (keyword === 'required') { | ||
if ((_parentSchema$errors = parentSchema.errors) !== null && _parentSchema$errors !== void 0 && _parentSchema$errors[keyword]) { | ||
let custom = parentSchema.errors[keyword]; | ||
message = typeof custom === 'function' ? custom(error) : custom; | ||
} else if (keyword === 'required') { | ||
message = 'missing required property'; | ||
@@ -96,0 +103,0 @@ path.push(params.missingProperty); |
{ | ||
"name": "@percy/config", | ||
"version": "1.0.0-beta.52", | ||
"version": "1.0.0-beta.53", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@percy/logger": "^1.0.0-beta.52", | ||
"@percy/logger": "^1.0.0-beta.53", | ||
"ajv": "^8.0.5", | ||
@@ -34,3 +34,3 @@ "cosmiconfig": "^7.0.0", | ||
}, | ||
"gitHead": "ebc543f148bede5ce057458ffb830dd60823837e" | ||
"gitHead": "42c93d11a663b5e45ab75944e20f0fb63a0dda09" | ||
} |
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
20618
415
Updated@percy/logger@^1.0.0-beta.53