forked from olcxjas-softworks/LarpixClient
update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
8
electron/node_modules/@peculiar/utils/build/esm/encoding/utf8.js
generated
vendored
Normal file
8
electron/node_modules/@peculiar/utils/build/esm/encoding/utf8.js
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { toUint8Array } from "../bytes/index.js";
|
||||
export function encode(text) {
|
||||
return new TextEncoder().encode(text);
|
||||
}
|
||||
export function decode(data) {
|
||||
return new TextDecoder("utf-8", { fatal: false }).decode(toUint8Array(data));
|
||||
}
|
||||
export const utf8 = { encode, decode };
|
||||
Loading…
Add table
Add a link
Reference in a new issue