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

ajv

Package Overview
Dependencies
Maintainers
1
Versions
355
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajv - npm Package Compare versions

Comparing version 0.4.6 to 0.4.7

5

lib/compile/rules/maximum.dot.js

@@ -6,7 +6,8 @@ {{# def.definitions }}

var $exclusive = it.schema.exclusiveMaximum === true
, $op = $exclusive ? '<' : '<=';
, $op = $exclusive ? '<' : '<=' /*used in error*/
, $notOp = $exclusive ? '>=' : '>';
}}
if (! ({{=$data}} {{=$op}} {{=$schema}}) ) {
if ({{=$data}} {{=$notOp}} {{=$schema}}) {
{{# def.error:'maximum' }}
} {{? $breakOnError }} else { {{?}}

@@ -6,7 +6,8 @@ {{# def.definitions }}

var $exclusive = it.schema.exclusiveMinimum === true
, $op = $exclusive ? '>' : '>=';
, $op = $exclusive ? '>' : '>=' /*used in error*/
, $notOp = $exclusive ? '<=' : '<';
}}
if (!( {{=$data}} {{=$op}} {{=$schema}} )) {
if ({{=$data}} {{=$notOp}} {{=$schema}}) {
{{# def.error:'minimum' }}
} {{? $breakOnError }} else { {{?}}

2

lib/compile/rules/minItems.dot.js
{{# def.definitions }}
{{# def.setup:'minItems' }}
if ({{=$data}}.length < {{=$schema}}) {
if ({{=$data}}.length < {{=$schema}}) {
{{# def.error:'minItems' }}
} {{? $breakOnError }} else { {{?}}
{
"name": "ajv",
"version": "0.4.6",
"version": "0.4.7",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc