New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ajv-error-messages

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajv-error-messages - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

1

index.js
function normaliseErrorMessages(errors) {
console.log(errors);
var fields = errors.reduce(

@@ -4,0 +3,0 @@ function (acc, e) {

2

package.json
{
"name": "ajv-error-messages",
"version": "1.0.1",
"version": "1.0.2",
"description": "Normalise AJV error messages",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -36,4 +36,4 @@ # ajv-error-messages

if (!valid) {
var ajv_errors = validator.errors
normalisedErrors = normalise(ajv_errors);
var ajvErrors = validator.errors
normalisedErrors = normalise(ajvErrors);
}

@@ -52,5 +52,5 @@

fields: {
'foo': 'Should be string'
'foo': ['Should be string']
}
}
```
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