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);}