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