chore: upgrade deps (#10824)

This commit is contained in:
Noel
2025-04-05 13:18:56 +02:00
committed by GitHub
parent 432aba3df7
commit f580de8025
200 changed files with 6756 additions and 12893 deletions

View File

@@ -216,6 +216,7 @@ export class SequentialHandler implements IHandler {
limit = this.manager.options.globalRequestsPerSecond;
timeout = this.manager.globalReset + offset - Date.now();
// If this is the first task to reach the global timeout, set the global delay
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
if (!this.manager.globalDelay) {
// The global delay function clears the global delay state when it is resolved
this.manager.globalDelay = this.globalDelayFor(timeout);

View File

@@ -14,6 +14,7 @@ export interface RestEvents {
restDebug: [info: string];
}
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface RestEventsMap extends RestEvents {}
/**

View File

@@ -5,6 +5,7 @@ import { RequestMethod } from './types.js';
import type { GetRateLimitOffsetFunction, RateLimitData, ResponseLike } from './types.js';
function serializeSearchParam(value: unknown): string | null {
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
switch (typeof value) {
case 'string':
return value;