Skip to content

Commit 248edaf

Browse files
authored
chore(release): 0.38.5 - Upgrade swc (#92)
1 parent 72f03fd commit 248edaf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "dprint-plugin-typescript"
33
description = "TypeScript and JavaScript code formatter."
44
keywords = ["formatting", "formatter", "typescript", "javascript"]
5-
version = "0.38.4"
5+
version = "0.38.5"
66
authors = ["David Sherret <[email protected]>"]
77
edition = "2018"
88
license = "MIT"
@@ -28,7 +28,7 @@ dprint-core = { version = "0.35.0", features = ["formatting"] }
2828
fnv = "1.0.3"
2929
swc_common = "0.10.9"
3030
swc_ecmascript = { version = "0.18.2", features = ["parser"] }
31-
swc_ast_view = { version = "0.4.1", package = "dprint-swc-ecma-ast-view" }
31+
swc_ast_view = { version = "0.5.0", package = "dprint-swc-ecma-ast-view" }
3232
serde = { version = "1.0.118", features = ["derive"] }
3333
serde_json = { version = "1.0", optional = true }
3434

src/parsing/tokens.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl<'a> TokenFinder<'a> {
150150

151151
#[inline]
152152
fn get_first_token_before(&self, node: &dyn Spanned, is_match: impl Fn(&TokenAndSpan) -> bool) -> Option<&'a TokenAndSpan> {
153-
node.previous_tokens_fast(self.module).find(|token_and_span| is_match(token_and_span))
153+
node.previous_tokens_fast(self.module).iter().find(|token_and_span| is_match(token_and_span))
154154
}
155155

156156
#[inline]

0 commit comments

Comments
 (0)