File tree Expand file tree Collapse file tree 3 files changed +247
-155
lines changed Expand file tree Collapse file tree 3 files changed +247
-155
lines changed Original file line number Diff line number Diff line change 27
27
"release" : " release-it"
28
28
},
29
29
"devDependencies" : {
30
- "@angular/compiler" : " 20.1.0 " ,
30
+ "@angular/compiler" : " 20.1.2 " ,
31
31
"@babel/code-frame" : " 7.27.1" ,
32
32
"@babel/parser" : " 7.28.0" ,
33
33
"@babel/types" : " 7.28.1" ,
34
34
"@types/babel__code-frame" : " 7.0.6" ,
35
- "@types/node" : " 24.0.13 " ,
35
+ "@types/node" : " 24.0.14 " ,
36
36
"@vitest/coverage-v8" : " 3.2.4" ,
37
37
"del-cli" : " 6.0.0" ,
38
38
"eslint" : " 9.31.0" ,
44
44
"lines-and-columns" : " 2.0.4" ,
45
45
"npm-run-all2" : " 8.0.4" ,
46
46
"prettier" : " 3.6.2" ,
47
- "release-it" : " 19.0.3 " ,
47
+ "release-it" : " 19.0.4 " ,
48
48
"typescript" : " 5.8.3" ,
49
- "typescript-eslint" : " 8.36 .0" ,
49
+ "typescript-eslint" : " 8.37 .0" ,
50
50
"vitest" : " 3.2.4"
51
51
},
52
52
"peerDependencies" : {
53
- "@angular/compiler" : " ^20.1.0 "
53
+ "@angular/compiler" : " ^20.1.2 "
54
54
},
55
55
"engines" : {
56
56
"node" : " >= 20"
Original file line number Diff line number Diff line change @@ -276,19 +276,13 @@ class Transformer extends Source {
276
276
node instanceof angular . KeyedRead ||
277
277
node instanceof angular . SafeKeyedRead
278
278
) {
279
- // TODO: Use `node.sourceSpan.end` directly
280
- // https://github.com/angular/angular/issues/62617
281
- const end =
282
- this . text . charAt ( node . sourceSpan . end - 1 ) === '='
283
- ? this . getCharacterLastIndex ( / \S / , node . sourceSpan . end - 2 ) + 1
284
- : node . sourceSpan . end ;
285
279
return this . #transformReceiverAndName(
286
280
node . receiver ,
287
281
this . #transform< babel . Expression > ( node . key ) ,
288
282
{
289
283
computed : true ,
290
284
optional : node instanceof angular . SafeKeyedRead ,
291
- end : end , // ]
285
+ end : node . sourceSpan . end , // ]
292
286
hasParentParens : isInParentParens ,
293
287
} ,
294
288
) ;
You can’t perform that action at this time.
0 commit comments