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.5.11 to 0.5.12

spec/tests/deep/items.json

8

lib/compile/util.js

@@ -10,3 +10,2 @@ 'use strict';

getProperty: getProperty,
escapeQuotes: escapeQuotes,
escapeRegExp: escapeRegExp,

@@ -89,11 +88,6 @@ ucs2length: ucs2length,

? '.' + key
: "['" + key + "']";
: "['" + key.replace(/'/g, "\\'") + "']";
}
function escapeQuotes(str) {
return str.replace(/'/g, "\\'");
}
var ESCAPE_REGEXP = /[\/]/g

@@ -100,0 +94,0 @@ function escapeRegExp(str) {

@@ -80,3 +80,3 @@ 'use strict';

$it.schema = $sch;
$it.schemaPath = $schemaPath + "['" + it.util.escapeQuotes($property) + "']";
$it.schemaPath = $schemaPath + it.util.getProperty($property);
out += ' ' + (it.validate($it)) + ' } ';

@@ -83,0 +83,0 @@ if ($breakOnError) {

@@ -97,5 +97,5 @@ 'use strict';

$it.schema = $sch;
$it.schemaPath = $schemaPath + "['" + it.util.escapeQuotes($propertyKey) + "']";
var $prop = it.util.getProperty($propertyKey),
$passData = $data + $prop;
$it.schemaPath = $schemaPath + $prop;
$it.errorPath = (it.errorPath + ' + "' + $prop + '"').replace('" + "', '');

@@ -102,0 +102,0 @@ $it.dataPath = it.dataPath + $prop;

{
"name": "ajv",
"version": "0.5.11",
"version": "0.5.12",
"description": "Another JSON Schema Validator",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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