Comparing version 13.0.0 to 13.0.1
@@ -116,3 +116,9 @@ 'use strict'; | ||
if (!hasKey && !skipKey) { | ||
format = (Hoek.reach(localized, 'key') || Hoek.reach(Language.errors, 'key')) + format; | ||
const localizedKey = Hoek.reach(localized, 'key'); | ||
if (typeof localizedKey === 'string') { | ||
format = localizedKey + format; | ||
} | ||
else { | ||
format = Hoek.reach(Language.errors, 'key') + format; | ||
} | ||
} | ||
@@ -119,0 +125,0 @@ |
{ | ||
"name": "joi", | ||
"description": "Object schema validation", | ||
"version": "13.0.0", | ||
"version": "13.0.1", | ||
"homepage": "https://github.com/hapijs/joi", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/hapijs/joi", |
@@ -29,3 +29,3 @@ ![joi Logo](https://raw.github.com/hapijs/joi/master/images/joi.png) | ||
# API | ||
See the detailed [API Reference](https://github.com/hapijs/joi/blob/v13.0.0/API.md). | ||
See the detailed [API Reference](https://github.com/hapijs/joi/blob/v13.0.1/API.md). | ||
@@ -32,0 +32,0 @@ # Example |
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
173314
4084