@hyperjump/json-schema
Advanced tools
Comparing version 0.11.0 to 0.11.1
@@ -15,6 +15,4 @@ const { Schema, Instance } = require("@hyperjump/json-schema-core"); | ||
const numberEqual = (a, b) => { | ||
return Math.abs(a - b) < Number.EPSILON; | ||
}; | ||
const numberEqual = (a, b) => Math.abs(a - b) < 1.19209290e-7; | ||
module.exports = { compile, interpret }; |
@@ -11,3 +11,3 @@ const { Core, Schema, Instance } = require("@hyperjump/json-schema-core"); | ||
return acc; | ||
}, {}) | ||
}, Object.create(null)) | ||
], schema); | ||
@@ -14,0 +14,0 @@ |
@@ -7,5 +7,5 @@ const { Schema, Instance } = require("@hyperjump/json-schema-core"); | ||
const interpret = (required, instance) => { | ||
return !Instance.typeOf(instance, "object") || required.every((propertyName) => propertyName in Instance.value(instance)); | ||
return !Instance.typeOf(instance, "object") || required.every((propertyName) => Instance.value(instance).hasOwnProperty(propertyName)); | ||
}; | ||
module.exports = { compile, interpret }; |
{ | ||
"name": "@hyperjump/json-schema", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"description": "A JSON Schema Validator", | ||
@@ -34,13 +34,13 @@ "main": "lib/index.js", | ||
"eslint": "^4.19.1", | ||
"eslint-import-resolver-node": "^0.3.2", | ||
"eslint-plugin-import": "^2.21.2", | ||
"eslint-import-resolver-node": "^0.3.4", | ||
"eslint-plugin-import": "^2.22.0", | ||
"json-schema-test-suite": "github:json-schema-org/JSON-Schema-Test-Suite", | ||
"mocha": "^5.2.0", | ||
"rollup": "^2.16.0", | ||
"mocha": "^8.0.1", | ||
"rollup": "^2.21.0", | ||
"rollup-plugin-terser": "^5.3.0" | ||
}, | ||
"dependencies": { | ||
"@hyperjump/json-schema-core": "^0.14.0", | ||
"@hyperjump/json-schema-core": "^0.14.1", | ||
"fastest-stable-stringify": "^2.0.2" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3818018
22519