eslint-plugin-json-schema-validator
Advanced tools
Comparing version 4.9.0 to 5.0.0
@@ -300,3 +300,4 @@ "use strict"; | ||
const option = context.options[0] || {}; | ||
if (!option.useSchemastoreCatalog) { | ||
const useSchemastoreCatalog = option.useSchemastoreCatalog !== false; | ||
if (!useSchemastoreCatalog) { | ||
return null; | ||
@@ -303,0 +304,0 @@ } |
@@ -7,3 +7,2 @@ "use strict"; | ||
exports.compile = void 0; | ||
const url_1 = require("url"); | ||
const ajv_1 = __importDefault(require("./ajv")); | ||
@@ -89,3 +88,3 @@ const json_schema_migrate_1 = require("json-schema-migrate"); | ||
error.missingRef.startsWith("vscode://")) { | ||
const uri = new url_1.URL(error.missingRef); | ||
const uri = new URL(error.missingRef); | ||
uri.hash = ""; | ||
@@ -97,3 +96,3 @@ schemaPath = uri.toString(); | ||
const ref = error.missingRef; | ||
const baseUri = new url_1.URL(baseSchema.$id || baseSchemaPath); | ||
const baseUri = new URL(baseSchema.$id || baseSchemaPath); | ||
baseUri.hash = ""; | ||
@@ -104,3 +103,3 @@ const slashIndex = baseUri.pathname.lastIndexOf("/"); | ||
} | ||
const uri = new url_1.URL(`${baseUri.toString()}${ref}`); | ||
const uri = new URL(`${baseUri.toString()}${ref}`); | ||
uri.hash = ""; | ||
@@ -107,0 +106,0 @@ schemaPath = uri.toString(); |
{ | ||
"name": "eslint-plugin-json-schema-validator", | ||
"version": "4.9.0", | ||
"version": "5.0.0", | ||
"description": "ESLint plugin that validates data using JSON Schema Validator.", | ||
@@ -70,6 +70,7 @@ "repository": "git+https://github.com/ota-meshi/eslint-plugin-json-schema-validator.git", | ||
"@ota-meshi/eslint-plugin": "^0.15.0", | ||
"@stylistic/stylelint-config": "^1.0.1", | ||
"@types/debug": "^4.1.5", | ||
"@types/eslint": "^8.56.2", | ||
"@types/eslint-scope": "^3.7.0", | ||
"@types/eslint-visitor-keys": "^1.0.0", | ||
"@types/eslint-visitor-keys": "^3.0.0", | ||
"@types/estree": "^1.0.0", | ||
@@ -76,0 +77,0 @@ "@types/mocha": "^10.0.0", |
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
116463
50