Skip to content

Commit

Permalink
Release v1.3.1: Follow up the new Cosmos REST spec for DID operations (
Browse files Browse the repository at this point in the history
  • Loading branch information
Youngjoon Lee authored Nov 25, 2020
1 parent 541959c commit 99bf9c5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/client/DID.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export default class DID extends Client {
getDID(did: string): Promise<DIDDocumentWithSeq> {
return this.getRequest(DID_API.did, [did])
.then((data: Record<string, any>): DIDDocumentWithSeq => {
//TODO @youngjoon-lee: handle the case when DID was already deactivated
return plainToClass(DIDDocumentWithSeq, data, { excludeExtraneousValues: true });
const result = data.result as Record<string, any>
return plainToClass(DIDDocumentWithSeq, result, { excludeExtraneousValues: true });
});
}
}

0 comments on commit 99bf9c5

Please sign in to comment.