From 35f0eeafdff5f0ed6cbc8f7606c96f3c8b4ab972 Mon Sep 17 00:00:00 2001 From: Ludovic Levalleux Date: Fri, 17 Nov 2023 16:47:05 +0000 Subject: [PATCH] upgrade react-kit dependency --- package-lock.json | 203 ++++++++++++++++++++++++++++++++++++++-------- package.json | 2 +- 2 files changed, 171 insertions(+), 34 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9139e99..91eef1d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "widgets", "version": "0.1.0", "dependencies": { - "@bosonprotocol/react-kit": "^0.22.0-alpha.7", + "@bosonprotocol/react-kit": "^0.22.0-alpha.14", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", @@ -2152,9 +2152,9 @@ } }, "node_modules/@bosonprotocol/common": { - "version": "1.24.0-alpha.4", - "resolved": "https://registry.npmjs.org/@bosonprotocol/common/-/common-1.24.0-alpha.4.tgz", - "integrity": "sha512-0DLju01OrJilnRqDnpCwuLs5Ow+JHArNnRz/9Gdkb4UWMSk9puXNCpaTBMpGUr+AJp7UBCi9cApICkLF89QLKA==", + "version": "1.24.0-alpha.11", + "resolved": "https://registry.npmjs.org/@bosonprotocol/common/-/common-1.24.0-alpha.11.tgz", + "integrity": "sha512-Rhf9Hptm1dvhUNgjPARyw5GMtRZsxyG9sGRWDiHiq6JgeTbYUDosv/0QWk6/oywhTt2mc7XNY+kqLmLK5TqjyQ==", "dependencies": { "@bosonprotocol/metadata": "^1.13.0", "@ethersproject/abi": "^5.5.0", @@ -2166,11 +2166,11 @@ } }, "node_modules/@bosonprotocol/core-sdk": { - "version": "1.33.0-alpha.4", - "resolved": "https://registry.npmjs.org/@bosonprotocol/core-sdk/-/core-sdk-1.33.0-alpha.4.tgz", - "integrity": "sha512-MXeicxf3xc3TwEra2qFggsicEqcG27dqe2v4ie5Tccl9+/MgVZYEgl1speleow0JLgl8l4zksTEpIeCpd0AqPg==", + "version": "1.33.0-alpha.11", + "resolved": "https://registry.npmjs.org/@bosonprotocol/core-sdk/-/core-sdk-1.33.0-alpha.11.tgz", + "integrity": "sha512-flc5gK5zF1uHyuGpN0+aYuxYGeEMoyfRUHEuEZR18vPCLGwtuaYOtH/PCggAKnSyPJdua85Ya1Kw4mWf4aCQAw==", "dependencies": { - "@bosonprotocol/common": "^1.24.0-alpha.4", + "@bosonprotocol/common": "^1.24.0-alpha.11", "@ethersproject/abi": "^5.5.0", "@ethersproject/address": "^5.5.0", "@ethersproject/bignumber": "^5.5.0", @@ -2199,11 +2199,11 @@ } }, "node_modules/@bosonprotocol/ethers-sdk": { - "version": "1.12.10-alpha.4", - "resolved": "https://registry.npmjs.org/@bosonprotocol/ethers-sdk/-/ethers-sdk-1.12.10-alpha.4.tgz", - "integrity": "sha512-Q1nDJCt7V4+Ix2PkbX33xco4mRhkFwrpTKgEbmCbs7L2bVdne9qzXSZ+ilZdGteYJRqQG7G8UONNrd9GEx0oBA==", + "version": "1.12.10-alpha.11", + "resolved": "https://registry.npmjs.org/@bosonprotocol/ethers-sdk/-/ethers-sdk-1.12.10-alpha.11.tgz", + "integrity": "sha512-NAlYNMT2lXwf/FL3ZNARYAZF1TqN3BDZHuODikJ5v1ujh3I6817C3I3SPJaPhi+yERr2ImyYNVVsC/A1DZi+Ww==", "dependencies": { - "@bosonprotocol/common": "^1.24.0-alpha.4" + "@bosonprotocol/common": "^1.24.0-alpha.11" }, "peerDependencies": { "ethers": "^5.5.0" @@ -2229,13 +2229,13 @@ } }, "node_modules/@bosonprotocol/react-kit": { - "version": "0.22.0-alpha.7", - "resolved": "https://registry.npmjs.org/@bosonprotocol/react-kit/-/react-kit-0.22.0-alpha.7.tgz", - "integrity": "sha512-hAWvJNi28fQpicSGBvnbmbf/Ci3fSihdCHBUx9Cr3M7cDqoYowfoczVHQlbq0XK/k9uo4oCjcjRVEbmpSNVRJA==", + "version": "0.22.0-alpha.14", + "resolved": "https://registry.npmjs.org/@bosonprotocol/react-kit/-/react-kit-0.22.0-alpha.14.tgz", + "integrity": "sha512-sMYPWCSSeqtu9dkn5MnlUZT8PgsT74Mn2rJTGkh4l3F4Fyx23AeCWcD56YKuMZvUTM7o5FJkmhGfUAE0CbvC2g==", "dependencies": { "@bosonprotocol/chat-sdk": "^1.3.1-alpha.9", - "@bosonprotocol/core-sdk": "^1.33.0-alpha.4", - "@bosonprotocol/ethers-sdk": "^1.12.10-alpha.4", + "@bosonprotocol/core-sdk": "^1.33.0-alpha.11", + "@bosonprotocol/ethers-sdk": "^1.12.10-alpha.11", "@bosonprotocol/ipfs-storage": "^1.10.10", "@davatar/react": "1.11.1", "@ethersproject/units": "5.6.0", @@ -2245,6 +2245,7 @@ "@tippyjs/react": "4.2.6", "@uniswap/sdk-core": "^4.0.7", "dayjs": "1.11.7", + "eth-revert-reason": "^1.0.3", "formik": "2.2.9", "graphql-request": "5.2.0", "lodash.merge": "4.6.2", @@ -14098,6 +14099,68 @@ "xtend": "^4.0.1" } }, + "node_modules/eth-revert-reason": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/eth-revert-reason/-/eth-revert-reason-1.0.3.tgz", + "integrity": "sha512-HD4pB+s2Jr4cwdywbcTcdLXPwxOZNrnH/luVuploeqEBlCNvFZQGzOwfgOy8WTSTqqEvjZOrIt+cNPt5Zl4pXw==", + "dependencies": { + "ethers": "^4.0.46" + }, + "bin": { + "getRevertReason": "cli.js" + } + }, + "node_modules/eth-revert-reason/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, + "node_modules/eth-revert-reason/node_modules/ethers": { + "version": "4.0.49", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-4.0.49.tgz", + "integrity": "sha512-kPltTvWiyu+OktYy1IStSO16i2e7cS9D9OxZ81q2UUaiNPVrm/RTcbxamCXF9VUSKzJIdJV68EAIhTEVBalRWg==", + "dependencies": { + "aes-js": "3.0.0", + "bn.js": "^4.11.9", + "elliptic": "6.5.4", + "hash.js": "1.1.3", + "js-sha3": "0.5.7", + "scrypt-js": "2.0.4", + "setimmediate": "1.0.4", + "uuid": "2.0.1", + "xmlhttprequest": "1.8.0" + } + }, + "node_modules/eth-revert-reason/node_modules/hash.js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz", + "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", + "dependencies": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.0" + } + }, + "node_modules/eth-revert-reason/node_modules/js-sha3": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.5.7.tgz", + "integrity": "sha512-GII20kjaPX0zJ8wzkTbNDYMY7msuZcTWk8S5UOh6806Jq/wz1J8/bnr8uGU0DAUmYDjj2Mr4X1cW8v/GLYnR+g==" + }, + "node_modules/eth-revert-reason/node_modules/scrypt-js": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-2.0.4.tgz", + "integrity": "sha512-4KsaGcPnuhtCZQCxFxN3GVYIhKFPTdLd8PLC552XwbMndtD0cjRFAhDuuydXQ0h08ZfPgzqe6EKHozpuH74iDw==" + }, + "node_modules/eth-revert-reason/node_modules/setimmediate": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.4.tgz", + "integrity": "sha512-/TjEmXQVEzdod/FFskf3o7oOAsGhHf2j1dZqRFbDzq4F3mvvxflIIi4Hd3bLQE9y/CpwqfSQam5JakI/mi3Pog==" + }, + "node_modules/eth-revert-reason/node_modules/uuid": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.1.tgz", + "integrity": "sha512-nWg9+Oa3qD2CQzHIP4qKUqwNfzKn8P0LtFhotaCTFchsV7ZfDhAybeip/HZVeMIpZi9JgY1E3nUlwaCmZT1sEg==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details." + }, "node_modules/eth-rpc-errors": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-4.0.2.tgz", @@ -29411,6 +29474,14 @@ "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" }, + "node_modules/xmlhttprequest": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz", + "integrity": "sha512-58Im/U0mlVBLM38NdZjHyhuMtCqa61469k2YP/AaPbvCoV9aQGUpbJBj1QRm2ytRiVQBD/fsw7L2bJGDVQswBA==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", @@ -31041,9 +31112,9 @@ } }, "@bosonprotocol/common": { - "version": "1.24.0-alpha.4", - "resolved": "https://registry.npmjs.org/@bosonprotocol/common/-/common-1.24.0-alpha.4.tgz", - "integrity": "sha512-0DLju01OrJilnRqDnpCwuLs5Ow+JHArNnRz/9Gdkb4UWMSk9puXNCpaTBMpGUr+AJp7UBCi9cApICkLF89QLKA==", + "version": "1.24.0-alpha.11", + "resolved": "https://registry.npmjs.org/@bosonprotocol/common/-/common-1.24.0-alpha.11.tgz", + "integrity": "sha512-Rhf9Hptm1dvhUNgjPARyw5GMtRZsxyG9sGRWDiHiq6JgeTbYUDosv/0QWk6/oywhTt2mc7XNY+kqLmLK5TqjyQ==", "requires": { "@bosonprotocol/metadata": "^1.13.0", "@ethersproject/abi": "^5.5.0", @@ -31055,11 +31126,11 @@ } }, "@bosonprotocol/core-sdk": { - "version": "1.33.0-alpha.4", - "resolved": "https://registry.npmjs.org/@bosonprotocol/core-sdk/-/core-sdk-1.33.0-alpha.4.tgz", - "integrity": "sha512-MXeicxf3xc3TwEra2qFggsicEqcG27dqe2v4ie5Tccl9+/MgVZYEgl1speleow0JLgl8l4zksTEpIeCpd0AqPg==", + "version": "1.33.0-alpha.11", + "resolved": "https://registry.npmjs.org/@bosonprotocol/core-sdk/-/core-sdk-1.33.0-alpha.11.tgz", + "integrity": "sha512-flc5gK5zF1uHyuGpN0+aYuxYGeEMoyfRUHEuEZR18vPCLGwtuaYOtH/PCggAKnSyPJdua85Ya1Kw4mWf4aCQAw==", "requires": { - "@bosonprotocol/common": "^1.24.0-alpha.4", + "@bosonprotocol/common": "^1.24.0-alpha.11", "@ethersproject/abi": "^5.5.0", "@ethersproject/address": "^5.5.0", "@ethersproject/bignumber": "^5.5.0", @@ -31087,11 +31158,11 @@ } }, "@bosonprotocol/ethers-sdk": { - "version": "1.12.10-alpha.4", - "resolved": "https://registry.npmjs.org/@bosonprotocol/ethers-sdk/-/ethers-sdk-1.12.10-alpha.4.tgz", - "integrity": "sha512-Q1nDJCt7V4+Ix2PkbX33xco4mRhkFwrpTKgEbmCbs7L2bVdne9qzXSZ+ilZdGteYJRqQG7G8UONNrd9GEx0oBA==", + "version": "1.12.10-alpha.11", + "resolved": "https://registry.npmjs.org/@bosonprotocol/ethers-sdk/-/ethers-sdk-1.12.10-alpha.11.tgz", + "integrity": "sha512-NAlYNMT2lXwf/FL3ZNARYAZF1TqN3BDZHuODikJ5v1ujh3I6817C3I3SPJaPhi+yERr2ImyYNVVsC/A1DZi+Ww==", "requires": { - "@bosonprotocol/common": "^1.24.0-alpha.4" + "@bosonprotocol/common": "^1.24.0-alpha.11" } }, "@bosonprotocol/ipfs-storage": { @@ -31114,13 +31185,13 @@ } }, "@bosonprotocol/react-kit": { - "version": "0.22.0-alpha.7", - "resolved": "https://registry.npmjs.org/@bosonprotocol/react-kit/-/react-kit-0.22.0-alpha.7.tgz", - "integrity": "sha512-hAWvJNi28fQpicSGBvnbmbf/Ci3fSihdCHBUx9Cr3M7cDqoYowfoczVHQlbq0XK/k9uo4oCjcjRVEbmpSNVRJA==", + "version": "0.22.0-alpha.14", + "resolved": "https://registry.npmjs.org/@bosonprotocol/react-kit/-/react-kit-0.22.0-alpha.14.tgz", + "integrity": "sha512-sMYPWCSSeqtu9dkn5MnlUZT8PgsT74Mn2rJTGkh4l3F4Fyx23AeCWcD56YKuMZvUTM7o5FJkmhGfUAE0CbvC2g==", "requires": { "@bosonprotocol/chat-sdk": "^1.3.1-alpha.9", - "@bosonprotocol/core-sdk": "^1.33.0-alpha.4", - "@bosonprotocol/ethers-sdk": "^1.12.10-alpha.4", + "@bosonprotocol/core-sdk": "^1.33.0-alpha.11", + "@bosonprotocol/ethers-sdk": "^1.12.10-alpha.11", "@bosonprotocol/ipfs-storage": "^1.10.10", "@davatar/react": "1.11.1", "@ethersproject/units": "5.6.0", @@ -31130,6 +31201,7 @@ "@tippyjs/react": "4.2.6", "@uniswap/sdk-core": "^4.0.7", "dayjs": "1.11.7", + "eth-revert-reason": "^1.0.3", "formik": "2.2.9", "graphql-request": "5.2.0", "lodash.merge": "4.6.2", @@ -40159,6 +40231,66 @@ "xtend": "^4.0.1" } }, + "eth-revert-reason": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/eth-revert-reason/-/eth-revert-reason-1.0.3.tgz", + "integrity": "sha512-HD4pB+s2Jr4cwdywbcTcdLXPwxOZNrnH/luVuploeqEBlCNvFZQGzOwfgOy8WTSTqqEvjZOrIt+cNPt5Zl4pXw==", + "requires": { + "ethers": "^4.0.46" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, + "ethers": { + "version": "4.0.49", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-4.0.49.tgz", + "integrity": "sha512-kPltTvWiyu+OktYy1IStSO16i2e7cS9D9OxZ81q2UUaiNPVrm/RTcbxamCXF9VUSKzJIdJV68EAIhTEVBalRWg==", + "requires": { + "aes-js": "3.0.0", + "bn.js": "^4.11.9", + "elliptic": "6.5.4", + "hash.js": "1.1.3", + "js-sha3": "0.5.7", + "scrypt-js": "2.0.4", + "setimmediate": "1.0.4", + "uuid": "2.0.1", + "xmlhttprequest": "1.8.0" + } + }, + "hash.js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz", + "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", + "requires": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.0" + } + }, + "js-sha3": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.5.7.tgz", + "integrity": "sha512-GII20kjaPX0zJ8wzkTbNDYMY7msuZcTWk8S5UOh6806Jq/wz1J8/bnr8uGU0DAUmYDjj2Mr4X1cW8v/GLYnR+g==" + }, + "scrypt-js": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-2.0.4.tgz", + "integrity": "sha512-4KsaGcPnuhtCZQCxFxN3GVYIhKFPTdLd8PLC552XwbMndtD0cjRFAhDuuydXQ0h08ZfPgzqe6EKHozpuH74iDw==" + }, + "setimmediate": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.4.tgz", + "integrity": "sha512-/TjEmXQVEzdod/FFskf3o7oOAsGhHf2j1dZqRFbDzq4F3mvvxflIIi4Hd3bLQE9y/CpwqfSQam5JakI/mi3Pog==" + }, + "uuid": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.1.tgz", + "integrity": "sha512-nWg9+Oa3qD2CQzHIP4qKUqwNfzKn8P0LtFhotaCTFchsV7ZfDhAybeip/HZVeMIpZi9JgY1E3nUlwaCmZT1sEg==" + } + } + }, "eth-rpc-errors": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-4.0.2.tgz", @@ -51461,6 +51593,11 @@ "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" }, + "xmlhttprequest": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz", + "integrity": "sha512-58Im/U0mlVBLM38NdZjHyhuMtCqa61469k2YP/AaPbvCoV9aQGUpbJBj1QRm2ytRiVQBD/fsw7L2bJGDVQswBA==" + }, "xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", diff --git a/package.json b/package.json index c088eba..463a8a0 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@bosonprotocol/react-kit": "^0.22.0-alpha.7", + "@bosonprotocol/react-kit": "^0.22.0-alpha.14", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0",