diff --git a/node-sdk/node-backend-example/package-lock.json b/node-sdk/node-backend-example/package-lock.json index 95898483..3a2033e9 100644 --- a/node-sdk/node-backend-example/package-lock.json +++ b/node-sdk/node-backend-example/package-lock.json @@ -10,7 +10,7 @@ "license": "ISC", "dependencies": { "@web3auth/ethereum-provider": "^7.0.4", - "@web3auth/node-sdk": "^2.0.1", + "@web3auth/node-sdk": "^3.0.0", "fs": "^0.0.1-security", "jsonwebtoken": "^9.0.2" } @@ -496,88 +496,42 @@ } }, "node_modules/@toruslabs/fetch-node-details": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/fetch-node-details/-/fetch-node-details-10.0.0.tgz", - "integrity": "sha512-Nf5sRHtU51EmGQjrYk2IpSkROqw0P/i5UUY2qOj16iToiBpgZAU1QR5LbQbaBguQpGyXB6FbNqeXttaXCms2+g==", + "version": "13.0.2", + "resolved": "https://registry.npmjs.org/@toruslabs/fetch-node-details/-/fetch-node-details-13.0.2.tgz", + "integrity": "sha512-0WXglIa2qDeerlMJkEJeEur9TvIPODUT7QqRgwSl/p0EOrpWc4p777szTofdn6cXHzVqIx90TbyOsOPs7bbViA==", "dependencies": { - "@toruslabs/constants": "^10.0.0", - "@toruslabs/fnd-base": "^10.0.0", - "@toruslabs/http-helpers": "^4.0.0", + "@toruslabs/constants": "^13.0.2", + "@toruslabs/fnd-base": "^13.0.2", + "@toruslabs/http-helpers": "^5.0.0", "loglevel": "^1.8.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@toruslabs/fetch-node-details/node_modules/@toruslabs/constants": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-10.0.0.tgz", - "integrity": "sha512-a5HJ8R/Z7cstIqY8qsXZvSVq6zlVSpkxTIOxiU808Qc8kehi9Uzg2B6HCaXSlPFhEKIhOwvEXDltfNkTtCdy9g==", - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@toruslabs/fetch-node-details/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", - "dependencies": { - "lodash.merge": "^4.6.2", - "loglevel": "^1.8.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } - } - }, "node_modules/@toruslabs/ffjavascript": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/ffjavascript/-/ffjavascript-1.0.0.tgz", - "integrity": "sha512-oOwRG1ZjOmCxmg8kz1HnLML3RB4fNbSaxKuTjFC3Mtg11mXIDhsAoYzBdZW6WOcoKpr4JkV6i9Qv+YPuNIo+Ag==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@toruslabs/ffjavascript/-/ffjavascript-2.0.0.tgz", + "integrity": "sha512-0NxplMLtnoqkU6b3CUYtbs16l1JCOE0Qya238zMR8EznFXOpSpGFw/2jtfaatN1VV5RI3rkppeZ8SLutOcKFjQ==", "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" } }, "node_modules/@toruslabs/fnd-base": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/fnd-base/-/fnd-base-10.0.0.tgz", - "integrity": "sha512-MEFpTQVNpwMVfDsHka04oazfXU+8UlPQ3IvkWzRT9LScJCCM9TKThyjMUAJ0npVBnWBcvVLNpEdiQYk2B+Tfqw==", + "version": "13.0.2", + "resolved": "https://registry.npmjs.org/@toruslabs/fnd-base/-/fnd-base-13.0.2.tgz", + "integrity": "sha512-FLrs6BBFxiUWprnmdjm2k+fYwVdhP2h0OnIUEBVSXngzlJ3G+Qhj10PoOrWXhxAD3Ifbw5Kw3LorW158eazkRQ==", "dependencies": { - "@toruslabs/constants": "^10.0.0" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "@toruslabs/constants": "^13.0.2" }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@toruslabs/fnd-base/node_modules/@toruslabs/constants": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-10.0.0.tgz", - "integrity": "sha512-a5HJ8R/Z7cstIqY8qsXZvSVq6zlVSpkxTIOxiU808Qc8kehi9Uzg2B6HCaXSlPFhEKIhOwvEXDltfNkTtCdy9g==", "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" @@ -687,76 +641,23 @@ } }, "node_modules/@toruslabs/openlogin-subkey": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-subkey/-/openlogin-subkey-4.7.2.tgz", - "integrity": "sha512-TKXsAJlFL221GZCK0cRUb8SmQB9cHexm02/sWSxWsUVVVECvW880NPIsIdwhzfAXPCJo9E2qEjc0B4aHtNKOcQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-subkey/-/openlogin-subkey-5.0.0.tgz", + "integrity": "sha512-k+2IQl0fKF5hR1Qrjjww2cMv9h3uzPh0waaBORmxz/mmVfwc4uV3QfMa3DFr8nf2x+vXb+UjfFL8cP1Ow2dgmw==", "dependencies": { - "@toruslabs/ffjavascript": "^1.0.0", - "@toruslabs/metadata-helpers": "^4.0.1", + "@toruslabs/ffjavascript": "^2.0.0", + "@toruslabs/metadata-helpers": "^5.0.0", "bn.js": "^5.2.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x", "@types/bn.js": "^5.1.1" } }, - "node_modules/@toruslabs/openlogin-subkey/node_modules/@toruslabs/eccrypto": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/eccrypto/-/eccrypto-3.0.0.tgz", - "integrity": "sha512-+lFjV+0FZ3S4zH5T/Gnc795HoqpzLLDW28fSkibZRlx1Nx8uwbl3pyJSfya0C0bRHH1/+NTeBogUDijaRJ1NCw==", - "dependencies": { - "elliptic": "^6.5.4" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - } - }, - "node_modules/@toruslabs/openlogin-subkey/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", - "dependencies": { - "lodash.merge": "^4.6.2", - "loglevel": "^1.8.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } - } - }, - "node_modules/@toruslabs/openlogin-subkey/node_modules/@toruslabs/metadata-helpers": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@toruslabs/metadata-helpers/-/metadata-helpers-4.0.1.tgz", - "integrity": "sha512-0DFPxaNqmuVwFaEddl94dR/rpin5X+Odl1HR8cnzcrbzjLrOuKkGOdWtB6gnIqCUD6onMFO3156crgbHvagrLg==", - "dependencies": { - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/http-helpers": "^4.0.0", - "elliptic": "^6.5.4", - "ethereum-cryptography": "^2.1.2", - "json-stable-stringify": "^1.0.2" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, "node_modules/@toruslabs/openlogin-utils": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-utils/-/openlogin-utils-5.2.0.tgz", @@ -793,74 +694,27 @@ } }, "node_modules/@toruslabs/torus.js": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@toruslabs/torus.js/-/torus.js-8.0.1.tgz", - "integrity": "sha512-RGQzxahHn1pRgtwl3Hs1Qi8/taMxIS08v1Avfog03zffOQV7qxkVk/IQj+scrZXMLLdamVD/gwPAKyB+5WWjxQ==", - "deprecated": "Not supported. Pls upgrade", - "dependencies": { - "@toruslabs/constants": "^10.0.0", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/http-helpers": "^4.0.0", + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/@toruslabs/torus.js/-/torus.js-11.0.5.tgz", + "integrity": "sha512-CrC7foZB/2HrvMN5qVI4mEpPbmRAX5/2cdn3pgvgxWpEXQTNnJcxIO8vb2eT7iO6GhBYADnMZyxxWPMdk8S11Q==", + "dependencies": { + "@toruslabs/constants": "^13.0.1", + "@toruslabs/eccrypto": "^4.0.0", + "@toruslabs/http-helpers": "^5.0.0", "bn.js": "^5.2.1", "elliptic": "^6.5.4", - "ethereum-cryptography": "^2.0.0", + "ethereum-cryptography": "^2.1.2", "json-stable-stringify": "^1.0.2", "loglevel": "^1.8.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@toruslabs/torus.js/node_modules/@toruslabs/constants": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-10.0.0.tgz", - "integrity": "sha512-a5HJ8R/Z7cstIqY8qsXZvSVq6zlVSpkxTIOxiU808Qc8kehi9Uzg2B6HCaXSlPFhEKIhOwvEXDltfNkTtCdy9g==", - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" + "node": ">=18.x", + "npm": ">=9.x" }, "peerDependencies": { "@babel/runtime": "7.x" } }, - "node_modules/@toruslabs/torus.js/node_modules/@toruslabs/eccrypto": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/eccrypto/-/eccrypto-3.0.0.tgz", - "integrity": "sha512-+lFjV+0FZ3S4zH5T/Gnc795HoqpzLLDW28fSkibZRlx1Nx8uwbl3pyJSfya0C0bRHH1/+NTeBogUDijaRJ1NCw==", - "dependencies": { - "elliptic": "^6.5.4" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - } - }, - "node_modules/@toruslabs/torus.js/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", - "dependencies": { - "lodash.merge": "^4.6.2", - "loglevel": "^1.8.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } - } - }, "node_modules/@types/bn.js": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.2.tgz", @@ -1105,351 +959,21 @@ } }, "node_modules/@web3auth/node-sdk": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@web3auth/node-sdk/-/node-sdk-2.0.1.tgz", - "integrity": "sha512-/1RdbgfyyQFvTA7aA9bP5E2hDDPVOT55sUm/Ht7VzPPMi2zHnhjUpJQWuE7xtDFFvI2Y7a/4sJ7dTWbiUcfw3w==", - "dependencies": { - "@toruslabs/constants": "^10.0.0", - "@toruslabs/fetch-node-details": "^10.0.0", - "@toruslabs/metadata-helpers": "^4.0.0", - "@toruslabs/openlogin-subkey": "^4.2.0", - "@toruslabs/torus.js": "^8.0.0", - "@web3auth/base": "^6.1.1", - "@web3auth/base-provider": "^6.1.1", - "node-fetch": "^2.6.7" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@ethereumjs/common": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@ethereumjs/common/-/common-3.2.0.tgz", - "integrity": "sha512-pksvzI0VyLgmuEF2FA/JR/4/y6hcPq8OUail3/AvycBaW1d5VSauOZzqGvJ3RTmR4MU35lWE8KseKOsEhrFRBA==", - "dependencies": { - "@ethereumjs/util": "^8.1.0", - "crc-32": "^1.2.0" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@ethereumjs/rlp": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", - "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==", - "bin": { - "rlp": "bin/rlp" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@ethereumjs/tx": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@ethereumjs/tx/-/tx-4.2.0.tgz", - "integrity": "sha512-1nc6VO4jtFd172BbSnTnDQVr9IYBFl1y4xPzZdtkrkKIncBCkdbgfdRV+MiTkJYAtTxvV12GRZLqBFT1PNK6Yw==", - "dependencies": { - "@ethereumjs/common": "^3.2.0", - "@ethereumjs/rlp": "^4.0.1", - "@ethereumjs/util": "^8.1.0", - "ethereum-cryptography": "^2.0.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@ethereumjs/util": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.1.0.tgz", - "integrity": "sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==", - "dependencies": { - "@ethereumjs/rlp": "^4.0.1", - "ethereum-cryptography": "^2.0.0", - "micro-ftch": "^0.3.1" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@metamask/rpc-errors": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@metamask/rpc-errors/-/rpc-errors-5.1.1.tgz", - "integrity": "sha512-JjZnDi2y2CfvbohhBl+FOQRzmFlJpybcQlIk37zEX8B96eVSPbH/T8S0p7cSF8IE33IWx6JkD8Ycsd+2TXFxCw==", - "dependencies": { - "@metamask/utils": "^5.0.0", - "fast-safe-stringify": "^2.0.6" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@metamask/utils": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@metamask/utils/-/utils-5.0.2.tgz", - "integrity": "sha512-yfmE79bRQtnMzarnKfX7AEJBwFTxvTyw3nBQlu/5rmGXrjAeAMltoGxO62TFurxrQAFMNa/fEjIHNvungZp0+g==", - "dependencies": { - "@ethereumjs/tx": "^4.1.2", - "@types/debug": "^4.1.7", - "debug": "^4.3.4", - "semver": "^7.3.8", - "superstruct": "^1.0.3" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@toruslabs/base-controllers": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@toruslabs/base-controllers/-/base-controllers-3.2.0.tgz", - "integrity": "sha512-CNlXJh1zZV3+o9Z/H9/KAbmyNmDULnfNebUxL/qQmMJL50VI9s55xSaNkXsE7X9QxPM41GGsTR6doPLoDEMwpg==", - "dependencies": { - "@ethereumjs/util": "^8.0.6", - "@metamask/rpc-errors": "^5.1.1", - "@toruslabs/broadcast-channel": "^7.0.0", - "@toruslabs/http-helpers": "^4.0.0", - "@toruslabs/openlogin-jrpc": "^4.6.0", - "async-mutex": "^0.4.0", - "bignumber.js": "^9.1.1", - "bowser": "^2.11.0", - "lodash": "^4.17.21", - "loglevel": "^1.8.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@toruslabs/base-session-manager": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@toruslabs/base-session-manager/-/base-session-manager-1.1.0.tgz", - "integrity": "sha512-CcP8/4U7fq4jrHit8iTbCCWWXSP8rK3x9Pyk2qVXyMsrdzsWV6w5oTTbmggG9Cg8dBgYHrW5M8ITJr9oiiSqmg==", - "dependencies": { - "@toruslabs/http-helpers": "^4.0.0" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@toruslabs/broadcast-channel": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/broadcast-channel/-/broadcast-channel-7.0.0.tgz", - "integrity": "sha512-lyt2Els735qUXczPk743aHbIXZn+TeK/7YqKpUrY+xTyvXs9JyE6RahW+EY4yU90KAJx8+N9ZXZlcJP617T4bg==", - "dependencies": { - "@babel/runtime": "^7.21.5", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/metadata-helpers": "^4.0.0", - "bowser": "^2.11.0", - "loglevel": "^1.8.1", - "oblivious-set": "1.1.1", - "socket.io-client": "^4.6.1", - "unload": "^2.4.1" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@toruslabs/constants": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/constants/-/constants-10.0.0.tgz", - "integrity": "sha512-a5HJ8R/Z7cstIqY8qsXZvSVq6zlVSpkxTIOxiU808Qc8kehi9Uzg2B6HCaXSlPFhEKIhOwvEXDltfNkTtCdy9g==", - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@toruslabs/eccrypto": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/eccrypto/-/eccrypto-3.0.0.tgz", - "integrity": "sha512-+lFjV+0FZ3S4zH5T/Gnc795HoqpzLLDW28fSkibZRlx1Nx8uwbl3pyJSfya0C0bRHH1/+NTeBogUDijaRJ1NCw==", - "dependencies": { - "elliptic": "^6.5.4" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@toruslabs/http-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/http-helpers/-/http-helpers-4.0.0.tgz", - "integrity": "sha512-ef/Svevk54JANOn3Kf6UPf8X/vZlYHrusNFt8VV/LLahhVNXCXEcO8goC1bHkecu/u20CUyo9HJa0pn8fHh1sg==", - "dependencies": { - "lodash.merge": "^4.6.2", - "loglevel": "^1.8.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "^7.x", - "@sentry/types": "^7.x" - }, - "peerDependenciesMeta": { - "@sentry/types": { - "optional": true - } - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@toruslabs/metadata-helpers": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@toruslabs/metadata-helpers/-/metadata-helpers-4.0.1.tgz", - "integrity": "sha512-0DFPxaNqmuVwFaEddl94dR/rpin5X+Odl1HR8cnzcrbzjLrOuKkGOdWtB6gnIqCUD6onMFO3156crgbHvagrLg==", - "dependencies": { - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/http-helpers": "^4.0.0", - "elliptic": "^6.5.4", - "ethereum-cryptography": "^2.1.2", - "json-stable-stringify": "^1.0.2" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@toruslabs/openlogin": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin/-/openlogin-4.7.2.tgz", - "integrity": "sha512-xeGMPe6B1Cx9MbvKmOTOS7K2WnK9n6VfzwpnwqYBa75/7xhivO/F9KrnOX/QV2C+EVZ1h0idoQSn5pzDHdzECw==", - "dependencies": { - "@toruslabs/broadcast-channel": "^7.0.0", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/metadata-helpers": "^4.0.1", - "@toruslabs/openlogin-session-manager": "^1.1.0", - "@toruslabs/openlogin-utils": "^4.7.0", - "bowser": "^2.11.0", - "events": "^3.3.0", - "loglevel": "^1.8.1", - "ts-custom-error": "^3.3.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@toruslabs/openlogin-jrpc": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-4.7.2.tgz", - "integrity": "sha512-9Eb0cPc0lPuS6v2YkQlgzfbRnZ6fLez9Ike5wznoHSFA2/JVu1onwuI56EV1HwswdDrOWPPQEyzI1j9NriZ0ew==", - "dependencies": { - "@metamask/rpc-errors": "^5.1.1", - "@toruslabs/openlogin-utils": "^4.7.0", - "end-of-stream": "^1.4.4", - "events": "^3.3.0", - "fast-safe-stringify": "^2.1.1", - "once": "^1.4.0", - "pump": "^3.0.0", - "readable-stream": "^4.4.2" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@toruslabs/openlogin-session-manager": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-session-manager/-/openlogin-session-manager-1.1.0.tgz", - "integrity": "sha512-S4Wad1VRrfcCVvJ/vRAPOUuwOa1h7N/QZIvd/NgJe5o29YgEFxF2pHw+ZaPFMNjyvPJiX+hUEl548qbEkY9NsQ==", - "dependencies": { - "@toruslabs/base-session-manager": "^1.1.0", - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/metadata-helpers": "4.0.0" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@toruslabs/openlogin-session-manager/node_modules/@toruslabs/metadata-helpers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@toruslabs/metadata-helpers/-/metadata-helpers-4.0.0.tgz", - "integrity": "sha512-E8wDP9YaeT/Aciq36fLiwykQ1++pKW9AtRa+OMxT+BQWUIDpayI1K/uTwTWsjob6sLpjIHpJMQ66o7s2z54NNQ==", - "dependencies": { - "@toruslabs/eccrypto": "^3.0.0", - "@toruslabs/http-helpers": "^4.0.0", - "elliptic": "^6.5.4", - "ethereum-cryptography": "^2.0.0", - "json-stable-stringify": "^1.0.2" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@toruslabs/openlogin-utils": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/@toruslabs/openlogin-utils/-/openlogin-utils-4.7.0.tgz", - "integrity": "sha512-w6XkHs4WKuufsf/zzteBzs4EJuOknrUmJ+iv5FZ8HzIpMQeL/984CP8HYaFSEYkbGCP4ydAnhY4Uh0QAhpDbPg==", - "dependencies": { - "base64url": "^3.0.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@web3auth/base": { - "version": "6.1.7", - "resolved": "https://registry.npmjs.org/@web3auth/base/-/base-6.1.7.tgz", - "integrity": "sha512-0RrIgC1HFB4U/85QWf31oAUm+5+7ZOlSPMQuLIZ0nYEKgNY/jCAQuZVumOjBaH4lVz0ScuHltrBDE8odlmViCQ==", - "dependencies": { - "@toruslabs/http-helpers": "^4.0.0", - "@toruslabs/openlogin": "^4.7.2", - "@toruslabs/openlogin-jrpc": "^4.7.2", - "@toruslabs/openlogin-utils": "^4.7.0", - "jwt-decode": "^3.1.2", - "loglevel": "^1.8.1", - "ts-custom-error": "^3.3.1" - }, - "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "^7.x" - } - }, - "node_modules/@web3auth/node-sdk/node_modules/@web3auth/base-provider": { - "version": "6.1.7", - "resolved": "https://registry.npmjs.org/@web3auth/base-provider/-/base-provider-6.1.7.tgz", - "integrity": "sha512-h/nQ2UfWkv8rGaA/rvIyJ2pmoI6bkbo6gfA23u8c2MrmniKV7mn5aGSemZdwvxMV00+abbUWtYQtu/9fRZO9Ew==", + "resolved": "https://registry.npmjs.org/@web3auth/node-sdk/-/node-sdk-3.0.0.tgz", + "integrity": "sha512-2i9MJlAsp07fKEhjKW5fQd2vgmb/UCgvinwjn/a1HNuOsMrHqMK/4+nJM63Apk+7RmwjxwDecY5vjy6ncDmWhQ==", "dependencies": { - "@toruslabs/base-controllers": "^3.1.0", - "@toruslabs/openlogin-jrpc": "^4.7.2", - "@web3auth/base": "^6.1.7", - "eth-rpc-errors": "^4.0.3", - "json-rpc-random-id": "^1.0.1" + "@toruslabs/constants": "^13.0.1", + "@toruslabs/fetch-node-details": "^13.0.1", + "@toruslabs/metadata-helpers": "^5.0.0", + "@toruslabs/openlogin-subkey": "^5.0.0", + "@toruslabs/torus.js": "^11.0.5", + "@web3auth/base": "^7.0.1", + "@web3auth/base-provider": "^7.0.1" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.x" - }, - "peerDependencies": { - "@babel/runtime": "7.x" + "node": ">=18.x", + "npm": ">=9.x" } }, "node_modules/abort-controller": { @@ -1761,14 +1285,6 @@ "node": ">=10.0.0" } }, - "node_modules/eth-rpc-errors": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/eth-rpc-errors/-/eth-rpc-errors-4.0.3.tgz", - "integrity": "sha512-Z3ymjopaoft7JDoxZcEb3pwdGh7yiYMhOwm2doUt6ASXlMavpNlK6Cre0+IMl2VSGyEU9rkiperQhp5iRxn5Pg==", - "dependencies": { - "fast-safe-stringify": "^2.0.6" - } - }, "node_modules/ethereum-cryptography": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.2.tgz", @@ -2238,25 +1754,6 @@ "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-9.9.0.tgz", "integrity": "sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==" }, - "node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, "node_modules/object-is": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", @@ -2567,11 +2064,6 @@ "real-require": "^0.1.0" } }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, "node_modules/ts-custom-error": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/ts-custom-error/-/ts-custom-error-3.3.1.tgz", @@ -2634,20 +2126,6 @@ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, "node_modules/which-typed-array": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz", diff --git a/node-sdk/node-backend-example/package.json b/node-sdk/node-backend-example/package.json index 5a0f3c8d..7f120443 100644 --- a/node-sdk/node-backend-example/package.json +++ b/node-sdk/node-backend-example/package.json @@ -2,7 +2,7 @@ "author": "MSA", "dependencies": { "@web3auth/ethereum-provider": "^7.0.4", - "@web3auth/node-sdk": "^2.0.1", + "@web3auth/node-sdk": "^3.0.0", "fs": "^0.0.1-security", "jsonwebtoken": "^9.0.2" }, @@ -15,4 +15,4 @@ "start": "node index.js" }, "version": "1.0.0" -} +} \ No newline at end of file