@hyperjump/json-schema
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -17,3 +17,3 @@ import contentTypeParser from "content-type"; | ||
}, | ||
fileMatcher: (path) => path.endsWith(".schema.json") | ||
fileMatcher: (path) => /(\.|\/)schema\.json$/.test(path) | ||
}; | ||
@@ -25,9 +25,7 @@ | ||
if (!browser) { | ||
const cache = {}; | ||
browser = { _cache: {} }; | ||
for (const uri in schemaRegistry) { | ||
cache[uri] = schemaRegistry[uri]; | ||
browser._cache[uri] = schemaRegistry[uri]; | ||
} | ||
browser = { _cache: cache }; | ||
} | ||
@@ -34,0 +32,0 @@ |
{ | ||
"name": "@hyperjump/json-schema", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"description": "A JSON Schema validator with support for custom keywords, vocabularies, and dialects", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
329217
8794