File tree Expand file tree Collapse file tree
babel-helper-replace-supers/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7272 "shelljs" : " ^0.8.5" ,
7373 "test262-stream" : " ^1.4.0" ,
7474 "through2" : " ^4.0.0" ,
75- "typescript" : " ~4.8.2 "
75+ "typescript" : " ~4.8.3 "
7676 },
7777 "workspaces" : [
7878 " codemods/*" ,
Original file line number Diff line number Diff line change @@ -383,20 +383,13 @@ export default class ReplaceSupers {
383383 declare opts : ReplaceSupersOptions ;
384384
385385 getObjectRef ( ) {
386- return cloneNode (
387- this . opts . objectRef ||
388- // @ts -expect-error https://github.com/microsoft/TypeScript/issues/49643
389- this . opts . getObjectRef ( ) ,
390- ) ;
386+ return cloneNode ( this . opts . objectRef || this . opts . getObjectRef ( ) ) ;
391387 }
392388
393389 getSuperRef ( ) {
394390 if ( this . opts . superRef ) return cloneNode ( this . opts . superRef ) ;
395391 if ( this . opts . getSuperRef ) {
396- return cloneNode (
397- // @ts -expect-error https://github.com/microsoft/TypeScript/issues/49643
398- this . opts . getSuperRef ( ) ,
399- ) ;
392+ return cloneNode ( this . opts . getSuperRef ( ) ) ;
400393 }
401394 }
402395
Original file line number Diff line number Diff line change @@ -109,13 +109,7 @@ class NodePath<T extends t.Node = t.Node> {
109109 }
110110
111111 getScope ( scope : Scope ) : Scope {
112- // TODO: Remove this when TS is fixed.
113- // A regression was introduced in ts4.8 that would cause OOM.
114- // Avoid it by manually casting the types.
115- // https://github.com/babel/babel/pull/14880
116- return this . isScope ( )
117- ? new Scope ( this as NodePath < t . Pattern | t . Scopable > )
118- : scope ;
112+ return this . isScope ( ) ? new Scope ( this ) : scope ;
119113 }
120114
121115 setData ( key : string | symbol , val : any ) : any {
Original file line number Diff line number Diff line change @@ -5979,7 +5979,7 @@ __metadata:
59795979 shelljs: ^0.8.5
59805980 test262-stream: ^1.4.0
59815981 through2: ^4.0.0
5982- typescript: ~4.8.2
5982+ typescript: ~4.8.3
59835983 dependenciesMeta:
59845984 core-js:
59855985 built: false
@@ -14777,23 +14777,23 @@ fsevents@^1.2.7:
1477714777 languageName: node
1477814778 linkType: hard
1477914779
14780- "typescript@npm:~4.8.2 ":
14781- version: 4.8.2
14782- resolution: "typescript@npm:4.8.2 "
14780+ "typescript@npm:~4.8.3 ":
14781+ version: 4.8.3
14782+ resolution: "typescript@npm:4.8.3 "
1478314783 bin:
1478414784 tsc: bin/tsc
1478514785 tsserver: bin/tsserver
14786- checksum: 7f5b81d0d558c9067f952c7af52ab7f19c2e70a916817929e4a5b256c93990bf3178eccb1ac8a850bc75df35f6781b6f4cb3370ce20d8b1ded92ed462348f628
14786+ checksum: 8286a5edcaf3d68e65c451aa1e7150ad1cf53ee0813c07ec35b7abdfdb10f355ecaa13c6a226a694ae7a67785fd7eeebf89f845da0b4f7e4a35561ddc459aba0
1478714787 languageName: node
1478814788 linkType: hard
1478914789
14790- "typescript@patch:typescript@~4.8.2 #~builtin<compat/typescript>":
14791- version: 4.8.2
14792- resolution: "typescript@patch:typescript@npm%3A4.8.2 #~builtin<compat/typescript>::version=4.8.2 &hash=493e53"
14790+ "typescript@patch:typescript@~4.8.3 #~builtin<compat/typescript>":
14791+ version: 4.8.3
14792+ resolution: "typescript@patch:typescript@npm%3A4.8.3 #~builtin<compat/typescript>::version=4.8.3 &hash=493e53"
1479314793 bin:
1479414794 tsc: bin/tsc
1479514795 tsserver: bin/tsserver
14796- checksum: 6f49363af8af2fe480da1d5fa68712644438785208b06690a3cbe5e7365fd652c3a0f1e587bc8684d78fb69de3dde4de185c0bad7bb4f3664ddfc813ce8caad6
14796+ checksum: 0404a09c625df01934ef774b45ce1ca57ccae41cd625fcdbb82056715320d9329e70d9d75c2c732ec6ef947444ca978c189a332b71fa21f5c1437d5a83e24906
1479714797 languageName: node
1479814798 linkType: hard
1479914799
You can’t perform that action at this time.
0 commit comments