From fd4ddf56675005c5a3be6028db2d256b71e5687c Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 13 Aug 2021 10:13:40 -0700 Subject: [PATCH] Start migrating StorageFactory to TypeScript --- .../storage/idb/{StorageFactory.js => StorageFactory.ts} | 0 src/mocks/Storage.js | 4 ++-- src/platform/web/Platform.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/matrix/storage/idb/{StorageFactory.js => StorageFactory.ts} (100%) diff --git a/src/matrix/storage/idb/StorageFactory.js b/src/matrix/storage/idb/StorageFactory.ts similarity index 100% rename from src/matrix/storage/idb/StorageFactory.js rename to src/matrix/storage/idb/StorageFactory.ts diff --git a/src/mocks/Storage.js b/src/mocks/Storage.js index 0cddc7bc..a84126cb 100644 --- a/src/mocks/Storage.js +++ b/src/mocks/Storage.js @@ -15,8 +15,8 @@ limitations under the License. */ import {FDBFactory, FDBKeyRange} from "../../lib/fake-indexeddb/index.js"; -import {StorageFactory} from "../matrix/storage/idb/StorageFactory.js"; +import {StorageFactory} from "../matrix/storage/idb/StorageFactory"; export function createMockStorage() { return new StorageFactory(null, new FDBFactory(), FDBKeyRange).create(1); -} \ No newline at end of file +} diff --git a/src/platform/web/Platform.js b/src/platform/web/Platform.js index f1410106..4ec7d264 100644 --- a/src/platform/web/Platform.js +++ b/src/platform/web/Platform.js @@ -16,7 +16,7 @@ limitations under the License. import {createFetchRequest} from "./dom/request/fetch.js"; import {xhrRequest} from "./dom/request/xhr.js"; -import {StorageFactory} from "../../matrix/storage/idb/StorageFactory.js"; +import {StorageFactory} from "../../matrix/storage/idb/StorageFactory"; import {SessionInfoStorage} from "../../matrix/sessioninfo/localstorage/SessionInfoStorage.js"; import {SettingsStorage} from "./dom/SettingsStorage.js"; import {Encoding} from "./utils/Encoding.js";