From 862c1e3dc8fd12a4130e21f6567dbf8f7b078399 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 16 Jul 2024 07:43:57 +0000 Subject: [PATCH] fix: upgrade web3 from 4.9.0 to 4.10.0 Snyk has created this PR to upgrade web3 from 4.9.0 to 4.10.0. See this package in npm: web3 See this project in Snyk: https://app.snyk.io/org/json-rpc-relay/project/9e95a688-4e8c-4400-bbd9-181a47c69778?utm_source=github&utm_medium=referral&page=upgrade-pr Signed-off-by: ebadiere --- tools/web3js-example/package-lock.json | 65 +++++++++++++++++--------- tools/web3js-example/package.json | 2 +- 2 files changed, 44 insertions(+), 23 deletions(-) diff --git a/tools/web3js-example/package-lock.json b/tools/web3js-example/package-lock.json index c96c8e7103..0d0c3d5d38 100644 --- a/tools/web3js-example/package-lock.json +++ b/tools/web3js-example/package-lock.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "dependencies": { "dotenv": "^16.4.5", - "web3": "^4.9.0" + "web3": "^4.10.0" }, "devDependencies": { "chai": "^4.3.6", @@ -1326,25 +1326,26 @@ } }, "node_modules/web3": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/web3/-/web3-4.9.0.tgz", - "integrity": "sha512-O0R90ijjyqUlG1Wk3SXqfYMU1ZGJvLCAF/WfSg/isDz/0Fkpqxoj893wauZ+ieRvTXITlbQHVXGfpp8qrhWZ1g==", + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/web3/-/web3-4.10.0.tgz", + "integrity": "sha512-0A0SEZG4QL5DRtZQtF1pL+LldHn0kAAb4/vUdQua1k4CrZ+hRoDAc3dfFZw94EOV69oXuAFo8fqhITxyWfCHaw==", "license": "LGPL-3.0", "dependencies": { - "web3-core": "^4.4.0", + "web3-core": "^4.5.0", "web3-errors": "^1.2.0", - "web3-eth": "^4.7.0", + "web3-eth": "^4.8.0", "web3-eth-abi": "^4.2.2", "web3-eth-accounts": "^4.1.2", "web3-eth-contract": "^4.5.0", - "web3-eth-ens": "^4.3.0", + "web3-eth-ens": "^4.4.0", "web3-eth-iban": "^4.0.7", "web3-eth-personal": "^4.0.8", "web3-net": "^4.1.0", "web3-providers-http": "^4.1.0", "web3-providers-ws": "^4.0.7", "web3-rpc-methods": "^1.3.0", - "web3-types": "^1.6.0", + "web3-rpc-providers": "^1.0.0-rc.0", + "web3-types": "^1.7.0", "web3-utils": "^4.3.0", "web3-validator": "^2.0.6" }, @@ -1566,16 +1567,17 @@ } }, "node_modules/web3-providers-ws": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/web3-providers-ws/-/web3-providers-ws-4.0.7.tgz", - "integrity": "sha512-n4Dal9/rQWjS7d6LjyEPM2R458V8blRm0eLJupDEJOOIBhGYlxw5/4FthZZ/cqB7y/sLVi7K09DdYx2MeRtU5w==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/web3-providers-ws/-/web3-providers-ws-4.0.8.tgz", + "integrity": "sha512-goJdgata7v4pyzHRsg9fSegUG4gVnHZSHODhNnn6J93ykHkBI1nz4fjlGpcQLUMi4jAMz6SHl9Ibzs2jj9xqPw==", + "license": "LGPL-3.0", "dependencies": { "@types/ws": "8.5.3", "isomorphic-ws": "^5.0.0", - "web3-errors": "^1.1.3", - "web3-types": "^1.3.0", - "web3-utils": "^4.0.7", - "ws": "^8.8.1" + "web3-errors": "^1.2.0", + "web3-types": "^1.7.0", + "web3-utils": "^4.3.1", + "ws": "^8.17.1" }, "engines": { "node": ">=14", @@ -1597,6 +1599,24 @@ "npm": ">=6.12.0" } }, + "node_modules/web3-rpc-providers": { + "version": "1.0.0-rc.1", + "resolved": "https://registry.npmjs.org/web3-rpc-providers/-/web3-rpc-providers-1.0.0-rc.1.tgz", + "integrity": "sha512-N7AgGB+ilKPFQohnlI1vNHWmQ5Wh5vlGdYKWCWJc9kisKxxGtOsqN3W8tOj6/898sHZIXU9i/IAOyreGDIybmw==", + "license": "LGPL-3.0", + "dependencies": { + "web3-errors": "^1.2.0", + "web3-providers-http": "^4.1.0", + "web3-providers-ws": "^4.0.8", + "web3-types": "^1.7.0", + "web3-utils": "^4.3.1", + "web3-validator": "^2.0.6" + }, + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + } + }, "node_modules/web3-types": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/web3-types/-/web3-types-1.7.0.tgz", @@ -1608,15 +1628,15 @@ } }, "node_modules/web3-utils": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-4.3.0.tgz", - "integrity": "sha512-fGG2IZr0XB1vEoWZiyJzoy28HpsIfZgz4mgPeQA9aj5rIx8z0o80qUPtIyrCYX/Bo2gYALlV5SWIJWxJNUQn9Q==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-4.3.1.tgz", + "integrity": "sha512-kGwOk8FxOLJ9DQC68yqNQc7AzN+k9YDLaW+ZjlAXs3qORhf8zXk5SxWAAGLbLykMs3vTeB0FTb1Exut4JEYfFA==", "license": "LGPL-3.0", "dependencies": { "ethereum-cryptography": "^2.0.0", "eventemitter3": "^5.0.1", "web3-errors": "^1.2.0", - "web3-types": "^1.6.0", + "web3-types": "^1.7.0", "web3-validator": "^2.0.6" }, "engines": { @@ -1703,9 +1723,10 @@ "dev": true }, "node_modules/ws": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", - "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "license": "MIT", "engines": { "node": ">=10.0.0" }, diff --git a/tools/web3js-example/package.json b/tools/web3js-example/package.json index 8baaa96c64..4dce58b0cf 100644 --- a/tools/web3js-example/package.json +++ b/tools/web3js-example/package.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "dependencies": { "dotenv": "^16.4.5", - "web3": "^4.9.0" + "web3": "^4.10.0" }, "devDependencies": { "chai": "^4.3.6",