Socket
Socket
Sign inDemoInstall

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.2.2 to 0.2.3

2

lib/compile/rules/properties.dot.js

@@ -98,3 +98,3 @@ {{# def.definitions }}

{{? $breakOnError }} {{=$valid}} = true; {{?}}
if ({{=$data}}.hasOwnProperty('{{= $propertyKey }}')) {
if ({{=$data}}['{{= $propertyKey }}'] !== undefined) {
{{ /* TODO cache data types and paths by keys for patternProperties */ }}

@@ -101,0 +101,0 @@ {{ var $useKey = '"' + $propertyKey + '"'; }}

@@ -7,3 +7,3 @@ {{# def.definitions }}

{{? $i}} && {{?}}
{{=$data}}.hasOwnProperty('{{= it.escapeQuotes($property) }}')
{{=$data}}['{{= it.escapeQuotes($property) }}'] !== undefined
{{~}};

@@ -14,3 +14,3 @@ {{??}}

for (var i{{=$lvl}} = 0; i{{=$lvl}} < schema{{=$lvl}}.length; i{{=$lvl}}++) {
{{=$valid}} = data.hasOwnProperty(schema{{=$lvl}}[i{{=$lvl}}]);
{{=$valid}} = data[schema{{=$lvl}}[i{{=$lvl}}]] !== undefined;
if (!{{=$valid}}) break;

@@ -17,0 +17,0 @@ }

{
"name": "ajv",
"version": "0.2.2",
"version": "0.2.3",
"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