forked from mystiq/hydrogen-web
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:
parent
ff09f82f81
commit
f798a8bca4
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
module.exports = class Buffer {
|
||||
static isBuffer() {return false;}
|
||||
static isBuffer(array) {return array instanceof Uint8Array;}
|
||||
static from(arrayBuffer) {return arrayBuffer;}
|
||||
static allocUnsafe(size) {return Buffer.alloc(size);}
|
||||
static alloc(size) {return new Uint8Array(size);}
|
||||
|
|
Loading…
Reference in a new issue