Update dependencies

This commit is contained in:
Samuel Elliott
2025-04-20 20:20:10 +01:00
parent a02d2f5553
commit 8a05e4c6ef
9 changed files with 1664 additions and 5749 deletions

View File

@@ -64,7 +64,6 @@ const styles_mac = StyleSheet.create({
},
buttonLight: {
backgroundColor: '#ffffff',
// @ts-expect-error react-native-web
boxShadow: '#0000008a 0px 0px 1px',
},

View File

@@ -87,3 +87,7 @@ declare module 'react-native-web' {
type Item<T = number | string> = PickerItem<T>;
}
}
declare module 'node:timers' {
function setTimeout(callback: (_: void) => void, delay?: number): NodeJS.Timeout;
}

View File

@@ -1,6 +1,7 @@
import * as net from 'node:net';
import * as os from 'node:os';
import { randomUUID } from 'node:crypto';
import { setTimeout } from 'node:timers';
import * as persist from 'node-persist';
import express, { Request, RequestHandler, Response } from 'express';
import bodyParser from 'body-parser';

View File

@@ -236,7 +236,7 @@ export interface DiscordApplicationRpc {
}
export async function getDiscordApplicationRpc(id: string) {
if (!id.match(/^\d{18}$/)) {
if (!id.match(/^\d{18,}$/)) {
throw new Error('Invalid Discord application ID');
}

View File

@@ -1,5 +1,6 @@
import process from 'node:process';
import * as fs from 'node:fs';
import { setTimeout } from 'node:timers';
import persist from 'node-persist';
import { getToken, Login } from './coral.js';
import SplatNet2Api, { SplatNet2AuthData, updateIksmSessionLastUsed } from '../../api/splatnet2.js';

View File

@@ -1,3 +1,4 @@
import { setTimeout } from 'node:timers';
import { errors } from 'undici';
import EventSource, { ErrorEvent } from '../util/eventsource.js';
import { DiscordRpcClient, findDiscordRpcClient } from '../discord/rpc.js';

View File

@@ -1,4 +1,5 @@
import { Buffer } from 'node:buffer';
import { setTimeout } from 'node:timers';
import { fetch, Headers, Response } from 'undici';
import createDebug from './debug.js';
import { ErrorResponse } from '../api/util.js';