mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
feat: buffer get name fn
This commit is contained in:
parent
380bb58fb6
commit
ed3673b92a
2 changed files with 5 additions and 1 deletions
2
dist/js/package.json
vendored
2
dist/js/package.json
vendored
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@codemp/codemp",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.4",
|
||||
|
||||
"dependencies": {
|
||||
"@napi-rs/cli": "^2.18.0",
|
||||
|
|
|
@ -31,6 +31,10 @@ impl BufferController {
|
|||
});
|
||||
Ok(())
|
||||
}
|
||||
#[napi(js_name = "get_name")]
|
||||
pub fn js_name(&self) -> napi::Result<&str> {
|
||||
Ok(&self.name())
|
||||
}
|
||||
|
||||
#[napi(js_name = "try_recv")]
|
||||
pub async fn js_try_recv(&self) -> napi::Result<Option<TextChange>> {
|
||||
|
|
Loading…
Reference in a new issue