From 5e0e3396c4111be6598bd5efdaf475abafd424e7 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 20 Jul 2023 15:56:30 +0530 Subject: [PATCH 1/2] Add bash shebang --- scripts/package.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/package.sh b/scripts/package.sh index 6ad136a3..6aa0c982 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -1,3 +1,4 @@ +#!/bin/bash VERSION=$(jq -r ".version" package.json) PACKAGE=hydrogen-web-$VERSION.tar.gz yarn build From 52105f379daefb3084a0cf5c202e436fe0d69a7f Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 20 Jul 2023 16:02:02 +0530 Subject: [PATCH 2/2] Export more things --- src/lib.ts | 3 +++ src/matrix/Session.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.ts b/src/lib.ts index bf7679c6..9a8552c6 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -21,8 +21,10 @@ export {ConsoleReporter} from "./logging/ConsoleReporter"; export {Platform} from "./platform/web/Platform.js"; export {BlobHandle} from "./platform/web/dom/BlobHandle"; export {Client, LoadStatus} from "./matrix/Client.js"; +export {PasswordLoginMethod} from "./matrix/login/PasswordLoginMethod"; export {RoomStatus} from "./matrix/room/common"; export {FeatureSet, FeatureFlag} from "./features"; +export {KeyType} from "./matrix/ssss"; // export everything needed to observe state events on all rooms using session.observeRoomState export type {RoomStateHandler} from "./matrix/room/state/types"; export type {MemberChange} from "./matrix/room/members/RoomMember"; @@ -78,6 +80,7 @@ export {Navigation} from "./domain/navigation/Navigation.js"; export {ComposerViewModel} from "./domain/session/room/ComposerViewModel.js"; export {MessageComposer} from "./platform/web/ui/session/room/MessageComposer.js"; export {TemplateView} from "./platform/web/ui/general/TemplateView"; +export type {Builder} from "./platform/web/ui/general/TemplateView" export {ViewModel} from "./domain/ViewModel"; export {LoadingView} from "./platform/web/ui/general/LoadingView.js"; export {AvatarView} from "./platform/web/ui/AvatarView.js"; diff --git a/src/matrix/Session.js b/src/matrix/Session.js index 2d9ad66e..5283b2a9 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -261,7 +261,7 @@ export class Session { * Enable secret storage by providing the secret storage credential. * This will also see if there is a megolm key backup and try to enable that if so. * - * @param {string} type either "passphrase" or "recoverykey" + * @param {KeyType} type either KeyType.RecoveryKey (0) or KeyType.Passphrase (1) * @param {string} credential either the passphrase or the recovery key, depending on the type * @return {Promise} resolves or rejects after having tried to enable secret storage */