Socket
Socket
Sign inDemoInstall

eslint-plugin-json-schema-validator

Package Overview
Dependencies
Maintainers
2
Versions
316
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-json-schema-validator - npm Package Compare versions

Comparing version 4.9.0 to 5.0.0

3

lib/rules/no-invalid.js

@@ -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",

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