chore: bump deps, cleanup deprecation warnings

This commit is contained in:
Rexogamer
2024-04-30 15:26:08 +01:00
parent e3937ae843
commit 90e41c837b
7 changed files with 2501 additions and 11115 deletions

View File

@@ -98,7 +98,7 @@ const styles = StyleSheet.create({
},
discordNsoUserImage: {
borderRadius: 8,
textAlignVertical: -3,
verticalAlign: -3,
},
button: {

View File

@@ -156,7 +156,7 @@ const styles = StyleSheet.create({
},
discordNsoUserImage: {
borderRadius: 8,
textAlignVertical: -3,
verticalAlign: -3,
},
discordSourceUrlValue: {
fontFamily: 'monospace',

View File

@@ -1,4 +1,4 @@
import { app, BrowserWindow, ipcMain, LoginItemSettingsOptions, session } from 'electron';
import { app, BrowserWindow, ipcMain, session, Settings } from 'electron';
import process from 'node:process';
import * as path from 'node:path';
import { EventEmitter } from 'node:events';
@@ -31,7 +31,7 @@ export const protocol_registration_options = dev && process.platform === 'win32'
path.join(dir, 'dist', 'app', 'app-entry.cjs'),
],
} : null;
export const login_item_options: LoginItemSettingsOptions = {
export const login_item_options: Settings = {
path: process.execPath,
args: dev ? [
path.join(dir, 'dist', 'app', 'app-entry.cjs'),

View File

@@ -96,6 +96,7 @@ export default class EventSource {
}
addEventListener<T extends string>(event: T, handler: Listener<T>[1]) {
// @ts-expect-error TODO: this worked pre-dep bump but i have no idea what broke it - i attempted to downgrade @types/node, undici and typescript to the pre-bump version but no luck?
this._listeners.push([event, handler]);
}

View File

@@ -42,8 +42,8 @@ export function buildProxyAgent(options: ProxyAgentOptions & {
const { origin, port, host } = proxy;
const { socket, statusCode } = await agent.connect({
// @ts-expect-error
origin,
// @ts-expect-error
port,
path: requestedHost,
// @ts-expect-error