diff --git a/CHANGELOG.md b/CHANGELOG.md index 1dc7dd6..f6eb812 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,28 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [v1.7.3](https://github.com/nevermined-io/components-catalog/compare/v1.7.2...v1.7.3) + +> 30 June 2023 + +- Feature/support auth message user profile [`#309`](https://github.com/nevermined-io/components-catalog/pull/309) +- Adding v1.7.0 Changelog updates [`43bf6b8`](https://github.com/nevermined-io/components-catalog/commit/43bf6b83da634421a6477b1820810c558e77e16c) +- add sign message to user profile [`6bbdbaf`](https://github.com/nevermined-io/components-catalog/commit/6bbdbafa2e6134c4e56eaf13133c40d797a1a4cc) + +#### [v1.7.2](https://github.com/nevermined-io/components-catalog/compare/v1.7.1...v1.7.2) + +> 29 June 2023 + +- feat: added ability to add a message when asking the user to sign [`#308`](https://github.com/nevermined-io/components-catalog/pull/308) +- fix: documentation [`87b4993`](https://github.com/nevermined-io/components-catalog/commit/87b4993dbb7d33d247803ea3fb558deefdc10b7d) +- fix: dependencies [`565c661`](https://github.com/nevermined-io/components-catalog/commit/565c661c86d276ee2a31bea026359261d1b8a91b) + +#### [v1.7.1](https://github.com/nevermined-io/components-catalog/compare/v1.7.0...v1.7.1) + +> 22 June 2023 + +- feat: update sdk to version 1.5.2 [`#307`](https://github.com/nevermined-io/components-catalog/pull/307) + #### [v1.7.0](https://github.com/nevermined-io/components-catalog/compare/v1.7.0-rc1...v1.7.0) > 13 June 2023 diff --git a/catalog/package.json b/catalog/package.json index 960b1fa..84ec396 100644 --- a/catalog/package.json +++ b/catalog/package.json @@ -1,11 +1,11 @@ { "name": "@nevermined-io/catalog", - "version": "1.7.3", + "version": "1.8.0", "main": "./dist/index.js", "types": "./dist/index.d.ts", "dependencies": { - "@nevermined-io/sdk": "^1.5.3", - "@nevermined-io/sdk-dtp": "^0.5.1", + "@nevermined-io/sdk": "^1.5.4", + "@nevermined-io/sdk-dtp": "^0.5.2", "@types/jsonwebtoken": "^8.5.8", "axios": "^0.27.2", "axios-retry": "^3.3.1", diff --git a/catalog/src/utils/index.ts b/catalog/src/utils/index.ts index aae5261..27b50cd 100644 --- a/catalog/src/utils/index.ts +++ b/catalog/src/utils/index.ts @@ -19,16 +19,12 @@ import axiosRetry from 'axios-retry' export const isEmptyObject = (i: any) => !i || Object.keys(i).length < 1 /** - * Returns current account registered in SDK + * Returns account object by passing an account address * @param sdk Instance of SDK object + * @param accountAddress Account address */ -export const getCurrentAccount = async (sdk: Nevermined, index = 0) => { - let accounts: Account[] = [] - if (sdk.accounts) { - accounts = await sdk.accounts.list() - } - - return accounts[index] +export const getAccountObject = async (sdk: Nevermined, accountAddress: string) => { + return sdk.accounts.getAccount(accountAddress) } type Template = 'accessTemplate' | 'nft721AccessTemplate' | 'nftAccessTemplate' | 'nftSalesTemplate' diff --git a/package.json b/package.json index 9af0ba4..7c03c90 100644 --- a/package.json +++ b/package.json @@ -105,8 +105,8 @@ ] }, "dependencies": { - "@nevermined-io/sdk": "^1.5.3", - "@nevermined-io/sdk-dtp": "^0.5.1", + "@nevermined-io/sdk": "^1.5.4", + "@nevermined-io/sdk-dtp": "^0.5.2", "@types/jsonwebtoken": "^8.5.8", "@wagmi/core": "^0.8.15", "axios": "^0.27.2", diff --git a/providers/package.json b/providers/package.json index d02f397..25e29a0 100644 --- a/providers/package.json +++ b/providers/package.json @@ -1,7 +1,7 @@ { "name": "@nevermined-io/providers", "private": false, - "version": "1.7.3", + "version": "1.8.0", "main": "./dist/index.js", "types": "./dist/index.d.ts", "dependencies": {