diff --git a/CHANGELOG.md b/CHANGELOG.md index f93ab1c..50f5aab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.5.0] - 2021-03-15 +### Added +- `holoInfo` method to get host url from `chaperone` [(#34)][] + +[(#34)]: https://github.com/Holo-Host/web-sdk/pull/34 + ## [0.4.0] - 2021-03-02 ### Added - added signals. diff --git a/README.md b/README.md index bf28f3b..e4368fc 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,11 @@ Call a zome function on the respective DNA instance. ### `.appInfo( installed_app_id ) -> Promise` Calls appInfo on the conductor with the provided id. +### `.holoInfo() -> Promise` +Returns `{ + url: string +}` + ### `.signIn() -> Promise` Trigger Chaperone's sign-in prompt. diff --git a/package-lock.json b/package-lock.json index c871ff1..f368f67 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@holo-host/web-sdk", - "version": "0.4.0", + "version": "0.5.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index b50bd45..61e09de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@holo-host/web-sdk", - "version": "0.4.0", + "version": "0.5.0", "description": "Standard development kit for creating Web UIs that work with Holo Hosting.", "main": "src/index.js", "module": "src/index.js", diff --git a/src/index.js b/src/index.js index f43cb76..ed635d9 100644 --- a/src/index.js +++ b/src/index.js @@ -118,6 +118,10 @@ class Connection extends EventEmitter { async signOut() { return await this.child.run("signOut"); } + + async holoInfo() { + return await this.child.run("holoInfo"); + } } Connection.AUTONOMOUS = 1;