flatlint 2.1.1 → 2.1.3

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.
package/ChangeLog CHANGED
@@ -1,3 +1,13 @@
1
+ 2025.02.28, v2.1.3
2
+
3
+ feature:
4
+ - 52edf97 flatlint: compare: infinite loop
5
+
6
+ 2025.02.28, v2.1.2
7
+
8
+ fix:
9
+ - b670c83 flatlint: collect-args: infinite loop
10
+
1
11
  2025.02.28, v2.1.1
2
12
 
3
13
  fix:
@@ -70,3 +70,4 @@ export const collectArgs = ({currentTokenIndex, tokens}) => {
70
70
  --index,
71
71
  ];
72
72
  };
73
+
@@ -56,7 +56,7 @@ export const compare = (source, template, {index = 0} = {}) => {
56
56
  ++skip;
57
57
  } else if (templateIndex === templateTokensLength - 1) {
58
58
  currentTokenIndex = end;
59
- } else {
59
+ } else if (currentTokenIndex < end) {
60
60
  delta = end - currentTokenIndex;
61
61
  index = end - templateIndex;
62
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",