1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-06 12:02:40 +03:00

Update typescript-eslint monorepo to v8.17.0 (#4581)

* Update typescript-eslint monorepo to v8.17.0

* Fix lint errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: David Baker <dbkr@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2024-12-12 17:45:39 +00:00
committed by GitHub
parent a0502c5ee5
commit 315e81b7de
7 changed files with 83 additions and 38 deletions

View File

@@ -5065,7 +5065,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
if (this.canSupport.get(Feature.RelationBasedRedactions) === ServerSupport.Unsupported) {
throw new Error(
"Server does not support relation based redactions " +
`roomId ${roomId} eventId ${eventId} txnId: ${txnId} threadId ${threadId}`,
`roomId ${roomId} eventId ${eventId} txnId: ${txnId as string} threadId ${threadId}`,
);
}

View File

@@ -776,7 +776,7 @@ export class Backend implements CryptoStore {
ev.preventDefault();
logger.log("Ignoring duplicate inbound group session: " + senderCurve25519Key + " / " + sessionId);
} else {
abortWithException(txn, new Error("Failed to add inbound group session: " + addReq.error));
abortWithException(txn, new Error("Failed to add inbound group session: " + addReq.error?.name));
}
};
}

View File

@@ -71,7 +71,7 @@ function selectQuery<T>(
return new Promise((resolve, reject) => {
const results: T[] = [];
query.onerror = (): void => {
reject(new Error("Query failed: " + query.error));
reject(new Error("Query failed: " + query.error?.name));
};
// collect results
query.onsuccess = (): void => {
@@ -360,7 +360,7 @@ export class LocalIndexedDBStoreBackend implements IIndexedDBBackend {
// in firefox, with indexedDB disabled, this fails with a
// DOMError. We treat this as non-fatal, so that we can still
// use the app.
logger.warn(`unable to delete js-sdk store indexeddb: ${req.error}`);
logger.warn(`unable to delete js-sdk store indexeddb: ${req.error?.name}`);
resolve();
};