Skip to content

Commit

Permalink
check_filename_case and check_syntax to async
Browse files Browse the repository at this point in the history
  • Loading branch information
ityuany committed Dec 23, 2024
1 parent 6fcd991 commit 3854f3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/binding/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ pub fn check_module_member_usage(
}

#[napi]
pub fn check_filename_case(
pub async fn check_filename_case(
args: utils::GlobJsArgs,
) -> Result<Vec<check_filename_case::CheckFilenameCaseResponse>> {
check_filename_case::check_filename_case(args.into()).map_err(to_napi_error)
Expand Down Expand Up @@ -139,7 +139,7 @@ pub fn check_browser_supported_with_source_code(
}

#[napi]
pub fn check_syntax(
pub async fn check_syntax(
args: utils::GlobJsArgs,
) -> Result<Vec<check_syntax::CheckSyntaxResponse>> {
check_syntax::check_syntax(args.into()).map_err(to_napi_error)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shined/source-code-diagnosis",
"version": "0.0.81",
"version": "0.0.82",
"main": "index.js",
"types": "index.d.ts",
"napi": {
Expand Down

0 comments on commit 3854f3d

Please sign in to comment.