mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-10-20 08:39:44 -05:00
Update dependencies
This commit is contained in:
@@ -64,7 +64,6 @@ const styles_mac = StyleSheet.create({
|
||||
},
|
||||
buttonLight: {
|
||||
backgroundColor: '#ffffff',
|
||||
// @ts-expect-error react-native-web
|
||||
boxShadow: '#0000008a 0px 0px 1px',
|
||||
},
|
||||
|
||||
|
||||
4
src/app/browser/react-native-web.d.ts
vendored
4
src/app/browser/react-native-web.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user