diff --git a/CHANGELOG.md b/CHANGELOG.md index cb3b7f3..b6bdb5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ TBD + +## [v1.3.1](https://github.com/medibloc/panacea-js/releases/tag/v1.3.1) - 2020-11-25 + +### Bug fixes + +- [\#24](https://github.com/medibloc/panacea-js/pull/24) Follow up the new Cosmos REST spec for DID operations + + ## [v1.3.0](https://github.com/medibloc/panacea-js/releases/tag/v1.3.0) - 2020-10-30 ### Features diff --git a/package-lock.json b/package-lock.json index 3697ff0..e72f572 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@medibloc/panacea-js", - "version": "1.3.0", + "version": "1.3.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7ece8f3..e2081c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@medibloc/panacea-js", - "version": "1.3.0", + "version": "1.3.1", "description": "JavaScript library for MediBloc written in Typescript", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/client/DID.ts b/src/client/DID.ts index 0f75a15..fc89f34 100644 --- a/src/client/DID.ts +++ b/src/client/DID.ts @@ -18,8 +18,8 @@ export default class DID extends Client { getDID(did: string): Promise { return this.getRequest(DID_API.did, [did]) .then((data: Record): DIDDocumentWithSeq => { - //TODO @youngjoon-lee: handle the case when DID was already deactivated - return plainToClass(DIDDocumentWithSeq, data, { excludeExtraneousValues: true }); + const result = data.result as Record + return plainToClass(DIDDocumentWithSeq, result, { excludeExtraneousValues: true }); }); } }