Socket
Socket
Sign inDemoInstall

eslint-plugin-json-schema-validator

Package Overview
Dependencies
Maintainers
2
Versions
317
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.0.0 to 4.0.1

26

lib/utils/ast/yaml.js

@@ -72,14 +72,18 @@ "use strict";

.find((n) => n != null);
let tokenIndex = before ? node.entries.indexOf(before) : -1;
let token = before
? sourceCode.getTokenAfter(before)
: sourceCode.getFirstToken(node);
while (tokenIndex < index) {
tokenIndex++;
token = sourceCode.getTokenAfter(token);
let hyphenTokenElementIndex;
let hyphenToken;
if (!before) {
hyphenTokenElementIndex = 0;
hyphenToken = sourceCode.getFirstToken(node);
}
return [
sourceCode.getTokenBefore(token).range[1],
token.range[0],
];
else {
hyphenTokenElementIndex =
node.entries.indexOf(before) + 1;
hyphenToken = sourceCode.getTokenAfter(before);
}
while (hyphenTokenElementIndex < index) {
hyphenTokenElementIndex++;
hyphenToken = sourceCode.getTokenAfter(hyphenToken);
}
return hyphenToken.range;
},

@@ -86,0 +90,0 @@ value: null,

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

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

"test": "env-cmd -e test yarn mocha \"tests/src/**/*.ts\" --reporter dot --timeout 60000",
"ts": "node -r esbuild-register",
"ts": "env-cmd -e base node -r esbuild-register",
"update": "yarn ts ./tools/update && yarn lint-fix",

@@ -81,3 +81,3 @@ "version": "env-cmd -e version yarn update && git add ."

"eslint-plugin-eslint-plugin": "^5.0.0",
"eslint-plugin-json-schema-validator": "^3.0.0",
"eslint-plugin-json-schema-validator": "^4.0.0",
"eslint-plugin-jsonc": "^2.0.0",

@@ -94,3 +94,3 @@ "eslint-plugin-markdown": "^3.0.0",

"mocha": "^10.0.0",
"monaco-editor": "^0.33.0",
"monaco-editor": "^0.34.0",
"nyc": "^15.1.0",

@@ -104,5 +104,4 @@ "prettier": "^2.2.1",

"stylelint-config-recommended-vue": "^1.0.0",
"stylelint-config-standard": "^26.0.0",
"stylelint-config-standard": "^27.0.0",
"stylelint-stylus": "^0.16.1",
"ts-node": "^10.8.1",
"typescript": "^4.0.0",

@@ -109,0 +108,0 @@ "vue-eslint-editor": "^1.1.0",

@@ -35,3 +35,3 @@ # Introduction

> - ESLint v6.0.0 and above
> - Node.js v14.17.x, v16.x and above
> - Node.js v14.18.x, v16.x and above

@@ -38,0 +38,0 @@ <!--DOCS_IGNORE_END-->

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