mirror of
https://github.com/jwetzell/psn-js.git
synced 2026-09-05 22:39:17 +00:00
replace NodeJS buffer with Uint8Array
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
import chunk from '../chunk';
|
||||
|
||||
export default (systemName: string): Buffer => chunk(0x0001, Buffer.from(systemName), false);
|
||||
export default (systemName: string): Uint8Array => chunk(0x0001, new TextEncoder().encode(systemName), false);
|
||||
|
||||
Reference in New Issue
Block a user