freeman-check
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -93,3 +93,10 @@ //freeman-check | ||
subject = error.property.replace("instance.", ""); | ||
problem = 'needs to be ' + anora(error.schema.type) + ' `' + error.schema.type + '`' | ||
var type = error.schema.type; | ||
if(typeof type !== "string"){ | ||
type = JSON.stringify(type); | ||
} | ||
problem = 'needs to be ' + anora(type) + ' `' + type + '`' | ||
break; | ||
@@ -96,0 +103,0 @@ } |
{ | ||
"name": "freeman-check", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Easy type and format checking on JavaScript objects", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"anora": "^1.0.1", | ||
"anora": "^1.1.0", | ||
"bluebird": "^3.4.6", | ||
@@ -23,0 +23,0 @@ "jsonschema": "^1.1.0" |
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
4311
99
Updatedanora@^1.1.0