add bs58 as a dependency

override some of its imports as they would just add
a lot of nodejs fluff that needs stubbing out for a browser.
This commit is contained in:
Bruno Windels 2020-09-16 16:58:35 +02:00
parent ff09f82f81
commit f798a8bca4

View File

@ -1,5 +1,5 @@
module.exports = class Buffer { module.exports = class Buffer {
static isBuffer() {return false;} static isBuffer(array) {return array instanceof Uint8Array;}
static from(arrayBuffer) {return arrayBuffer;} static from(arrayBuffer) {return arrayBuffer;}
static allocUnsafe(size) {return Buffer.alloc(size);} static allocUnsafe(size) {return Buffer.alloc(size);}
static alloc(size) {return new Uint8Array(size);} static alloc(size) {return new Uint8Array(size);}