From 3854f3d4216a180cd990dd9c7799742b06d1f868 Mon Sep 17 00:00:00 2001 From: ityuany <519495771@qq.com> Date: Mon, 23 Dec 2024 17:09:36 +0800 Subject: [PATCH] check_filename_case and check_syntax to async --- crates/binding/src/lib.rs | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/binding/src/lib.rs b/crates/binding/src/lib.rs index 9b18dee..07dfc83 100644 --- a/crates/binding/src/lib.rs +++ b/crates/binding/src/lib.rs @@ -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> { check_filename_case::check_filename_case(args.into()).map_err(to_napi_error) @@ -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> { check_syntax::check_syntax(args.into()).map_err(to_napi_error) diff --git a/package.json b/package.json index b9fbc24..c395bf6 100644 --- a/package.json +++ b/package.json @@ -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": {