From bfa73cb761141e8ca1b357cf57447917cc500d96 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 29 Jun 2022 06:55:00 +0000 Subject: [PATCH] fix: upgrade @solana/web3.js from 1.31.0 to 1.43.6 Snyk has created this PR to upgrade @solana/web3.js from 1.31.0 to 1.43.6. See this package in npm: https://www.npmjs.com/package/@solana/web3.js See this project in Snyk: https://app.snyk.io/org/balantion2020/project/1e315226-8cb0-4e84-8a6d-7b37a28c42cb?utm_source=github&utm_medium=referral&page=upgrade-pr --- explorer/package-lock.json | 205 ++++++++++++++++++++++++++++++------- explorer/package.json | 2 +- 2 files changed, 169 insertions(+), 38 deletions(-) diff --git a/explorer/package-lock.json b/explorer/package-lock.json index ad0d8aa2b1ddbd..53a0be20132017 100644 --- a/explorer/package-lock.json +++ b/explorer/package-lock.json @@ -18,7 +18,7 @@ "@react-hook/debounce": "^4.0.0", "@sentry/react": "^6.16.1", "@solana/spl-token-registry": "^0.2.810", - "@solana/web3.js": "^1.31.0", + "@solana/web3.js": "^1.43.6", "@testing-library/jest-dom": "^5.16.1", "@testing-library/react": "^12.1.2", "@testing-library/user-event": "^13.5.0", @@ -1928,6 +1928,21 @@ "regenerator-runtime": "^0.13.4" } }, + "node_modules/@bonfida/bot/node_modules/@project-serum/sol-wallet-adapter": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/@project-serum/sol-wallet-adapter/-/sol-wallet-adapter-0.1.8.tgz", + "integrity": "sha512-lKMgp7bsKpkrtBtIaEjtGuUMke0GUqFUL39Z7cjqsQpTVhkU5Ez4zHyjhXqAEORRGLFbwx/+H6HLpwppxpUDMQ==", + "dependencies": { + "bs58": "^4.0.1", + "eventemitter3": "^4.0.4" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@solana/web3.js": "^0.70.3" + } + }, "node_modules/@bonfida/bot/node_modules/@solana/web3.js": { "version": "0.94.2", "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-0.94.2.tgz", @@ -1977,6 +1992,21 @@ "webpack-dev-server": "^3.11.2" } }, + "node_modules/@bonfida/spl-name-service/node_modules/@project-serum/sol-wallet-adapter": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/@project-serum/sol-wallet-adapter/-/sol-wallet-adapter-0.1.8.tgz", + "integrity": "sha512-lKMgp7bsKpkrtBtIaEjtGuUMke0GUqFUL39Z7cjqsQpTVhkU5Ez4zHyjhXqAEORRGLFbwx/+H6HLpwppxpUDMQ==", + "dependencies": { + "bs58": "^4.0.1", + "eventemitter3": "^4.0.4" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@solana/web3.js": "^0.70.3" + } + }, "node_modules/@bonfida/spl-name-service/node_modules/@solana/spl-token": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/@solana/spl-token/-/spl-token-0.1.3.tgz", @@ -4357,21 +4387,6 @@ "node": ">=10" } }, - "node_modules/@project-serum/sol-wallet-adapter": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/@project-serum/sol-wallet-adapter/-/sol-wallet-adapter-0.1.8.tgz", - "integrity": "sha512-lKMgp7bsKpkrtBtIaEjtGuUMke0GUqFUL39Z7cjqsQpTVhkU5Ez4zHyjhXqAEORRGLFbwx/+H6HLpwppxpUDMQ==", - "dependencies": { - "bs58": "^4.0.1", - "eventemitter3": "^4.0.4" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "@solana/web3.js": "^0.70.3" - } - }, "node_modules/@react-hook/debounce": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@react-hook/debounce/-/debounce-4.0.0.tgz", @@ -4701,20 +4716,22 @@ } }, "node_modules/@solana/web3.js": { - "version": "1.31.0", - "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.31.0.tgz", - "integrity": "sha512-7nHHx1JNFnrt15e9y8m38I/EJCbaB+bFC3KZVM1+QhybCikFxGMtGA5r7PDC3GEL1R2RZA8yKoLkDKo3vzzqnw==", + "version": "1.43.6", + "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.43.6.tgz", + "integrity": "sha512-F1Q7EOnLi5X+Ap5bAEi5PTwwXPZR+GTfIyOuWpWJfgm3GoawdP/x5lxJolDzzV5S99bNEU/rSTdxcW9EFzIiEw==", "dependencies": { "@babel/runtime": "^7.12.5", "@ethersproject/sha2": "^5.5.0", - "@solana/buffer-layout": "^3.0.0", + "@solana/buffer-layout": "^4.0.0", + "bigint-buffer": "^1.1.5", "bn.js": "^5.0.0", - "borsh": "^0.4.0", + "borsh": "^0.7.0", "bs58": "^4.0.1", "buffer": "6.0.1", - "cross-fetch": "^3.1.4", + "fast-stable-stringify": "^1.0.0", "jayson": "^3.4.4", "js-sha3": "^0.8.0", + "node-fetch": "2", "rpc-websockets": "^7.4.2", "secp256k1": "^4.0.2", "superstruct": "^0.14.2", @@ -4732,6 +4749,50 @@ "regenerator-runtime": "^0.13.4" } }, + "node_modules/@solana/web3.js/node_modules/@solana/buffer-layout": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@solana/buffer-layout/-/buffer-layout-4.0.0.tgz", + "integrity": "sha512-lR0EMP2HC3+Mxwd4YcnZb0smnaDw7Bl2IQWZiTevRH5ZZBZn6VRWn3/92E3qdU4SSImJkA6IDHawOHAnx/qUvQ==", + "dependencies": { + "buffer": "~6.0.3" + }, + "engines": { + "node": ">=5.10" + } + }, + "node_modules/@solana/web3.js/node_modules/@solana/buffer-layout/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/@solana/web3.js/node_modules/borsh": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/borsh/-/borsh-0.7.0.tgz", + "integrity": "sha512-CLCsZGIBCFnPtkNnieW/a8wmreDmfUtjU2m9yHrzPXIlNbqVs0AQrSatSG6vdNYUqdc83tkQi2eHfF98ubzQLA==", + "dependencies": { + "bn.js": "^5.2.0", + "bs58": "^4.0.0", + "text-encoding-utf-8": "^1.0.2" + } + }, "node_modules/@solana/web3.js/node_modules/superstruct": { "version": "0.14.2", "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.14.2.tgz", @@ -7513,6 +7574,18 @@ "node": "*" } }, + "node_modules/bigint-buffer": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/bigint-buffer/-/bigint-buffer-1.1.5.tgz", + "integrity": "sha512-trfYco6AoZ+rKhKnxA0hgX0HAbVP/s808/EuDSe2JDzUnCp/xAsli35Orvk67UrTEcwuxZqYZDmfA2RXJgxVvA==", + "hasInstallScript": true, + "dependencies": { + "bindings": "^1.3.0" + }, + "engines": { + "node": ">= 10.0.0" + } + }, "node_modules/bignumber.js": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.1.tgz", @@ -11607,6 +11680,11 @@ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=" }, + "node_modules/fast-stable-stringify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fast-stable-stringify/-/fast-stable-stringify-1.0.0.tgz", + "integrity": "sha512-wpYMUmFu5f00Sm0cj2pfivpmawLZ0NKdviQ4w9zJeR8JVtOpOxHmLaJuj0vxvGqMJQWyP/COUkF75/57OKyRag==" + }, "node_modules/fastq": { "version": "1.10.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.10.1.tgz", @@ -28338,6 +28416,15 @@ "regenerator-runtime": "^0.13.4" } }, + "@project-serum/sol-wallet-adapter": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/@project-serum/sol-wallet-adapter/-/sol-wallet-adapter-0.1.8.tgz", + "integrity": "sha512-lKMgp7bsKpkrtBtIaEjtGuUMke0GUqFUL39Z7cjqsQpTVhkU5Ez4zHyjhXqAEORRGLFbwx/+H6HLpwppxpUDMQ==", + "requires": { + "bs58": "^4.0.1", + "eventemitter3": "^4.0.4" + } + }, "@solana/web3.js": { "version": "0.94.2", "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-0.94.2.tgz", @@ -28385,6 +28472,15 @@ "webpack-dev-server": "^3.11.2" }, "dependencies": { + "@project-serum/sol-wallet-adapter": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/@project-serum/sol-wallet-adapter/-/sol-wallet-adapter-0.1.8.tgz", + "integrity": "sha512-lKMgp7bsKpkrtBtIaEjtGuUMke0GUqFUL39Z7cjqsQpTVhkU5Ez4zHyjhXqAEORRGLFbwx/+H6HLpwppxpUDMQ==", + "requires": { + "bs58": "^4.0.1", + "eventemitter3": "^4.0.4" + } + }, "@solana/spl-token": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/@solana/spl-token/-/spl-token-0.1.3.tgz", @@ -30155,15 +30251,6 @@ } } }, - "@project-serum/sol-wallet-adapter": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/@project-serum/sol-wallet-adapter/-/sol-wallet-adapter-0.1.8.tgz", - "integrity": "sha512-lKMgp7bsKpkrtBtIaEjtGuUMke0GUqFUL39Z7cjqsQpTVhkU5Ez4zHyjhXqAEORRGLFbwx/+H6HLpwppxpUDMQ==", - "requires": { - "bs58": "^4.0.1", - "eventemitter3": "^4.0.4" - } - }, "@react-hook/debounce": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@react-hook/debounce/-/debounce-4.0.0.tgz", @@ -30409,20 +30496,22 @@ } }, "@solana/web3.js": { - "version": "1.31.0", - "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.31.0.tgz", - "integrity": "sha512-7nHHx1JNFnrt15e9y8m38I/EJCbaB+bFC3KZVM1+QhybCikFxGMtGA5r7PDC3GEL1R2RZA8yKoLkDKo3vzzqnw==", + "version": "1.43.6", + "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.43.6.tgz", + "integrity": "sha512-F1Q7EOnLi5X+Ap5bAEi5PTwwXPZR+GTfIyOuWpWJfgm3GoawdP/x5lxJolDzzV5S99bNEU/rSTdxcW9EFzIiEw==", "requires": { "@babel/runtime": "^7.12.5", "@ethersproject/sha2": "^5.5.0", - "@solana/buffer-layout": "^3.0.0", + "@solana/buffer-layout": "^4.0.0", + "bigint-buffer": "^1.1.5", "bn.js": "^5.0.0", - "borsh": "^0.4.0", + "borsh": "^0.7.0", "bs58": "^4.0.1", "buffer": "6.0.1", - "cross-fetch": "^3.1.4", + "fast-stable-stringify": "^1.0.0", "jayson": "^3.4.4", "js-sha3": "^0.8.0", + "node-fetch": "2", "rpc-websockets": "^7.4.2", "secp256k1": "^4.0.2", "superstruct": "^0.14.2", @@ -30437,6 +30526,35 @@ "regenerator-runtime": "^0.13.4" } }, + "@solana/buffer-layout": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@solana/buffer-layout/-/buffer-layout-4.0.0.tgz", + "integrity": "sha512-lR0EMP2HC3+Mxwd4YcnZb0smnaDw7Bl2IQWZiTevRH5ZZBZn6VRWn3/92E3qdU4SSImJkA6IDHawOHAnx/qUvQ==", + "requires": { + "buffer": "~6.0.3" + }, + "dependencies": { + "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" + } + } + } + }, + "borsh": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/borsh/-/borsh-0.7.0.tgz", + "integrity": "sha512-CLCsZGIBCFnPtkNnieW/a8wmreDmfUtjU2m9yHrzPXIlNbqVs0AQrSatSG6vdNYUqdc83tkQi2eHfF98ubzQLA==", + "requires": { + "bn.js": "^5.2.0", + "bs58": "^4.0.0", + "text-encoding-utf-8": "^1.0.2" + } + }, "superstruct": { "version": "0.14.2", "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.14.2.tgz", @@ -32610,6 +32728,14 @@ "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" }, + "bigint-buffer": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/bigint-buffer/-/bigint-buffer-1.1.5.tgz", + "integrity": "sha512-trfYco6AoZ+rKhKnxA0hgX0HAbVP/s808/EuDSe2JDzUnCp/xAsli35Orvk67UrTEcwuxZqYZDmfA2RXJgxVvA==", + "requires": { + "bindings": "^1.3.0" + } + }, "bignumber.js": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.1.tgz", @@ -35843,6 +35969,11 @@ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=" }, + "fast-stable-stringify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fast-stable-stringify/-/fast-stable-stringify-1.0.0.tgz", + "integrity": "sha512-wpYMUmFu5f00Sm0cj2pfivpmawLZ0NKdviQ4w9zJeR8JVtOpOxHmLaJuj0vxvGqMJQWyP/COUkF75/57OKyRag==" + }, "fastq": { "version": "1.10.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.10.1.tgz", diff --git a/explorer/package.json b/explorer/package.json index dd25efbaf673c7..65a94c02375295 100644 --- a/explorer/package.json +++ b/explorer/package.json @@ -13,7 +13,7 @@ "@react-hook/debounce": "^4.0.0", "@sentry/react": "^6.16.1", "@solana/spl-token-registry": "^0.2.810", - "@solana/web3.js": "^1.31.0", + "@solana/web3.js": "^1.43.6", "@testing-library/jest-dom": "^5.16.1", "@testing-library/react": "^12.1.2", "@testing-library/user-event": "^13.5.0",