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

@hyperjump/json-schema

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperjump/json-schema - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

2

lib/keywords/pattern.js
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

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