mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-10-23 18:15:39 -05:00
chore: bump deps, cleanup deprecation warnings
This commit is contained in:
@@ -98,7 +98,7 @@ const styles = StyleSheet.create({
|
||||
},
|
||||
discordNsoUserImage: {
|
||||
borderRadius: 8,
|
||||
textAlignVertical: -3,
|
||||
verticalAlign: -3,
|
||||
},
|
||||
|
||||
button: {
|
||||
|
||||
@@ -156,7 +156,7 @@ const styles = StyleSheet.create({
|
||||
},
|
||||
discordNsoUserImage: {
|
||||
borderRadius: 8,
|
||||
textAlignVertical: -3,
|
||||
verticalAlign: -3,
|
||||
},
|
||||
discordSourceUrlValue: {
|
||||
fontFamily: 'monospace',
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user