Move ser/deser logic to JS
This commit is contained in:
parent
7e045caab1
commit
e43a13648b
7 changed files with 59 additions and 17 deletions
3
plugin/src/utils/serialize.ts
Normal file
3
plugin/src/utils/serialize.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export function serialize(data: Uint8Array): string {
|
||||
return Buffer.from(data).toString("base64");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue