From f798a8bca46aaf40a7e990b344a6427ce039c86d Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 16 Sep 2020 16:58:35 +0200 Subject: [PATCH] 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. --- scripts/package-overrides/buffer/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package-overrides/buffer/index.js b/scripts/package-overrides/buffer/index.js index 951b344b..0ed6d01c 100644 --- a/scripts/package-overrides/buffer/index.js +++ b/scripts/package-overrides/buffer/index.js @@ -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);}