Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@readme/better-ajv-errors

Package Overview
Dependencies
Maintainers
10
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@readme/better-ajv-errors - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

8

lib/helpers.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc