@hyperjump/json-schema
Advanced tools
Comparing version 0.8.0 to 0.8.1
const { Schema, Instance } = require("@hyperjump/json-schema-core"); | ||
const compile = (schema) => new RegExp(Schema.value(schema)); | ||
const compile = (schema) => new RegExp(Schema.value(schema), "u"); | ||
@@ -6,0 +6,0 @@ const interpret = (pattern, instance) => { |
@@ -8,3 +8,3 @@ const { Core, Schema, Instance } = require("@hyperjump/json-schema-core"); | ||
Schema.entries, | ||
Pact.map(async ([pattern, propertySchema]) => [new RegExp(pattern), await Core.compileSchema(propertySchema, ast)]), | ||
Pact.map(async ([pattern, propertySchema]) => [new RegExp(pattern, "u"), await Core.compileSchema(propertySchema, ast)]), | ||
Pact.all | ||
@@ -11,0 +11,0 @@ ], schema); |
{ | ||
"name": "@hyperjump/json-schema", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "A JSON Schema Validator", | ||
@@ -38,9 +38,9 @@ "main": "lib/index.js", | ||
"mocha": "^5.2.0", | ||
"rollup": "^2.7.2", | ||
"rollup": "^2.7.6", | ||
"rollup-plugin-terser": "^5.3.0" | ||
}, | ||
"dependencies": { | ||
"@hyperjump/json-schema-core": "^0.10.0", | ||
"@hyperjump/json-schema-core": "^0.10.2", | ||
"fastest-stable-stringify": "^2.0.2" | ||
} | ||
} |
@@ -91,7 +91,7 @@ # Hyperjump - JSON Schema Validator | ||
Validate an instance against a schema. The function is curried to allow | ||
compiling the schema once and applying it to multiple instances. See | ||
* **setMetaOutputFormat**: (outputFormat: OutputFormat) => undefined | ||
compiling the schema once and applying it to multiple instances. | ||
* **setMetaOutputFormat**: (outputFormat: OutputFormat = DETAILED) => undefined | ||
Validate an instance against a schema. The function is curried to allow | ||
compiling the schema once and applying it to multiple instances. | ||
Set the output format for meta-validation. Meta-validation output is only | ||
returned if meta-validation results in an error. | ||
* **setShouldMetaValidate**: (isEnabled: boolean) => undefined | ||
@@ -98,0 +98,0 @@ |
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
4038970
24839