@readme/better-ajv-errors
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -9,3 +9,3 @@ "use strict"; | ||
exports.createErrorInstances = createErrorInstances; | ||
exports["default"] = void 0; | ||
exports["default"] = prettify; | ||
exports.filterRedundantErrors = filterRedundantErrors; | ||
@@ -147,8 +147,6 @@ exports.makeTree = makeTree; | ||
var _default = function _default(ajvErrors, options) { | ||
function prettify(ajvErrors, options) { | ||
var tree = makeTree(ajvErrors || []); | ||
filterRedundantErrors(tree); | ||
return createErrorInstances(tree, options); | ||
}; | ||
exports["default"] = _default; | ||
} |
@@ -8,3 +8,3 @@ "use strict"; | ||
}); | ||
exports["default"] = void 0; | ||
exports["default"] = betterAjvErrors; | ||
@@ -15,3 +15,3 @@ var _momoa = require("@humanwhocodes/momoa"); | ||
var _default = function _default(schema, data, errors) { | ||
function betterAjvErrors(schema, data, errors) { | ||
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; | ||
@@ -50,5 +50,4 @@ var _options$colorize = options.colorize, | ||
return customErrors.map(customErrorToStructure); | ||
}; | ||
} | ||
exports["default"] = _default; | ||
module.exports = exports.default; |
@@ -21,2 +21,3 @@ "use strict"; | ||
var BaseValidationError = /*#__PURE__*/function () { | ||
// eslint-disable-next-line default-param-last | ||
function BaseValidationError() { | ||
@@ -23,0 +24,0 @@ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { |
{ | ||
"name": "@readme/better-ajv-errors", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "JSON Schema validation for Human", | ||
@@ -56,7 +56,7 @@ "license": "Apache-2.0", | ||
"@babel/preset-env": "^7.16.0", | ||
"@readme/eslint-config": "^7.2.2", | ||
"@readme/eslint-config": "^8.2.0", | ||
"ajv": "^8.6.3", | ||
"babel-jest": "^27.3.1", | ||
"babel-plugin-add-module-exports": "^1.0.4", | ||
"eslint": "^7.32.0", | ||
"eslint": "^8.8.0", | ||
"husky": "^7.0.4", | ||
@@ -63,0 +63,0 @@ "jest": "^27.3.1", |
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
96247
1871