From 5cb04b66457309c580159c7b45d4efddaf0ec0ab Mon Sep 17 00:00:00 2001 From: cipriandraghici Date: Fri, 6 Sep 2024 17:27:46 +0300 Subject: [PATCH] update packages and add TODO --- .yarnrc | 1 + package.json | 6 +-- .../login/helpers/extractAccountFromToken.ts | 1 + yarn.lock | 37 +++++++++++++------ 4 files changed, 31 insertions(+), 14 deletions(-) create mode 100644 .yarnrc diff --git a/.yarnrc b/.yarnrc new file mode 100644 index 0000000..6963428 --- /dev/null +++ b/.yarnrc @@ -0,0 +1 @@ +registry "http://localhost:4873" \ No newline at end of file diff --git a/package.json b/package.json index a15d07c..78c810f 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ }, "dependencies": { "@lifeomic/axios-fetch": "3.0.1", - "@multiversx/sdk-extension-provider": "3.0.0", + "@multiversx/sdk-extension-provider": "4.0.0-alpha.0", "@multiversx/sdk-hw-provider": "6.4.0", "@multiversx/sdk-metamask-provider": "0.0.5", "@multiversx/sdk-native-auth-client": "^1.0.8", @@ -47,7 +47,7 @@ "peerDependencies": { "@multiversx/sdk-core": ">= 13.0.0", "@multiversx/sdk-dapp-utils": ">= 0.1.0", - "@multiversx/sdk-web-wallet-cross-window-provider": ">= 1.0.0", + "@multiversx/sdk-web-wallet-cross-window-provider": ">= 2.0.0-alpha.0", "axios": ">=1.6.5", "bignumber.js": "9.x" }, @@ -57,7 +57,7 @@ "devDependencies": { "@multiversx/sdk-core": ">= 13.0.0", "@multiversx/sdk-dapp-utils": ">= 0.1.0", - "@multiversx/sdk-web-wallet-cross-window-provider": ">= 1.0.0", + "@multiversx/sdk-web-wallet-cross-window-provider": ">= 2.0.0-alpha.0", "@swc/core": "^1.4.17", "@swc/jest": "^0.2.36", "@types/node": "20.12.8", diff --git a/src/core/methods/login/helpers/extractAccountFromToken.ts b/src/core/methods/login/helpers/extractAccountFromToken.ts index 4407f84..5b00a23 100644 --- a/src/core/methods/login/helpers/extractAccountFromToken.ts +++ b/src/core/methods/login/helpers/extractAccountFromToken.ts @@ -31,6 +31,7 @@ export async function extractAccountFromToken({ } if (accountDetails.account) { + // TODO remove this as is already done before this function is called loginAction({ address: accountDetails.address, providerType: provider.getType() diff --git a/yarn.lock b/yarn.lock index 1f51752..eecba63 100644 --- a/yarn.lock +++ b/yarn.lock @@ -996,10 +996,10 @@ resolved "https://registry.yarnpkg.com/@multiversx/sdk-dapp-utils/-/sdk-dapp-utils-0.1.0.tgz#3103c2ffc648703e75f96acd229af299cb0840ab" integrity sha512-EFvktZ/S1WQ1ie02nnKZHARC4r23JZWwoTFd5py1qi/Z/UoLHIzJ394HLjXFb6gBTsp4wnvNwIXBA/DNrd2Yeg== -"@multiversx/sdk-extension-provider@3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@multiversx/sdk-extension-provider/-/sdk-extension-provider-3.0.0.tgz#e0e178ee5555f9440457547759621f5c3152c5fa" - integrity sha512-xNHLShzimYbMXqEJoiNyB4fNOXQUwSJCzt9FiOA4GdxucJnCgIM25mXtSj2I93cz+KD39QgRjEYep+li/lykOw== +"@multiversx/sdk-extension-provider@4.0.0-alpha.0": + version "4.0.0-alpha.0" + resolved "http://localhost:4873/@multiversx/sdk-extension-provider/-/sdk-extension-provider-4.0.0-alpha.0.tgz#d1705ffdeb9278682bdf6bf374987be8a0f8d40a" + integrity sha512-WGW/86sbbepgJb6x2+kqhLnXwzcxA0kLxRDCNdIyKQe+MWiT7f6ss4WVPt0WSvOLfEGu5cJDwQ4Zebj+hHWefA== "@multiversx/sdk-hw-provider@6.4.0": version "6.4.0" @@ -1069,10 +1069,10 @@ tweetnacl "1.0.3" uuid "8.3.2" -"@multiversx/sdk-web-wallet-cross-window-provider@>= 1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@multiversx/sdk-web-wallet-cross-window-provider/-/sdk-web-wallet-cross-window-provider-1.0.0.tgz#14ea0eb110de78a7e5dfbb1cb237cc8f86006b40" - integrity sha512-xqdKCFpBCxNcp4aSwC2FLbks2Ii2uy5YpHnqR8qnqCnjH6TqdGZ1xKzQauZsiYqseVueVTmynK28w9pTOZ0Oqg== +"@multiversx/sdk-web-wallet-cross-window-provider@>= 2.0.0-alpha.0": + version "2.0.0-alpha.0" + resolved "http://localhost:4873/@multiversx/sdk-web-wallet-cross-window-provider/-/sdk-web-wallet-cross-window-provider-2.0.0-alpha.0.tgz#076f658fdd4a07e18004a77d53b83163d8c59783" + integrity sha512-m9RYm+v5oly3jE7U2Ajv4npl81K7FYbssllOzD+PtfWzNlLxGPaXVVRY+NDJjWcodIV+IUXHDQqigluFya55ng== dependencies: "@types/jest" "^29.5.11" "@types/qs" "6.9.10" @@ -6496,7 +6496,7 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1": version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -6510,6 +6510,13 @@ strip-ansi@^5.2.0: dependencies: ansi-regex "^4.1.0" +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + strip-ansi@^7.0.1: version "7.1.0" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" @@ -7083,8 +7090,7 @@ word-wrap@^1.2.5: resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: - name wrap-ansi-cjs +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -7102,6 +7108,15 @@ wrap-ansi@^6.0.1: string-width "^4.1.0" strip-ansi "^6.0.0" +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"