From 8ae62f0547d9a2de3b4dfcff8a17dfe0bee11589 Mon Sep 17 00:00:00 2001 From: Youngjoon Lee Date: Wed, 25 Nov 2020 14:29:52 +0900 Subject: [PATCH 1/2] Follow the new Cosmos REST spec for DID operations --- src/client/DID.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }); }); } } From 5d72ab0c1fd9b8919652bcc5eba122e8762a296c Mon Sep 17 00:00:00 2001 From: Youngjoon Lee Date: Wed, 25 Nov 2020 14:36:51 +0900 Subject: [PATCH 2/2] Release v1.3.1 --- CHANGELOG.md | 8 ++++++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) 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",