You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

eslint-plugin-json-schema-validator

Package Overview
Dependencies
Maintainers
2
Versions
322
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

to
5.3.2

4

lib/rules/no-invalid.js

@@ -10,3 +10,3 @@ "use strict";

const index_1 = require("../utils/index");
const minimatch_1 = __importDefault(require("minimatch"));
const minimatch_1 = require("minimatch");
const path_1 = __importDefault(require("path"));

@@ -22,3 +22,3 @@ const index_2 = require("../utils/ast/index");

return (fileMatch.includes(path_1.default.basename(filename)) ||
fileMatch.some((fm) => (0, minimatch_1.default)(filename, fm, { dot: true })));
fileMatch.some((fm) => (0, minimatch_1.minimatch)(filename, fm, { dot: true })));
}

@@ -25,0 +25,0 @@ function schemaPathToValidator(schemaPath, context) {

import type { RuleContext } from "../types";
import type { SchemaObject } from "./types";
export declare function loadSchema(schemaPath: string, context: RuleContext): null | SchemaObject;
export declare function loadJson<T = any>(jsonPath: string, context: RuleContext): null | T;
export declare function loadJson<T>(jsonPath: string, context: RuleContext): null | T;

@@ -18,3 +18,4 @@ "use strict";

function loadSchema(schemaPath, context) {
return loadJsonInternal(schemaPath, context, (schema) => {
return loadJsonInternal(schemaPath, context, (schema_) => {
const schema = schema_;
(0, json_schema_migrate_1.draft7)(schema);

@@ -21,0 +22,0 @@ return schema;

{
"name": "eslint-plugin-json-schema-validator",
"version": "5.3.1",
"version": "5.3.2",
"description": "ESLint plugin that validates data using JSON Schema Validator.",

@@ -60,4 +60,4 @@ "repository": "git+https://github.com/ota-meshi/eslint-plugin-json-schema-validator.git",

"jsonc-eslint-parser": "^2.0.0",
"minimatch": "^8.0.0",
"synckit": "^0.9.0",
"minimatch": "^9.0.0 || ^10.0.0",
"synckit": "^0.11.1",
"toml-eslint-parser": "^0.10.0",

@@ -80,3 +80,2 @@ "tunnel-agent": "^0.6.0",

"@types/eslint-scope": "^3.7.0",
"@types/eslint-visitor-keys": "^3.0.0",
"@types/estree": "^1.0.0",

@@ -92,3 +91,3 @@ "@types/mocha": "^10.0.0",

"eslint": "^9.5.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-prettier": "^10.0.0",
"eslint-plugin-eslint-plugin": "^6.0.0",

@@ -117,3 +116,3 @@ "eslint-plugin-jsdoc": "^50.0.0",

"stylelint-config-recommended-vue": "^1.0.0",
"stylelint-config-standard": "^36.0.0",
"stylelint-config-standard": "^37.0.0",
"stylelint-config-standard-vue": "^1.0.0",

@@ -120,0 +119,0 @@ "stylelint-stylus": "^1.0.0",