Socket
Socket
Sign inDemoInstall

ajv

Package Overview
Dependencies
68
Maintainers
1
Versions
354
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.8 to 0.0.9

4

lib/compile/rules/format.dot.js

@@ -7,3 +7,3 @@ {{? it.opts.format !== false }}

return {
var result = {
valid: valid,

@@ -19,3 +19,3 @@ errors: valid ? [] : [{

{{??}}
return { valid: true, errors: [] };
var result = { valid: true, errors: [] };
{{?}}
var propertiesNum = Object.keys(data).length;
var valid = propertiesNum <= {{= it.schema.maxProperties }};
return {
var result = {
valid: valid,

@@ -6,0 +6,0 @@ errors: valid ? [] : [{

var valid = data.length >= {{= it.schema.minItems }};
return {
var result = {
valid: valid,

@@ -5,0 +5,0 @@ errors: valid ? [] : [{

var propertiesNum = Object.keys(data).length;
var valid = propertiesNum >= {{= it.schema.minProperties }};
return {
var result = {
valid: valid,

@@ -6,0 +6,0 @@ errors: valid ? [] : [{

{
"name": "ajv",
"version": "0.0.8",
"version": "0.0.9",
"description": "Another JSON schema Validator",

@@ -5,0 +5,0 @@ "main": "lib/ajv.js",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc