ajv-error-tree
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -43,3 +43,3 @@ const { strict: Assert } = require("assert"); | ||
if (depth === 0) { | ||
return Array.isArray(any) ? "[array]" : "[object]"; | ||
return Array.isArray(any) ? "... (array)" : "... (object)"; | ||
} | ||
@@ -73,4 +73,4 @@ if (Array.isArray(any)) { | ||
return { | ||
message: message, | ||
children: error.children.map(visit), | ||
".": message, | ||
"+": error.children.map(visit), | ||
}; | ||
@@ -86,3 +86,3 @@ }; | ||
schema: { | ||
path: error.schemaPath, | ||
path: error.schemaPath.substring(1, Infinity), | ||
data: strip(error.parentSchema, options["schema-depth"]), | ||
@@ -89,0 +89,0 @@ }, |
{ | ||
"name": "ajv-error-tree", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"scripts": { | ||
@@ -23,4 +23,5 @@ "test": "node test/test.js", | ||
"prettier": "^2.3.1", | ||
"treeify": "^1.1.0", | ||
"yaml": "^1.10.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
4404
5