eslint-plugin-yml 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.mjs +3 -2
  2. package/package.json +2 -2
package/lib/index.mjs CHANGED
@@ -3,7 +3,7 @@ import * as yamlESLintParser from "yaml-eslint-parser";
3
3
  import { VisitorKeys, getStaticYAMLValue, parseForESLint, parseYAML, traverseNodes } from "yaml-eslint-parser";
4
4
  import path from "path";
5
5
  import naturalCompare from "natural-compare";
6
- import diff from "diff-sequences";
6
+ import diffModule from "diff-sequences";
7
7
  import escapeStringRegexp from "escape-string-regexp";
8
8
  import { CallMethodStep, ConfigCommentParser, Directive, TextSourceCodeBase, VisitNodeStep } from "@eslint/plugin-kit";
9
9
 
@@ -3689,6 +3689,7 @@ var require_string_key_default = createRule("require-string-key", {
3689
3689
 
3690
3690
  //#endregion
3691
3691
  //#region src/utils/calc-shortest-edit-script.ts
3692
+ const diff = typeof diffModule === "function" ? diffModule : diffModule.default;
3692
3693
  /**
3693
3694
  * Given the contents of two sequences, returns diff information.
3694
3695
  * @param a The first sequence.
@@ -5253,7 +5254,7 @@ var prettier_default = [...base_default, { rules: {
5253
5254
  //#endregion
5254
5255
  //#region package.json
5255
5256
  var name$1 = "eslint-plugin-yml";
5256
- var version$1 = "2.0.0";
5257
+ var version$1 = "2.0.1";
5257
5258
 
5258
5259
  //#endregion
5259
5260
  //#region src/meta.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-yml",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "This ESLint plugin provides linting rules for YAML.",
5
5
  "type": "module",
6
6
  "main": "lib/index.mjs",
@@ -110,7 +110,7 @@
110
110
  "eslint-plugin-prettier": "^5.0.0",
111
111
  "eslint-plugin-regexp": "^2.0.0",
112
112
  "eslint-plugin-vue": "^10.0.0",
113
- "eslint-plugin-yml": "^1.0.0",
113
+ "eslint-plugin-yml": "^2.0.0",
114
114
  "events": "^3.3.0",
115
115
  "mocha": "^11.0.0",
116
116
  "monaco-editor": "^0.55.0",