Update all non-major dependencies (#468)

* Update all non-major dependencies

* Iterate PR

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
renovate[bot]
2022-12-01 07:20:55 +00:00
committed by GitHub
co-authored by renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Michael Telatynski
parent 19351d766d
commit f4bf425148
13 changed files with 71 additions and 70 deletions
+3 -3
View File
@@ -86,7 +86,7 @@ declare module "matrix-seshat" {
}
export class Seshat {
constructor(path: string, config?: IConfig);
public constructor(path: string, config?: IConfig);
public addEvent(matrixEvent: IMatrixEvent, profile?: IMatrixProfile): void;
public deleteEvent(eventId: string): Promise<boolean>;
public commit(force?: boolean): Promise<number>;
@@ -132,7 +132,7 @@ declare module "matrix-seshat" {
}
export class SeshatRecovery {
constructor(path: string, config?: IConfig);
public constructor(path: string, config?: IConfig);
public info(): IRecoveryInfo;
public getUserVersion(): Promise<number>;
public shutdown(): Promise<void>;
@@ -140,6 +140,6 @@ declare module "matrix-seshat" {
}
export class ReindexError extends Error {
constructor(message?: string);
public constructor(message?: string);
}
}
+5 -5
View File
@@ -238,9 +238,9 @@ global.store = new Store({ name: "electron-config" });
global.appQuitting = false;
const exitShortcuts: Array<(input: Input, platform: string) => boolean> = [
(input, platform) => platform !== 'darwin' && input.alt && input.key.toUpperCase() === 'F4',
(input, platform) => platform !== 'darwin' && input.control && input.key.toUpperCase() === 'Q',
(input, platform) => platform === 'darwin' && input.meta && input.key.toUpperCase() === 'Q',
(input, platform): boolean => platform !== 'darwin' && input.alt && input.key.toUpperCase() === 'F4',
(input, platform): boolean => platform !== 'darwin' && input.control && input.key.toUpperCase() === 'Q',
(input, platform): boolean => platform === 'darwin' && input.meta && input.key.toUpperCase() === 'Q',
];
const warnBeforeExit = (event: Event, input: Input): void => {
@@ -502,8 +502,8 @@ app.on('ready', async () => {
global.appLocalization = new AppLocalization({
store: global.store,
components: [
() => tray.initApplicationMenu(),
() => Menu.setApplicationMenu(buildMenuTemplate()),
(): void => tray.initApplicationMenu(),
(): void => Menu.setApplicationMenu(buildMenuTemplate()),
],
});
});
+1 -1
View File
@@ -71,7 +71,7 @@ export class AppLocalization {
private readonly store: TypedStore;
private readonly localizedComponents?: Set<Component>;
constructor({ store, components = [] }: { store: TypedStore, components: Component[] }) {
public constructor({ store, components = [] }: { store: TypedStore, components: Component[] }) {
counterpart.registerTranslations(FALLBACK_LOCALE, this.fetchTranslationJson("en_EN"));
counterpart.setFallbackLocale(FALLBACK_LOCALE);
counterpart.setSeparator('|');
+1 -1
View File
@@ -81,7 +81,7 @@ ipcMain.on('seshat', async function(_ev: IpcMainEvent, payload): Promise<void> {
// We do this here to ensure we get the path after --profile has been resolved
const eventStorePath = path.join(app.getPath('userData'), 'EventStore');
const sendError = (id: string, e: Error) => {
const sendError = (id: string, e: Error): void => {
const error = {
message: e.message,
};
+1 -1
View File
@@ -110,7 +110,7 @@ export function initApplicationMenu(): void {
{ type: 'separator' },
{
label: _t('Quit'),
click: function() {
click: function(): void {
app.quit();
},
},
+3 -3
View File
@@ -98,7 +98,7 @@ export function buildMenuTemplate(): Menu {
// in macOS the Preferences menu item goes in the first menu
...(!isMac ? [{
label: _t('Preferences'),
click() { global.mainWindow?.webContents.send('preferences'); },
click(): void { global.mainWindow?.webContents.send('preferences'); },
}] : []),
{
role: 'togglefullscreen',
@@ -132,7 +132,7 @@ export function buildMenuTemplate(): Menu {
submenu: [
{
label: _t('Element Help'),
click() { shell.openExternal('https://element.io/help'); },
click(): void { shell.openExternal('https://element.io/help'); },
},
],
},
@@ -153,7 +153,7 @@ export function buildMenuTemplate(): Menu {
{
label: _t('Preferences') + '…',
accelerator: 'Command+,', // Mac-only accelerator
click() { global.mainWindow?.webContents.send('preferences'); },
click(): void { global.mainWindow?.webContents.send('preferences'); },
},
{ type: 'separator' },
{
+7 -7
View File
@@ -97,7 +97,7 @@ function onLinkContextMenu(ev: Event, params: ContextMenuParams, webContents: We
if (!url.startsWith('blob:')) {
popupMenu.append(new MenuItem({
label: url,
click() {
click(): void {
safeOpenURL(url);
},
}));
@@ -107,7 +107,7 @@ function onLinkContextMenu(ev: Event, params: ContextMenuParams, webContents: We
popupMenu.append(new MenuItem({
label: _t('Copy image'),
accelerator: 'c',
click() {
click(): void {
webContents.copyImageAt(params.x, params.y);
},
}));
@@ -120,7 +120,7 @@ function onLinkContextMenu(ev: Event, params: ContextMenuParams, webContents: We
popupMenu.append(new MenuItem({
label: _t('Copy email address'),
accelerator: 'a',
click() {
click(): void {
clipboard.writeText(url.substr(MAILTO_PREFIX.length));
},
}));
@@ -130,7 +130,7 @@ function onLinkContextMenu(ev: Event, params: ContextMenuParams, webContents: We
? _t('Copy image address')
: _t('Copy link address'),
accelerator: 'a',
click() {
click(): void {
clipboard.writeText(url);
},
}));
@@ -143,7 +143,7 @@ function onLinkContextMenu(ev: Event, params: ContextMenuParams, webContents: We
popupMenu.append(new MenuItem({
label: _t('Save image as...'),
accelerator: 's',
async click() {
async click(): Promise<void> {
const targetFileName = params.suggestedFilename || params.altText || "image.png";
const { filePath } = await dialog.showSaveDialog({
defaultPath: targetFileName,
@@ -228,7 +228,7 @@ function cutCopyPasteSelectContextMenus(params: ContextMenuParams): MenuItemCons
return options;
}
function onSelectedContextMenu(ev: Event, params: ContextMenuParams) {
function onSelectedContextMenu(ev: Event, params: ContextMenuParams): void {
const items = cutCopyPasteSelectContextMenus(params);
const popupMenu = Menu.buildFromTemplate(items);
@@ -237,7 +237,7 @@ function onSelectedContextMenu(ev: Event, params: ContextMenuParams) {
ev.preventDefault();
}
function onEditableContextMenu(ev: Event, params: ContextMenuParams) {
function onEditableContextMenu(ev: Event, params: ContextMenuParams): void {
const items: MenuItemConstructorOptions[] = [
{ role: 'undo' },
{ role: 'redo', enabled: params.editFlags.canRedo },