@angular-eslint/test-utils 18.3.1-alpha.5 → 18.3.1-alpha.6

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.
@@ -105,35 +105,26 @@ function parseInvalidSource(source, specialChar = '~', otherChars = []) {
105
105
  }
106
106
  let col = 0;
107
107
  let line = 0;
108
- let sourceLine = 0;
109
- let isAnnotationLine = false;
110
108
  let lastCol = 0;
111
109
  let lastLine = 0;
112
110
  let startPosition;
113
- for (const currentChar of source) {
111
+ for (const currentChar of replacedSource) {
114
112
  if (currentChar === '\n') {
115
- if (isAnnotationLine)
116
- isAnnotationLine = false;
117
- else
118
- sourceLine = line;
119
113
  col = 0;
120
114
  line++;
121
115
  continue;
122
116
  }
123
117
  col++;
124
- if (otherChars.includes(currentChar))
125
- isAnnotationLine = true;
126
118
  if (currentChar !== specialChar)
127
119
  continue;
128
- isAnnotationLine = true;
129
120
  if (!startPosition) {
130
121
  startPosition = {
131
122
  character: col - 1,
132
- line: sourceLine,
123
+ line: line - 1,
133
124
  };
134
125
  }
135
126
  lastCol = col;
136
- lastLine = sourceLine;
127
+ lastLine = line - 1;
137
128
  }
138
129
  const endPosition = {
139
130
  character: lastCol,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/test-utils",
3
- "version": "18.3.1-alpha.5",
3
+ "version": "18.3.1-alpha.6",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",