Skip to content

Commit 65b9c31

Browse files
authored
Rename crypto-api.ts -> crypto-api/index.ts (#4283)
I found it quite confusing having `CryptoApi` be defined so far from the `crypto-api` folder.
1 parent d629a68 commit 65b9c31

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/crypto-api.ts renamed to src/crypto-api/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ limitations under the License.
1515
*/
1616

1717
import type { SecretsBundle } from "@matrix-org/matrix-sdk-crypto-wasm";
18-
import type { IMegolmSessionData } from "./@types/crypto";
19-
import { Room } from "./models/room";
20-
import { DeviceMap } from "./models/device";
21-
import { UIAuthCallback } from "./interactive-auth";
22-
import { PassphraseInfo, SecretStorageCallbacks, SecretStorageKeyDescription } from "./secret-storage";
23-
import { VerificationRequest } from "./crypto-api/verification";
24-
import { BackupTrustInfo, KeyBackupCheck, KeyBackupInfo } from "./crypto-api/keybackup";
25-
import { ISignatures } from "./@types/signed";
26-
import { MatrixEvent } from "./models/event";
18+
import type { IMegolmSessionData } from "../@types/crypto";
19+
import { Room } from "../models/room";
20+
import { DeviceMap } from "../models/device";
21+
import { UIAuthCallback } from "../interactive-auth";
22+
import { PassphraseInfo, SecretStorageCallbacks, SecretStorageKeyDescription } from "../secret-storage";
23+
import { VerificationRequest } from "./verification";
24+
import { BackupTrustInfo, KeyBackupCheck, KeyBackupInfo } from "./keybackup";
25+
import { ISignatures } from "../@types/signed";
26+
import { MatrixEvent } from "../models/event";
2727

2828
/**
2929
* Public interface to the cryptography parts of the js-sdk
@@ -949,5 +949,5 @@ export interface OwnDeviceKeys {
949949
curve25519: string;
950950
}
951951

952-
export * from "./crypto-api/verification";
953-
export * from "./crypto-api/keybackup";
952+
export * from "./verification";
953+
export * from "./keybackup";

0 commit comments

Comments
 (0)