From e9ec70662a1be7a1fed87d0e150e7f501a9144ae Mon Sep 17 00:00:00 2001 From: Zac Mitton Date: Sat, 19 Dec 2020 14:06:23 -0400 Subject: [PATCH] fix for issue #20 - Buffer not defined --- package-lock.json | 19 +++++++++++++++++++ package.json | 3 ++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 9707539..a5e824d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -62,6 +62,11 @@ "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, + "base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" + }, "bindings": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", @@ -117,6 +122,15 @@ "safe-buffer": "^5.0.1" } }, + "buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, "buffer-xor": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", @@ -602,6 +616,11 @@ "safer-buffer": ">= 2.1.2 < 3" } }, + "ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" + }, "immediate": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.2.3.tgz", diff --git a/package.json b/package.json index ec8173f..7c30e38 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,10 @@ { "name": "eth-proof", - "version": "2.1.4", + "version": "2.1.5", "description": "Proving things in the Ethereum Patricia Trie (tree)", "main": "index.js", "dependencies": { + "buffer": "^6.0.3", "eth-object": "^1.0.3", "eth-util-lite": "^1.0.1", "isomorphic-rpc": "^1.1.1",