From c8a6fc5a4fffb9e3352cb761a6e5851c27918229 Mon Sep 17 00:00:00 2001 From: Chaitanya Potti Date: Tue, 7 May 2024 21:51:53 +0800 Subject: [PATCH] remove ethers and other optimizations --- package-lock.json | 968 +++++++++++++----- package.json | 35 +- src/components/LoginDetails/LoginDetails.vue | 2 +- .../WalletServiceDetails.vue | 2 +- src/store/web3authStore.ts | 38 +- vite.config.ts | 43 +- 6 files changed, 777 insertions(+), 311 deletions(-) diff --git a/package-lock.json b/package-lock.json index e417ced..0478cd3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,34 +10,34 @@ "dependencies": { "@gtm-support/vue-gtm": "^2.2.0", "@mertasan/tailwindcss-variables": "^2.7.0", - "@toruslabs/ethereum-controllers": "^5.6.0", + "@toruslabs/ethereum-controllers": "^5.6.1", "@toruslabs/vue-components": "^7.8.2", "@toruslabs/vue-icons": "^7.6.1", "@vueuse/core": "^10.9.0", "@walletconnect/sign-client": "^2.12.2", - "@web3auth/default-evm-adapter": "^8.4.0", - "@web3auth/ethereum-provider": "^8.4.0", - "@web3auth/modal": "^8.4.0", - "@web3auth/openlogin-adapter": "^8.4.0", - "@web3auth/wallet-services-plugin": "^8.4.0", + "@web3auth/default-evm-adapter": "^8.4.1", + "@web3auth/ethereum-provider": "^8.4.1", + "@web3auth/modal": "^8.4.1", + "@web3auth/openlogin-adapter": "^8.4.1", + "@web3auth/wallet-services-plugin": "^8.4.1", + "bn.js": "^5.2.1", "bowser": "^2.11.0", - "ethers": "^6.12.1", "pinia": "^2.1.7", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "vue": "^3.4.22", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "vue": "^3.4.27", "vue-gtag-next": "^1.14.0", - "vue-router": "^4.3.0" + "vue-router": "^4.3.2" }, "devDependencies": { "@rushstack/eslint-patch": "^1.10.2", "@tsconfig/node18": "^18.2.4", "@types/jsdom": "^21.1.6", - "@types/node": "^20.12.7", + "@types/node": "^20.12.10", "@vitejs/plugin-vue": "^5.0.4", "@vue/eslint-config-prettier": "^9.0.0", "@vue/eslint-config-typescript": "^12.0.0", - "@vue/test-utils": "^2.4.5", + "@vue/test-utils": "^2.4.6", "@vue/tsconfig": "^0.5.1", "autoprefixer": "^10.4.19", "buffer": "^6.0.3", @@ -45,16 +45,18 @@ "eslint": "^8.56.0", "eslint-plugin-vue": "^9.25.0", "jsdom": "^24.0.0", + "lodash-es": "^4.17.21", "npm-run-all": "^4.1.5", "postcss": "^8.4.38", "prettier": "^3.2.5", "process": "^0.11.10", + "source-map-explorer": "^2.5.3", "tailwindcss": "^3.4.3", "typescript": "^5.4.5", - "vite": "^5.2.9", + "vite": "^5.2.11", "vite-tsconfig-paths": "^4.3.2", - "vitest": "^1.5.0", - "vue-tsc": "^2.0.13" + "vitest": "^1.6.0", + "vue-tsc": "^2.0.16" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -83,9 +85,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.4.tgz", - "integrity": "sha512-zTvEBcghmeBma9QIGunWevvBAp4/Qu9Bdq+2k0Ot4fVMD6v3dsC9WOcRSKk7tRRyBM/53yKMJko9xOatGQAwSg==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.5.tgz", + "integrity": "sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg==", "bin": { "parser": "bin/babel-parser.js" }, @@ -811,16 +813,16 @@ } }, "node_modules/@metamask/eth-sig-util": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@metamask/eth-sig-util/-/eth-sig-util-7.0.1.tgz", - "integrity": "sha512-59GSrMyFH2fPfu7nKeIQdZ150zxXNNhAQIUaFRUW+MGtVA4w/ONbiQobcRBLi+jQProfIyss51G8pfLPcQ0ylg==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@metamask/eth-sig-util/-/eth-sig-util-7.0.2.tgz", + "integrity": "sha512-DhTDMNEtED0ihIc4Tysm6qUJTvArCdgSTeeJWdo526W/cAk5mrSAvEYYgv8idAiBumDtcPWGimMTaB7MvY64bg==", "dependencies": { "@ethereumjs/util": "^8.1.0", "@metamask/abi-utils": "^2.0.2", "@metamask/utils": "^8.1.0", + "@scure/base": "~1.1.3", "ethereum-cryptography": "^2.1.2", - "tweetnacl": "^1.0.3", - "tweetnacl-util": "^0.15.1" + "tweetnacl": "^1.0.3" }, "engines": { "node": "^16.20 || ^18.16 || >=20" @@ -1765,9 +1767,9 @@ } }, "node_modules/@toruslabs/constants": { - "version": "13.3.0", - "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-13.3.0.tgz", - "integrity": "sha512-i/fX5DeEUj4EoQmFT8YdO8bwN7Na83zZq6RrSmOpRmVA0F7MMbUsxhsvAp/kOmceg0lU1ZHQTTJRmh7OTExaIw==", + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-13.4.0.tgz", + "integrity": "sha512-CjmnMQ5Oj0bqSBGkhv7Xm3LciGJDHwe4AJ1LF6mijlP+QcCnUM5I6kVp60j7zZ/r0DT7nIEiuHHHczGpCZor0A==", "engines": { "node": ">=18.x", "npm": ">=9.x" @@ -1789,9 +1791,9 @@ } }, "node_modules/@toruslabs/ethereum-controllers": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/@toruslabs/ethereum-controllers/-/ethereum-controllers-5.6.0.tgz", - "integrity": "sha512-pj/xRZGaF1nVRDQPj+qTIKwfVrz3Erkwb6RtmwGcxpggVnLH4sR5uN+kxpAm4jSg4JleA+eSBkpenSw5z578MQ==", + "version": "5.6.1", + "resolved": "https://registry.npmjs.org/@toruslabs/ethereum-controllers/-/ethereum-controllers-5.6.1.tgz", + "integrity": "sha512-zizmB8WvvUe1RcKJzSWwcwQHbwnqGFqjBxpwmzJItpma76IzFbfdpCd5En2I7CCYtz+Gek00nCpDKAhCK1IuDA==", "dependencies": { "@ethereumjs/common": "^4.3.0", "@ethereumjs/tx": "^5.3.0", @@ -2054,9 +2056,9 @@ "integrity": "sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==" }, "node_modules/@types/node": { - "version": "20.12.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz", - "integrity": "sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==", + "version": "20.12.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.10.tgz", + "integrity": "sha512-Eem5pH9pmWBHoGAT8Dr5fdc5rYA+4NAovdM4EktRPVAAiJhmWWfQrA0cFhAbOsQdSfIHjAud6YdkbL69+zSKjw==", "dev": true, "dependencies": { "undici-types": "~5.26.4" @@ -2174,13 +2176,13 @@ } }, "node_modules/@vitest/expect": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.5.0.tgz", - "integrity": "sha512-0pzuCI6KYi2SIC3LQezmxujU9RK/vwC1U9R0rLuGlNGcOuDWxqWKu6nUdFsX9tH1WU0SXtAxToOsEjeUn1s3hA==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.6.0.tgz", + "integrity": "sha512-ixEvFVQjycy/oNgHjqsL6AZCDduC+tflRluaHIzKIsdbzkLn2U/iBnVeJwB6HsIjQBdfMR8Z0tRxKUsvFJEeWQ==", "dev": true, "dependencies": { - "@vitest/spy": "1.5.0", - "@vitest/utils": "1.5.0", + "@vitest/spy": "1.6.0", + "@vitest/utils": "1.6.0", "chai": "^4.3.10" }, "funding": { @@ -2188,12 +2190,12 @@ } }, "node_modules/@vitest/runner": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-1.5.0.tgz", - "integrity": "sha512-7HWwdxXP5yDoe7DTpbif9l6ZmDwCzcSIK38kTSIt6CFEpMjX4EpCgT6wUmS0xTXqMI6E/ONmfgRKmaujpabjZQ==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-1.6.0.tgz", + "integrity": "sha512-P4xgwPjwesuBiHisAVz/LSSZtDjOTPYZVmNAnpHHSR6ONrf8eCJOFRvUwdHn30F5M1fxhqtl7QZQUk2dprIXAg==", "dev": true, "dependencies": { - "@vitest/utils": "1.5.0", + "@vitest/utils": "1.6.0", "p-limit": "^5.0.0", "pathe": "^1.1.1" }, @@ -2229,9 +2231,9 @@ } }, "node_modules/@vitest/snapshot": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-1.5.0.tgz", - "integrity": "sha512-qpv3fSEuNrhAO3FpH6YYRdaECnnRjg9VxbhdtPwPRnzSfHVXnNzzrpX4cJxqiwgRMo7uRMWDFBlsBq4Cr+rO3A==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-1.6.0.tgz", + "integrity": "sha512-+Hx43f8Chus+DCmygqqfetcAZrDJwvTj0ymqjQq4CvmpKFSTVteEOBzCusu1x2tt4OJcvBflyHUE0DZSLgEMtQ==", "dev": true, "dependencies": { "magic-string": "^0.30.5", @@ -2243,9 +2245,9 @@ } }, "node_modules/@vitest/spy": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-1.5.0.tgz", - "integrity": "sha512-vu6vi6ew5N5MMHJjD5PoakMRKYdmIrNJmyfkhRpQt5d9Ewhw9nZ5Aqynbi3N61bvk9UvZ5UysMT6ayIrZ8GA9w==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-1.6.0.tgz", + "integrity": "sha512-leUTap6B/cqi/bQkXUu6bQV5TZPx7pmMBKBQiI0rJA8c3pB56ZsaTbREnF7CJfmvAS4V2cXIBAh/3rVwrrCYgw==", "dev": true, "dependencies": { "tinyspy": "^2.2.0" @@ -2255,9 +2257,9 @@ } }, "node_modules/@vitest/utils": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-1.5.0.tgz", - "integrity": "sha512-BDU0GNL8MWkRkSRdNFvCUCAVOeHaUlVJ9Tx0TYBZyXaaOTmGtUFObzchCivIBrIwKzvZA7A9sCejVhXM2aY98A==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-1.6.0.tgz", + "integrity": "sha512-21cPiuGMoMZwiOHa2i4LXkMkMkCGzA+MVFV70jRwHo95dL4x/ts5GZhML1QWuy7yfp3WzK3lRvZi3JnXTYqrBw==", "dev": true, "dependencies": { "diff-sequences": "^29.6.3", @@ -2270,40 +2272,40 @@ } }, "node_modules/@volar/language-core": { - "version": "2.2.0-alpha.8", - "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.2.0-alpha.8.tgz", - "integrity": "sha512-Ew1Iw7/RIRNuDLn60fWJdOLApAlfTVPxbPiSLzc434PReC9kleYtaa//Wo2WlN1oiRqneW0pWQQV0CwYqaimLQ==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.2.1.tgz", + "integrity": "sha512-iHJAZKcYldZgyS8gx6DfIZApViVBeqbf6iPhqoZpG5A6F4zsZiFldKfwaKaBA3/wnOTWE2i8VUbXywI1WywCPg==", "dev": true, "dependencies": { - "@volar/source-map": "2.2.0-alpha.8" + "@volar/source-map": "2.2.1" } }, "node_modules/@volar/source-map": { - "version": "2.2.0-alpha.8", - "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.2.0-alpha.8.tgz", - "integrity": "sha512-E1ZVmXFJ5DU4fWDcWHzi8OLqqReqIDwhXvIMhVdk6+VipfMVv4SkryXu7/rs4GA/GsebcRyJdaSkKBB3OAkIcA==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.2.1.tgz", + "integrity": "sha512-w1Bgpguhbp7YTr7VUFu6gb4iAZjeEPsOX4zpgiuvlldbzvIWDWy4t0jVifsIsxZ99HAu+c3swiME7wt+GeNqhA==", "dev": true, "dependencies": { "muggle-string": "^0.4.0" } }, "node_modules/@volar/typescript": { - "version": "2.2.0-alpha.8", - "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.2.0-alpha.8.tgz", - "integrity": "sha512-RLbRDI+17CiayHZs9HhSzlH0FhLl/+XK6o2qoiw2o2GGKcyD1aDoY6AcMd44acYncTOrqoTNoY6LuCiRyiJiGg==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.2.1.tgz", + "integrity": "sha512-Z/tqluR7Hz5/5dCqQp7wo9C/6tSv/IYl+tTzgzUt2NjTq95bKSsuO4E+V06D0c+3aP9x5S9jggLqw451hpnc6Q==", "dev": true, "dependencies": { - "@volar/language-core": "2.2.0-alpha.8", + "@volar/language-core": "2.2.1", "path-browserify": "^1.0.1" } }, "node_modules/@vue/compiler-core": { - "version": "3.4.22", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.4.22.tgz", - "integrity": "sha512-FBDRCBE/rFPA8OfTUrARx2c49N7zoImlGT7hsFikv0pZxQlFhffQwewpEXaLynZW0/DspVXmNA+QQ9dXINpWmg==", + "version": "3.4.27", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.4.27.tgz", + "integrity": "sha512-E+RyqY24KnyDXsCuQrI+mlcdW3ALND6U7Gqa/+bVwbcpcR3BRRIckFoz7Qyd4TTlnugtwuI7YgjbvsLmxb+yvg==", "dependencies": { - "@babel/parser": "^7.24.1", - "@vue/shared": "3.4.22", + "@babel/parser": "^7.24.4", + "@vue/shared": "3.4.27", "entities": "^4.5.0", "estree-walker": "^2.0.2", "source-map-js": "^1.2.0" @@ -2315,26 +2317,26 @@ "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" }, "node_modules/@vue/compiler-dom": { - "version": "3.4.22", - "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.4.22.tgz", - "integrity": "sha512-YkAS+jZc6Ip360kT3lZbMQZteiYBbHDSVKr94Jdd8Zjr7VjSkkXKAFFR/FW+2tNtBYXOps6xrWlOquy3GeYB0w==", + "version": "3.4.27", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.4.27.tgz", + "integrity": "sha512-kUTvochG/oVgE1w5ViSr3KUBh9X7CWirebA3bezTbB5ZKBQZwR2Mwj9uoSKRMFcz4gSMzzLXBPD6KpCLb9nvWw==", "dependencies": { - "@vue/compiler-core": "3.4.22", - "@vue/shared": "3.4.22" + "@vue/compiler-core": "3.4.27", + "@vue/shared": "3.4.27" } }, "node_modules/@vue/compiler-sfc": { - "version": "3.4.22", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.4.22.tgz", - "integrity": "sha512-Pncp5Vc8E2Ef1o5uveO8WA1IqM7rt0R1jN8D4qitQYOUxC97iITGYA8oMInQ3UcDS7ip+SegyA2HbAEB4V6NMQ==", - "dependencies": { - "@babel/parser": "^7.24.1", - "@vue/compiler-core": "3.4.22", - "@vue/compiler-dom": "3.4.22", - "@vue/compiler-ssr": "3.4.22", - "@vue/shared": "3.4.22", + "version": "3.4.27", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.4.27.tgz", + "integrity": "sha512-nDwntUEADssW8e0rrmE0+OrONwmRlegDA1pD6QhVeXxjIytV03yDqTey9SBDiALsvAd5U4ZrEKbMyVXhX6mCGA==", + "dependencies": { + "@babel/parser": "^7.24.4", + "@vue/compiler-core": "3.4.27", + "@vue/compiler-dom": "3.4.27", + "@vue/compiler-ssr": "3.4.27", + "@vue/shared": "3.4.27", "estree-walker": "^2.0.2", - "magic-string": "^0.30.8", + "magic-string": "^0.30.10", "postcss": "^8.4.38", "source-map-js": "^1.2.0" } @@ -2345,12 +2347,12 @@ "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" }, "node_modules/@vue/compiler-ssr": { - "version": "3.4.22", - "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.4.22.tgz", - "integrity": "sha512-ycb2sL0SW6AkgVMrvaU/TIAEk7FQWyv/oYya44E/V9xURM+ij9Oev5bVobSS7GLJzkUieWW3SrYcK/PZpb5i4A==", + "version": "3.4.27", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.4.27.tgz", + "integrity": "sha512-CVRzSJIltzMG5FcidsW0jKNQnNRYC8bT21VegyMMtHmhW3UOI7knmUehzswXLrExDLE6lQCZdrhD4ogI7c+vuw==", "dependencies": { - "@vue/compiler-dom": "3.4.22", - "@vue/shared": "3.4.22" + "@vue/compiler-dom": "3.4.27", + "@vue/shared": "3.4.27" } }, "node_modules/@vue/devtools-api": { @@ -2512,12 +2514,12 @@ } }, "node_modules/@vue/language-core": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-2.0.13.tgz", - "integrity": "sha512-oQgM+BM66SU5GKtUMLQSQN0bxHFkFpLSSAiY87wVziPaiNQZuKVDt/3yA7GB9PiQw0y/bTNL0bOc0jM/siYjKg==", + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-2.0.16.tgz", + "integrity": "sha512-Bc2sexRH99pznOph8mLw2BlRZ9edm7tW51kcBXgx8adAoOcZUWJj3UNSsdQ6H9Y8meGz7BoazVrVo/jUukIsPw==", "dev": true, "dependencies": { - "@volar/language-core": "2.2.0-alpha.8", + "@volar/language-core": "~2.2.0", "@vue/compiler-dom": "^3.4.0", "@vue/shared": "^3.4.0", "computeds": "^0.0.1", @@ -2535,53 +2537,53 @@ } }, "node_modules/@vue/reactivity": { - "version": "3.4.22", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.4.22.tgz", - "integrity": "sha512-+golHRRfcGoahBrhoTauFNIIAhxntRV3BI8HHqVvCdsuWivxW1MI0E9AOXVsz4H/ZlWM1ahudWTX6PhUrNR2yQ==", + "version": "3.4.27", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.4.27.tgz", + "integrity": "sha512-kK0g4NknW6JX2yySLpsm2jlunZJl2/RJGZ0H9ddHdfBVHcNzxmQ0sS0b09ipmBoQpY8JM2KmUw+a6sO8Zo+zIA==", "dependencies": { - "@vue/shared": "3.4.22" + "@vue/shared": "3.4.27" } }, "node_modules/@vue/runtime-core": { - "version": "3.4.22", - "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.4.22.tgz", - "integrity": "sha512-cbA8lcL4g1907EdY1a1KmP5IRWfbqjgBRcgJPkF//yn96XSC1/VAJBZiAGLiyw0P77Rw2Ao7d9U51vU1GC6yUQ==", + "version": "3.4.27", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.4.27.tgz", + "integrity": "sha512-7aYA9GEbOOdviqVvcuweTLe5Za4qBZkUY7SvET6vE8kyypxVgaT1ixHLg4urtOlrApdgcdgHoTZCUuTGap/5WA==", "dependencies": { - "@vue/reactivity": "3.4.22", - "@vue/shared": "3.4.22" + "@vue/reactivity": "3.4.27", + "@vue/shared": "3.4.27" } }, "node_modules/@vue/runtime-dom": { - "version": "3.4.22", - "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.4.22.tgz", - "integrity": "sha512-AXxRHrFkLX1y2+70CO2wDKRxW0WZcQKTOXS31AK+jZ1RLPtI6sEHVpYNfyE9WgbgXOqPtX4gfIfuoFYi8iCu2w==", + "version": "3.4.27", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.4.27.tgz", + "integrity": "sha512-ScOmP70/3NPM+TW9hvVAz6VWWtZJqkbdf7w6ySsws+EsqtHvkhxaWLecrTorFxsawelM5Ys9FnDEMt6BPBDS0Q==", "dependencies": { - "@vue/runtime-core": "3.4.22", - "@vue/shared": "3.4.22", + "@vue/runtime-core": "3.4.27", + "@vue/shared": "3.4.27", "csstype": "^3.1.3" } }, "node_modules/@vue/server-renderer": { - "version": "3.4.22", - "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.4.22.tgz", - "integrity": "sha512-okiNxiCOhJlx6IOrTZvhIVwf2UYKay0hnIPqWu4h19bkNv1gmG4Ic6U3zXY287AWF26lQuFMa515Qzc+R0aAYg==", + "version": "3.4.27", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.4.27.tgz", + "integrity": "sha512-dlAMEuvmeA3rJsOMJ2J1kXU7o7pOxgsNHVr9K8hB3ImIkSuBrIdy0vF66h8gf8Tuinf1TK3mPAz2+2sqyf3KzA==", "dependencies": { - "@vue/compiler-ssr": "3.4.22", - "@vue/shared": "3.4.22" + "@vue/compiler-ssr": "3.4.27", + "@vue/shared": "3.4.27" }, "peerDependencies": { - "vue": "3.4.22" + "vue": "3.4.27" } }, "node_modules/@vue/shared": { - "version": "3.4.22", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.4.22.tgz", - "integrity": "sha512-cg7R9XNk4ovV3bKka/1a464O2oY0l5Fyt0rwGR4hSJRPjUJ0WVjrPdsr4W0JbUriwiM8EKcCcCjeKN5pRMs2Zg==" + "version": "3.4.27", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.4.27.tgz", + "integrity": "sha512-DL3NmY2OFlqmYYrzp39yi3LDkKxa5vZVwxWdQ3rG0ekuWscHraeIbnI8t+aZK7qhYqEqWKTUdijadunb9pnrgA==" }, "node_modules/@vue/test-utils": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/@vue/test-utils/-/test-utils-2.4.5.tgz", - "integrity": "sha512-oo2u7vktOyKUked36R93NB7mg2B+N7Plr8lxp2JBGwr18ch6EggFjixSCdIVVLkT6Qr0z359Xvnafc9dcKyDUg==", + "version": "2.4.6", + "resolved": "https://registry.npmjs.org/@vue/test-utils/-/test-utils-2.4.6.tgz", + "integrity": "sha512-FMxEjOpYNYiFe0GkaHsnJPXFHxQ6m4t8vI/ElPGpMWxZKpmRvQ33OIrvRXemy6yha03RxhOlQuy+gZMC3CQSow==", "dev": true, "dependencies": { "js-beautify": "^1.14.9", @@ -2943,11 +2945,11 @@ } }, "node_modules/@web3auth/base": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@web3auth/base/-/base-8.4.0.tgz", - "integrity": "sha512-8oCSkMR7j26GeGXsZAzhL9662QkksItw/lIPZGU7NSWbsuXvrEv2FNXKVmJ0lRsyGARqVXpNK7s6ntq/xhVq/g==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@web3auth/base/-/base-8.4.1.tgz", + "integrity": "sha512-R3VOiG6cwTw4sO+inqFgVy9o8Shjpp4Sf+2GJXEM3yOLrR8+eIM53muIbTEL7luLW/KNOCjiRWdZF+6erYxQww==", "dependencies": { - "@toruslabs/constants": "^13.3.0", + "@toruslabs/constants": "^13.4.0", "@toruslabs/http-helpers": "^6.1.1", "@toruslabs/openlogin": "^8.1.0", "@toruslabs/openlogin-jrpc": "^8.1.1", @@ -2965,12 +2967,12 @@ } }, "node_modules/@web3auth/base-evm-adapter": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@web3auth/base-evm-adapter/-/base-evm-adapter-8.4.0.tgz", - "integrity": "sha512-VGdyu1BowI9mtpoN2TBDuTnOJ480aINtVY6Bwz790gtTmtilnEfLlXCJgkNhtcDqBMp1IkXZiXOQq1ywO0jTmA==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@web3auth/base-evm-adapter/-/base-evm-adapter-8.4.1.tgz", + "integrity": "sha512-vHjIPJdeeZu/BMWUn4dG9hLpTBBAYtg67Hh193Bjf3qiih+P98z7xHXhlhC+2k1RT2Ggsd2V9/L13ts8wfa7rg==", "dependencies": { - "@toruslabs/base-controllers": "^5.5.5", - "@web3auth/base": "^8.4.0" + "@toruslabs/base-controllers": "^5.6.0", + "@web3auth/base": "^8.4.1" }, "engines": { "node": ">=18.x", @@ -2981,14 +2983,14 @@ } }, "node_modules/@web3auth/base-provider": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@web3auth/base-provider/-/base-provider-8.4.0.tgz", - "integrity": "sha512-pBrpn5zfwLLxpuru+jiQ+KM4XRZaHK9uQG+FAZAbmWelfc9Njr3+ZLmrEtX67bbzULDCp/cFEYryYOh6CyOOeQ==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@web3auth/base-provider/-/base-provider-8.4.1.tgz", + "integrity": "sha512-PUh3+ZSalYHlhS8Rjhau1AHqp3qZ7Rx13weYPKY2DYFQzIqefXVCANP9/q4Of3NdQWxU1zQ5Xg5Edasae6Qb9A==", "dependencies": { "@metamask/rpc-errors": "^6.2.1", - "@toruslabs/base-controllers": "^5.5.5", + "@toruslabs/base-controllers": "^5.6.0", "@toruslabs/openlogin-jrpc": "^8.1.1", - "@web3auth/base": "^8.4.0", + "@web3auth/base": "^8.4.1", "json-rpc-random-id": "^1.0.1" }, "engines": { @@ -3000,14 +3002,14 @@ } }, "node_modules/@web3auth/default-evm-adapter": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@web3auth/default-evm-adapter/-/default-evm-adapter-8.4.0.tgz", - "integrity": "sha512-IxGaTBIGuu5tWWt5aZ7SV3NyKqrZFBt366i8ZViZDOMXqcv6GC7apvokUxYzVhSaB2wlXzydLd6oAwTNsT6fEA==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@web3auth/default-evm-adapter/-/default-evm-adapter-8.4.1.tgz", + "integrity": "sha512-ycMklp1qoHqT/iRdW6Adi2s2kiGrwoLut1iPoKw5woe68XZPHjmjUx/20iQKdASp88tvEKGly+OK0ytiNmdCbw==", "dependencies": { - "@web3auth/base": "^8.4.0", - "@web3auth/metamask-adapter": "^8.4.0", - "@web3auth/torus-evm-adapter": "^8.4.0", - "@web3auth/wallet-connect-v2-adapter": "^8.4.0" + "@web3auth/base": "^8.4.1", + "@web3auth/metamask-adapter": "^8.4.1", + "@web3auth/torus-evm-adapter": "^8.4.1", + "@web3auth/wallet-connect-v2-adapter": "^8.4.1" }, "engines": { "node": ">=18.x", @@ -3018,21 +3020,21 @@ } }, "node_modules/@web3auth/ethereum-provider": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@web3auth/ethereum-provider/-/ethereum-provider-8.4.0.tgz", - "integrity": "sha512-n8VA7h4cUQ0Bfrn/L1LAOWS8a06k1tARnzSn51Z8znVbevuQRNvwZmRRb+yRqTc3QTOLgsE01SIEH6BdSWTACg==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@web3auth/ethereum-provider/-/ethereum-provider-8.4.1.tgz", + "integrity": "sha512-Vi6ewaVUZgRHEmyP/ZVC8ZZxC0hHxftRwzcqmrSBqywJhQcWfMB8e4LDd1Kh0TMBsdifEdpztAwqnj6aNSoq8Q==", "dependencies": { "@ethereumjs/common": "^4.3.0", "@ethereumjs/tx": "^5.3.0", "@ethereumjs/util": "^9.0.3", - "@metamask/eth-sig-util": "^7.0.1", + "@metamask/eth-sig-util": "^7.0.2", "@metamask/rpc-errors": "^6.2.1", - "@toruslabs/base-controllers": "^5.5.5", + "@toruslabs/base-controllers": "^5.6.0", "@toruslabs/http-helpers": "^6.1.1", "@toruslabs/openlogin-jrpc": "^8.1.1", "@walletconnect/utils": "^2.12.2", - "@web3auth/base": "^8.4.0", - "@web3auth/base-provider": "^8.4.0", + "@web3auth/base": "^8.4.1", + "@web3auth/base-provider": "^8.4.1", "assert": "^2.1.0", "bignumber.js": "^9.1.2", "bn.js": "^5.2.1", @@ -3047,13 +3049,13 @@ } }, "node_modules/@web3auth/metamask-adapter": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@web3auth/metamask-adapter/-/metamask-adapter-8.4.0.tgz", - "integrity": "sha512-QMgtZcAdm9CP2tz0Ot/qIcfb3ydoGZW+cWAMx/VBhBQnEsaRdj2EJyJWEC4Qu4MASEBPNMl2Nm9lnr4lqZfmPQ==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@web3auth/metamask-adapter/-/metamask-adapter-8.4.1.tgz", + "integrity": "sha512-MsfSk77bocbypLxIe50bIz5vHa0WfOWHXsvkTuk0HZCRupdwtpwOX927gnpZmLgA2CnuvI2PogJmmO+wmwpeIw==", "dependencies": { "@metamask/detect-provider": "^2.0.0", - "@web3auth/base": "^8.4.0", - "@web3auth/base-evm-adapter": "^8.4.0" + "@web3auth/base": "^8.4.1", + "@web3auth/base-evm-adapter": "^8.4.1" }, "engines": { "node": ">=18.x", @@ -3064,15 +3066,15 @@ } }, "node_modules/@web3auth/modal": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@web3auth/modal/-/modal-8.4.0.tgz", - "integrity": "sha512-a8FtdFb65N3ABYYoVZCqzYcsy3kc2b0TouFPkS9V0IrmHZeLnZ/6+ePVw5Oc9mYFGtpdruPmP1Z14+o3D/iTlQ==", - "dependencies": { - "@web3auth/base": "^8.4.0", - "@web3auth/base-provider": "^8.4.0", - "@web3auth/no-modal": "^8.4.0", - "@web3auth/openlogin-adapter": "^8.4.0", - "@web3auth/ui": "^8.4.0", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@web3auth/modal/-/modal-8.4.1.tgz", + "integrity": "sha512-8tSQJyucjBnpGUFG5IAr4aUPhxbKdKHQSfeecK0urMvI34xq3IZhW3QqPRU6BW3b5AEl4cb2YdMxUymqvcZacw==", + "dependencies": { + "@web3auth/base": "^8.4.1", + "@web3auth/base-provider": "^8.4.1", + "@web3auth/no-modal": "^8.4.1", + "@web3auth/openlogin-adapter": "^8.4.1", + "@web3auth/ui": "^8.4.1", "lodash.clonedeep": "^4.5.0", "lodash.merge": "^4.6.2" }, @@ -3091,15 +3093,15 @@ } }, "node_modules/@web3auth/no-modal": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@web3auth/no-modal/-/no-modal-8.4.0.tgz", - "integrity": "sha512-79UccWtC48QffFNu23pWHz07d3pGJc2Ts+A3o40Q1ojQWW+uiEwjXt+xI1rJcyRnEVnYRVf12NpCDXkBd6CipA==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@web3auth/no-modal/-/no-modal-8.4.1.tgz", + "integrity": "sha512-wHeiTglsCyDVZRc8Jg0HKcgDxKda5ig/9mx61YGA3dFok7B/4TTjR9BFpUfykcCTZOFmW7lWMemOWzjKRJpz8g==", "dependencies": { "@toruslabs/openlogin": "^8.1.0", "@toruslabs/openlogin-jrpc": "^8.1.1", "@toruslabs/openlogin-utils": "^8.1.0", - "@web3auth/base": "^8.4.0", - "@web3auth/base-provider": "^8.4.0", + "@web3auth/base": "^8.4.1", + "@web3auth/base-provider": "^8.4.1", "lodash.clonedeep": "^4.5.0", "lodash.merge": "^4.6.2" }, @@ -3122,14 +3124,14 @@ } }, "node_modules/@web3auth/openlogin-adapter": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@web3auth/openlogin-adapter/-/openlogin-adapter-8.4.0.tgz", - "integrity": "sha512-ocadILNQOxnt6OzqKTiOjPEUpgS2B6p5d+081LvDXXPc3HdxGITeGFmPuAJeNw/lUzPjZWB7iUkjPJn7L+8R8w==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@web3auth/openlogin-adapter/-/openlogin-adapter-8.4.1.tgz", + "integrity": "sha512-RMVWZZyLUMhKI6IdyEs3mwDFTs9j872RqUCtHgtERZnH6+SHCPq3tY2kDjUnNtubUHKzQO0CF4Q3fadkze8chA==", "dependencies": { "@toruslabs/openlogin": "^8.1.0", "@toruslabs/openlogin-utils": "^8.1.0", - "@web3auth/base": "^8.4.0", - "@web3auth/base-provider": "^8.4.0", + "@web3auth/base": "^8.4.1", + "@web3auth/base-provider": "^8.4.1", "lodash.merge": "^4.6.2" }, "engines": { @@ -3141,13 +3143,13 @@ } }, "node_modules/@web3auth/torus-evm-adapter": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@web3auth/torus-evm-adapter/-/torus-evm-adapter-8.4.0.tgz", - "integrity": "sha512-L4yZVSNTB49xW9+AqA4UrqO0nTFoS3Yy0x8/pz/Mcq5j+ujm0AoXHMvvJJMF0V0NwN81Z3yx+05J/JwW5A5Znw==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@web3auth/torus-evm-adapter/-/torus-evm-adapter-8.4.1.tgz", + "integrity": "sha512-M+ibiiY7drC/ABHEt1kan7WzESWbxQLmYIzOnfFualYon6YQpSMPk/nVVzYXMCEKojM8pNG1W71f94N2ViHFVg==", "dependencies": { "@toruslabs/torus-embed": "^5.0.0", - "@web3auth/base": "^8.4.0", - "@web3auth/base-evm-adapter": "^8.4.0" + "@web3auth/base": "^8.4.1", + "@web3auth/base-evm-adapter": "^8.4.1" }, "engines": { "node": ">=18.x", @@ -3158,19 +3160,19 @@ } }, "node_modules/@web3auth/ui": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@web3auth/ui/-/ui-8.4.0.tgz", - "integrity": "sha512-w4lOMGbZH3vjHAnfS2GPDw1v4dH8kZy6DDcYW+7keSqmh7bop4Cm0CHsyVGZFjOSo23o0AxE9a831cQebyF16g==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@web3auth/ui/-/ui-8.4.1.tgz", + "integrity": "sha512-mB3KZQRrcKXVQmJ8ZVZtt7HhqGHMJINQRUYffudKu6w3ok5S2QEc1sD69jVPjhDmvwv0bJyPHH7YGk5s4M0cgQ==", "dependencies": { "@toruslabs/http-helpers": "^6.1.1", "@toruslabs/openlogin": "^8.1.0", "@toruslabs/openlogin-jrpc": "^8.1.1", "@toruslabs/openlogin-utils": "^8.1.0", - "@web3auth/base": "^8.4.0", + "@web3auth/base": "^8.4.1", "bowser": "^2.11.0", "classnames": "^2.5.1", "copy-to-clipboard": "^3.3.3", - "i18next": "^23.11.2", + "i18next": "^23.11.3", "lodash.clonedeep": "^4.5.0", "lodash.merge": "^4.6.2", "react-i18next": "^14.1.1", @@ -3187,13 +3189,13 @@ } }, "node_modules/@web3auth/wallet-connect-v2-adapter": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@web3auth/wallet-connect-v2-adapter/-/wallet-connect-v2-adapter-8.4.0.tgz", - "integrity": "sha512-gYYtPxX1BQJRP499ooBKQxnAtiPtqwPKEc7U+iZvAp05ojFP+u8+Ajohmpkq9kY7bIEnT1aLEZWoXg5HrPVMYw==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@web3auth/wallet-connect-v2-adapter/-/wallet-connect-v2-adapter-8.4.1.tgz", + "integrity": "sha512-/JjMOBFcLEYjEshZ/mgw97cgfePLjV+mHYBLJx2VQ5WX80vKJl0zTFc4+IKrJNBf8oVKaOgZv/j6Rq0b2xiDmw==", "dependencies": { - "@web3auth/base": "^8.4.0", - "@web3auth/base-evm-adapter": "^8.4.0", - "@web3auth/ethereum-provider": "^8.4.0", + "@web3auth/base": "^8.4.1", + "@web3auth/base-evm-adapter": "^8.4.1", + "@web3auth/ethereum-provider": "^8.4.1", "lodash.merge": "^4.6.2" }, "engines": { @@ -3208,15 +3210,15 @@ } }, "node_modules/@web3auth/wallet-services-plugin": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/@web3auth/wallet-services-plugin/-/wallet-services-plugin-8.4.0.tgz", - "integrity": "sha512-GL/S5U0EhsORPykNVkAqP8e+GYg/deWarVnKt8jxPuYPBjqOH4X6vxK7E45Dz89YU7mFuXpEYI1lD31NqIvLSQ==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@web3auth/wallet-services-plugin/-/wallet-services-plugin-8.4.1.tgz", + "integrity": "sha512-+RxsY0WRrA1E0gEoH91Y7KP3F8FcGqbC1ZHCRBZGrlc4Vsi91rKyp0vhQ/YxL80UFT99ijNegN+6MW1IDuJZWQ==", "dependencies": { - "@toruslabs/ethereum-controllers": "^5.5.7", + "@toruslabs/ethereum-controllers": "^5.6.1", "@toruslabs/openlogin-jrpc": "^8.1.1", - "@web3auth/base": "^8.4.0", - "@web3auth/no-modal": "^8.4.0", - "@web3auth/ws-embed": "^1.2.0", + "@web3auth/base": "^8.4.1", + "@web3auth/no-modal": "^8.4.1", + "@web3auth/ws-embed": "^2.0.0", "loglevel": "^1.9.1" }, "engines": { @@ -3229,13 +3231,13 @@ } }, "node_modules/@web3auth/ws-embed": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@web3auth/ws-embed/-/ws-embed-1.2.0.tgz", - "integrity": "sha512-8VuFCfklroBEwZelRZfyO/kdB9xjCr2x7jOeTFfjgZA0fX10/z9XzS4FUgjFn4TqL6LwoNLkybqHNoQVza4VPg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@web3auth/ws-embed/-/ws-embed-2.0.0.tgz", + "integrity": "sha512-H48vik0JSOJt9uyrxCNr2j9r+w20r1x8uJ03UaZ8xqOiAOpO9LMQzwHFmvDsSzUWIuPq+K2etoQZ8pZPCelldA==", "dependencies": { "@metamask/rpc-errors": "^6.2.1", - "@toruslabs/base-controllers": "^5.5.5", - "@toruslabs/ethereum-controllers": "^5.5.5", + "@toruslabs/base-controllers": "^5.6.0", + "@toruslabs/ethereum-controllers": "^5.6.1", "@toruslabs/openlogin-jrpc": "^8.1.1", "@toruslabs/openlogin-utils": "^8.1.0", "fast-deep-equal": "^3.1.3", @@ -3451,6 +3453,12 @@ "node": "*" } }, + "node_modules/async": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", + "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==", + "dev": true + }, "node_modules/async-mutex": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.5.0.tgz", @@ -3647,6 +3655,18 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, + "node_modules/btoa": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz", + "integrity": "sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g==", + "dev": true, + "bin": { + "btoa": "bin/btoa.js" + }, + "engines": { + "node": ">= 0.4.0" + } + }, "node_modules/buffer": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", @@ -3842,6 +3862,54 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/cliui/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/cliui/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/cluster-key-slot": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", @@ -3938,6 +4006,12 @@ "node": "^14.18.0 || >=16.10.0" } }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, "node_modules/cookie-es": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-1.0.0.tgz", @@ -4228,6 +4302,12 @@ "node": ">=6.0.0" } }, + "node_modules/duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", + "dev": true + }, "node_modules/duplexify": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.2.tgz", @@ -4290,6 +4370,21 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/ejs": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", + "dev": true, + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/electron-to-chromium": { "version": "1.4.679", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.679.tgz", @@ -4544,6 +4639,12 @@ "node": ">=6" } }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "dev": true + }, "node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -5013,6 +5114,27 @@ "node": "^10.12.0 || >=12.0.0" } }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dev": true, + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -5171,6 +5293,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, "node_modules/get-func-name": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", @@ -5342,6 +5473,21 @@ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, + "node_modules/gzip-size": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", + "dev": true, + "dependencies": { + "duplexer": "^0.1.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/h3": { "version": "1.10.2", "resolved": "https://registry.npmjs.org/h3/-/h3-1.10.2.tgz", @@ -6101,6 +6247,46 @@ "@pkgjs/parseargs": "^0.11.0" } }, + "node_modules/jake": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.1.tgz", + "integrity": "sha512-61btcOHNnLnsOdtLgA5efqQWjnSi/vow5HbI7HMdKKWqvrKR1bLK3BPlJn9gcSaP2ewuamUSMB5XEy76KUIS2w==", + "dev": true, + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jake/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/jake/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/jiti": { "version": "1.21.0", "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz", @@ -6421,6 +6607,12 @@ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, + "node_modules/lodash-es": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", + "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", + "dev": true + }, "node_modules/lodash.clonedeep": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", @@ -6487,14 +6679,11 @@ } }, "node_modules/magic-string": { - "version": "0.30.9", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.9.tgz", - "integrity": "sha512-S1+hd+dIrC8EZqKyT9DstTH/0Z+f76kmmvZnkfQVmOpDEF9iVgdYif3Q/pIWHmCoo59bQVGW0kVL3e2nl+9+Sw==", + "version": "0.30.10", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.10.tgz", + "integrity": "sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==", "dependencies": { "@jridgewell/sourcemap-codec": "^1.4.15" - }, - "engines": { - "node": ">=12" } }, "node_modules/memorystream": { @@ -6603,6 +6792,15 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/minipass": { "version": "7.0.4", "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", @@ -6611,6 +6809,18 @@ "node": ">=16 || 14 >=14.17" } }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, "node_modules/mlly": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.6.0.tgz", @@ -7144,6 +7354,49 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/open": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", + "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0", + "is-wsl": "^2.1.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open/node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open/node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/optionator": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", @@ -7763,9 +8016,9 @@ "integrity": "sha512-pNsHDxbGORSvuSScqNJ+3Km6QAVqk8CfsCBIEoDgpqLrkD2f3QM4I7d1ozJJ172OmIcoUcerZaNWqtLkRXTV3A==" }, "node_modules/react": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", - "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", "dependencies": { "loose-envify": "^1.1.0" }, @@ -7774,15 +8027,15 @@ } }, "node_modules/react-dom": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", - "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", "dependencies": { "loose-envify": "^1.1.0", - "scheduler": "^0.23.0" + "scheduler": "^0.23.2" }, "peerDependencies": { - "react": "^18.2.0" + "react": "^18.3.1" } }, "node_modules/react-i18next": { @@ -7807,9 +8060,9 @@ } }, "node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", "dev": true }, "node_modules/react-qrcode-logo": { @@ -7943,6 +8196,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", @@ -8184,9 +8446,9 @@ } }, "node_modules/scheduler": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", - "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", "dependencies": { "loose-envify": "^1.1.0" } @@ -8366,6 +8628,84 @@ "atomic-sleep": "^1.0.0" } }, + "node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/source-map-explorer": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/source-map-explorer/-/source-map-explorer-2.5.3.tgz", + "integrity": "sha512-qfUGs7UHsOBE5p/lGfQdaAj/5U/GWYBw2imEpD6UQNkqElYonkow8t+HBL1qqIl3CuGZx7n8/CQo4x1HwSHhsg==", + "dev": true, + "dependencies": { + "btoa": "^1.2.1", + "chalk": "^4.1.0", + "convert-source-map": "^1.7.0", + "ejs": "^3.1.5", + "escape-html": "^1.0.3", + "glob": "^7.1.6", + "gzip-size": "^6.0.0", + "lodash": "^4.17.20", + "open": "^7.3.1", + "source-map": "^0.7.4", + "temp": "^0.9.4", + "yargs": "^16.2.0" + }, + "bin": { + "sme": "bin/cli.js", + "source-map-explorer": "bin/cli.js" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/source-map-explorer/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/source-map-explorer/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/source-map-explorer/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/source-map-js": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", @@ -8789,6 +9129,73 @@ "node": ">=14.0.0" } }, + "node_modules/temp": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/temp/-/temp-0.9.4.tgz", + "integrity": "sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==", + "dev": true, + "dependencies": { + "mkdirp": "^0.5.1", + "rimraf": "~2.6.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/temp/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/temp/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/temp/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/temp/node_modules/rimraf": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", @@ -8944,11 +9351,6 @@ "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==" }, - "node_modules/tweetnacl-util": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/tweetnacl-util/-/tweetnacl-util-0.15.1.tgz", - "integrity": "sha512-RKJBIj8lySrShN4w6i/BonWp2Z/uxwC3h4y7xsRrpP59ZboCd0GpEVsOnMDYLMmKBpYhb5TgHzZXy7wTfYFBRw==" - }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -9305,9 +9707,9 @@ } }, "node_modules/vite": { - "version": "5.2.9", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.2.9.tgz", - "integrity": "sha512-uOQWfuZBlc6Y3W/DTuQ1Sr+oIXWvqljLvS881SVmAj00d5RdgShLcuXWxseWPd4HXwiYBFW/vXHfKFeqj9uQnw==", + "version": "5.2.11", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.2.11.tgz", + "integrity": "sha512-HndV31LWW05i1BLPMUCE1B9E9GFbOu1MbenhS58FuK6owSO5qHm7GiCotrNY1YE5rMeQSFBGmT5ZaLEjFizgiQ==", "dev": true, "dependencies": { "esbuild": "^0.20.1", @@ -9360,9 +9762,9 @@ } }, "node_modules/vite-node": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.5.0.tgz", - "integrity": "sha512-tV8h6gMj6vPzVCa7l+VGq9lwoJjW8Y79vst8QZZGiuRAfijU+EEWuc0kFpmndQrWhMMhet1jdSF+40KSZUqIIw==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.6.0.tgz", + "integrity": "sha512-de6HJgzC+TFzOu0NTC4RAIsyf/DY/ibWDYQUcuEA84EMHhcefTUGkjFHKKEJhQN4A+6I0u++kr3l36ZF2d7XRw==", "dev": true, "dependencies": { "cac": "^6.7.14", @@ -9401,16 +9803,16 @@ } }, "node_modules/vitest": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-1.5.0.tgz", - "integrity": "sha512-d8UKgR0m2kjdxDWX6911uwxout6GHS0XaGH1cksSIVVG8kRlE7G7aBw7myKQCvDI5dT4j7ZMa+l706BIORMDLw==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-1.6.0.tgz", + "integrity": "sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==", "dev": true, "dependencies": { - "@vitest/expect": "1.5.0", - "@vitest/runner": "1.5.0", - "@vitest/snapshot": "1.5.0", - "@vitest/spy": "1.5.0", - "@vitest/utils": "1.5.0", + "@vitest/expect": "1.6.0", + "@vitest/runner": "1.6.0", + "@vitest/snapshot": "1.6.0", + "@vitest/spy": "1.6.0", + "@vitest/utils": "1.6.0", "acorn-walk": "^8.3.2", "chai": "^4.3.10", "debug": "^4.3.4", @@ -9424,7 +9826,7 @@ "tinybench": "^2.5.1", "tinypool": "^0.8.3", "vite": "^5.0.0", - "vite-node": "1.5.0", + "vite-node": "1.6.0", "why-is-node-running": "^2.2.2" }, "bin": { @@ -9439,8 +9841,8 @@ "peerDependencies": { "@edge-runtime/vm": "*", "@types/node": "^18.0.0 || >=20.0.0", - "@vitest/browser": "1.5.0", - "@vitest/ui": "1.5.0", + "@vitest/browser": "1.6.0", + "@vitest/ui": "1.6.0", "happy-dom": "*", "jsdom": "*" }, @@ -9474,15 +9876,15 @@ } }, "node_modules/vue": { - "version": "3.4.22", - "resolved": "https://registry.npmjs.org/vue/-/vue-3.4.22.tgz", - "integrity": "sha512-CIx7NiP+n5WHBCG/fDNaUPP4qbQ5CIa8XIHZE3HpfS/rb2vmSIsp74BxsZyrrGKF0vHW3GoToqP3l0hzrMTecw==", + "version": "3.4.27", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.4.27.tgz", + "integrity": "sha512-8s/56uK6r01r1icG/aEOHqyMVxd1bkYcSe9j8HcKtr/xTOFWvnzIVTehNW+5Yt89f+DLBe4A569pnZLS5HzAMA==", "dependencies": { - "@vue/compiler-dom": "3.4.22", - "@vue/compiler-sfc": "3.4.22", - "@vue/runtime-dom": "3.4.22", - "@vue/server-renderer": "3.4.22", - "@vue/shared": "3.4.22" + "@vue/compiler-dom": "3.4.27", + "@vue/compiler-sfc": "3.4.27", + "@vue/runtime-dom": "3.4.27", + "@vue/server-renderer": "3.4.27", + "@vue/shared": "3.4.27" }, "peerDependencies": { "typescript": "*" @@ -9532,9 +9934,9 @@ } }, "node_modules/vue-router": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.3.0.tgz", - "integrity": "sha512-dqUcs8tUeG+ssgWhcPbjHvazML16Oga5w34uCUmsk7i0BcnskoLGwjpa15fqMr2Fa5JgVBrdL2MEgqz6XZ/6IQ==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.3.2.tgz", + "integrity": "sha512-hKQJ1vDAZ5LVkKEnHhmm1f9pMiWIBNGF5AwU67PdH7TyXCj/a4hTccuUuYCAMgJK6rO/NVYtQIEN3yL8CECa7Q==", "dependencies": { "@vue/devtools-api": "^6.5.1" }, @@ -9556,13 +9958,13 @@ } }, "node_modules/vue-tsc": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-2.0.13.tgz", - "integrity": "sha512-a3nL3FvguCWVJUQW/jFrUxdeUtiEkbZoQjidqvMeBK//tuE2w6NWQAbdrEpY2+6nSa4kZoKZp8TZUMtHpjt4mQ==", + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-2.0.16.tgz", + "integrity": "sha512-/gHAWJa216PeEhfxtAToIbxdWgw01wuQzo48ZUqMYVEyNqDp+OYV9xMO5HaPS2P3Ls0+EsjguMZLY4cGobX4Ew==", "dev": true, "dependencies": { - "@volar/typescript": "2.2.0-alpha.8", - "@vue/language-core": "2.0.13", + "@volar/typescript": "~2.2.0", + "@vue/language-core": "2.0.16", "semver": "^7.5.4" }, "bin": { @@ -9835,6 +10237,15 @@ "node": ">=0.4.0" } }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -9848,6 +10259,53 @@ "node": ">= 14" } }, + "node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/yargs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/package.json b/package.json index f97c0e3..9b3f294 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.0.0", "private": true, "scripts": { + "analyze": "source-map-explorer dist/assets/*.js dist/assets/*.map --no-border-checks", "dev": "vite", "build": "run-p type-check build-only", "preview": "vite preview", @@ -15,34 +16,34 @@ "dependencies": { "@gtm-support/vue-gtm": "^2.2.0", "@mertasan/tailwindcss-variables": "^2.7.0", - "@toruslabs/ethereum-controllers": "^5.6.0", + "@toruslabs/ethereum-controllers": "^5.6.1", "@toruslabs/vue-components": "^7.8.2", "@toruslabs/vue-icons": "^7.6.1", "@vueuse/core": "^10.9.0", "@walletconnect/sign-client": "^2.12.2", - "@web3auth/default-evm-adapter": "^8.4.0", - "@web3auth/ethereum-provider": "^8.4.0", - "@web3auth/modal": "^8.4.0", - "@web3auth/openlogin-adapter": "^8.4.0", - "@web3auth/wallet-services-plugin": "^8.4.0", + "@web3auth/default-evm-adapter": "^8.4.1", + "@web3auth/ethereum-provider": "^8.4.1", + "@web3auth/modal": "^8.4.1", + "@web3auth/openlogin-adapter": "^8.4.1", + "@web3auth/wallet-services-plugin": "^8.4.1", + "bn.js": "^5.2.1", "bowser": "^2.11.0", - "ethers": "^6.12.1", "pinia": "^2.1.7", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "vue": "^3.4.22", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "vue": "^3.4.27", "vue-gtag-next": "^1.14.0", - "vue-router": "^4.3.0" + "vue-router": "^4.3.2" }, "devDependencies": { "@rushstack/eslint-patch": "^1.10.2", "@tsconfig/node18": "^18.2.4", "@types/jsdom": "^21.1.6", - "@types/node": "^20.12.7", + "@types/node": "^20.12.10", "@vitejs/plugin-vue": "^5.0.4", "@vue/eslint-config-prettier": "^9.0.0", "@vue/eslint-config-typescript": "^12.0.0", - "@vue/test-utils": "^2.4.5", + "@vue/test-utils": "^2.4.6", "@vue/tsconfig": "^0.5.1", "autoprefixer": "^10.4.19", "buffer": "^6.0.3", @@ -50,15 +51,17 @@ "eslint": "^8.56.0", "eslint-plugin-vue": "^9.25.0", "jsdom": "^24.0.0", + "lodash-es": "^4.17.21", "npm-run-all": "^4.1.5", "postcss": "^8.4.38", "prettier": "^3.2.5", "process": "^0.11.10", + "source-map-explorer": "^2.5.3", "tailwindcss": "^3.4.3", "typescript": "^5.4.5", - "vite": "^5.2.9", + "vite": "^5.2.11", "vite-tsconfig-paths": "^4.3.2", - "vitest": "^1.5.0", - "vue-tsc": "^2.0.13" + "vitest": "^1.6.0", + "vue-tsc": "^2.0.16" } } diff --git a/src/components/LoginDetails/LoginDetails.vue b/src/components/LoginDetails/LoginDetails.vue index 67eb607..9bd33f5 100644 --- a/src/components/LoginDetails/LoginDetails.vue +++ b/src/components/LoginDetails/LoginDetails.vue @@ -28,7 +28,7 @@ onMounted(async () => { browserName.value = getBrowserName() osName.value = getOSName() - account.value = web3Auth.accounts[0].address + account.value = web3Auth.accounts[0] }) const handleConsoleBtn = async () => { diff --git a/src/components/WalletServiceDetails/WalletServiceDetails.vue b/src/components/WalletServiceDetails/WalletServiceDetails.vue index 98ae9ca..5401de4 100644 --- a/src/components/WalletServiceDetails/WalletServiceDetails.vue +++ b/src/components/WalletServiceDetails/WalletServiceDetails.vue @@ -31,7 +31,7 @@ async function openWalletSignMessage() { return } - signedMessage.value = await web3Auth.signedMessage() + signedMessage.value = (await web3Auth.signedMessage()) as string } diff --git a/src/store/web3authStore.ts b/src/store/web3authStore.ts index debe766..67d85a3 100644 --- a/src/store/web3authStore.ts +++ b/src/store/web3authStore.ts @@ -1,24 +1,27 @@ -import { POLYGON_AMOY_CHAIN_ID, SUPPORTED_NETWORKS } from '@toruslabs/ethereum-controllers' +import { + METHOD_TYPES, + POLYGON_AMOY_CHAIN_ID, + SUPPORTED_NETWORKS +} from '@toruslabs/ethereum-controllers' +import { SafeEventEmitterProvider } from '@toruslabs/openlogin-jrpc' import { getDefaultExternalAdapters } from '@web3auth/default-evm-adapter' import { EthereumPrivateKeyProvider } from '@web3auth/ethereum-provider' import { Web3Auth, type Web3AuthOptions } from '@web3auth/modal' import { defineStore } from 'pinia' import { ref, shallowRef, triggerRef, computed } from 'vue' -import { BrowserProvider, JsonRpcSigner } from 'ethers' import { WalletServicesPlugin } from '@web3auth/wallet-services-plugin' -import { OpenloginAdapter, type OpenloginUserInfo } from '@web3auth/openlogin-adapter' +import { type OpenloginUserInfo } from '@web3auth/openlogin-adapter' import { useRouter } from 'vue-router' import { ROUTES } from '@/constants/common' -import { WALLET_ADAPTERS } from '@web3auth/base' export const useWeb3authStore = defineStore('web3auth', () => { const web3Auth = shallowRef(null) - const provider = shallowRef(null) + const provider = shallowRef(null) const walletServicesPlugin = shallowRef(null) const router = useRouter() - const accounts = ref([]) + const accounts = ref([]) const userInfo = ref | null>(null) async function initializeWeb3Auth() { @@ -67,11 +70,13 @@ export const useWeb3authStore = defineStore('web3auth', () => { await web3Auth.value.initModal() - provider.value = new BrowserProvider(web3Auth.value?.provider!) + provider.value = web3Auth.value?.provider! console.log('logging', web3Auth.value?.connectedAdapterName) triggerRef(web3Auth) if (web3Auth.value?.connected) { - accounts.value = provider.value ? await provider.value?.listAccounts() : [] + accounts.value = provider.value + ? ((await provider.value?.request({ method: 'eth_accounts' })) as string[]) + : [] userInfo.value = await web3Auth.value.getUserInfo() router.push({ name: ROUTES.WELCOME }) } @@ -84,7 +89,9 @@ export const useWeb3authStore = defineStore('web3auth', () => { // because it's shallow ref, have to trigger again triggerRef(web3Auth) if (web3Auth.value?.connected) { - accounts.value = provider.value ? await provider.value?.listAccounts() : [] + accounts.value = provider.value + ? ((await provider.value?.request({ method: 'eth_accounts' })) as string[]) + : [] userInfo.value = await web3Auth.value.getUserInfo() router.push({ name: ROUTES.WELCOME }) } @@ -98,8 +105,11 @@ export const useWeb3authStore = defineStore('web3auth', () => { async function signedMessage() { const message = 'Example `personal_sign` message' - const from = accounts.value[0].address - const signedMessage = await provider.value?.send('personal_sign', [message, from]) + const from = accounts.value[0] + const signedMessage = await provider.value?.request<[string, string], string>({ + method: 'personal_sign', + params: [message, from] + }) return signedMessage } @@ -117,11 +127,7 @@ export const useWeb3authStore = defineStore('web3auth', () => { } async function enableMfa() { - if (web3Auth.value?.connectedAdapterName === WALLET_ADAPTERS.OPENLOGIN) { - return ( - web3Auth.value?.walletAdapters[WALLET_ADAPTERS.OPENLOGIN] as OpenloginAdapter - ).openloginInstance?.enableMFA({}) - } + return web3Auth.value?.enableMFA() } const isLoggedIn = computed(() => { diff --git a/vite.config.ts b/vite.config.ts index 091e8a4..0b3f86f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,35 +1,34 @@ /* eslint-disable no-console */ -import { fileURLToPath } from "node:url"; -import vue from "@vitejs/plugin-vue"; -import { defineConfig, loadEnv } from "vite"; -import viteTsconfigPaths from "vite-tsconfig-paths"; +import { fileURLToPath } from 'node:url' +import vue from '@vitejs/plugin-vue' +import { defineConfig, loadEnv } from 'vite' +import viteTsconfigPaths from 'vite-tsconfig-paths' +import { resolve } from 'node:path' -const { VITE_APP_INFURA_PROJECT_KEY } = loadEnv("development", process.cwd()); -console.log("VITE_APP_INFURA_PROJECT_KEY", VITE_APP_INFURA_PROJECT_KEY); -process.env.VITE_APP_INFURA_PROJECT_KEY = VITE_APP_INFURA_PROJECT_KEY; +const { VITE_APP_INFURA_PROJECT_KEY } = loadEnv('development', process.cwd()) +console.log('VITE_APP_INFURA_PROJECT_KEY', VITE_APP_INFURA_PROJECT_KEY) +process.env.VITE_APP_INFURA_PROJECT_KEY = VITE_APP_INFURA_PROJECT_KEY // TODO: code split and load controllers after login // https://vitejs.dev/config/ -export default defineConfig ({ +export default defineConfig({ server: { - port: 4050, + port: 4050 }, build: { - sourcemap: false, - // sourcemap: true, + // sourcemap: false + sourcemap: true }, define: { __SENTRY_DEBUG__: false, - "process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV), - "process.env.VITE_APP_INFURA_PROJECT_KEY": JSON.stringify(VITE_APP_INFURA_PROJECT_KEY), + 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV), + 'process.env.VITE_APP_INFURA_PROJECT_KEY': JSON.stringify(VITE_APP_INFURA_PROJECT_KEY) }, - plugins: [ - vue(), - viteTsconfigPaths(), - ], + plugins: [vue(), viteTsconfigPaths()], resolve: { alias: { - "@": fileURLToPath(new URL("./src", import.meta.url)), - }, - }, -}); - + '@': fileURLToPath(new URL('./src', import.meta.url)), + 'bn.js': resolve('./node_modules/bn.js'), + lodash: resolve('./node_modules/lodash-es') + } + } +})