File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " dprint-plugin-typescript"
3- version = " 0.50.2 "
3+ version = " 0.51.0 "
44authors = [" David Sherret <dsherret@gmail.com>" ]
55edition = " 2018"
66homepage = " https://github.com/dprint/dprint-plugin-typescript"
@@ -29,7 +29,7 @@ dprint-core = { version = "0.44.0", features = ["formatting"] }
2929fnv = " 1.0.7"
3030serde = { version = " 1.0.118" , features = [" derive" ] }
3131serde_json = { version = " 1.0" , optional = true }
32- swc_ast_view = { version = " 0.27.1 " , package = " dprint-swc-ecma-ast-view" }
32+ swc_ast_view = { version = " 0.29.4 " , package = " dprint-swc-ecma-ast-view" }
3333swc_common = " 0.11.4"
3434swc_ecmascript = { version = " 0.52.1" , features = [" parser" ] }
3535
Original file line number Diff line number Diff line change @@ -66,16 +66,16 @@ pub struct SourceFileInfo<'a> {
6666}
6767
6868/// Formats the already parsed file. This is useful as a performance optimization.
69- pub fn format_parsed_file ( info : & SourceFileInfo < ' _ > , config : & Configuration ) -> Result < String , ErrBox > {
69+ pub fn format_parsed_file ( info : & SourceFileInfo < ' _ > , config : & Configuration ) -> String {
7070 if super :: utils:: file_text_has_ignore_comment ( info. info . text ( ) , & config. ignore_file_comment_text ) {
71- return Ok ( info. info . text ( ) . to_string ( ) ) ;
71+ return info. info . text ( ) . to_string ( ) ;
7272 }
7373
74- Ok ( dprint_core:: formatting:: format ( || {
74+ dprint_core:: formatting:: format ( || {
7575 let print_items = parse ( & info, config) ;
7676 // println!("{}", print_items.get_as_text());
7777 print_items
78- } , config_to_print_options ( info. info . text ( ) , config) ) )
78+ } , config_to_print_options ( info. info . text ( ) , config) )
7979}
8080
8181#[ cfg( feature = "tracing" ) ]
You can’t perform that action at this time.
0 commit comments