chore: deps

This commit is contained in:
iCrawl
2022-09-04 19:33:57 +02:00
parent 8b3d006118
commit 4ffdada4f7
21 changed files with 722 additions and 612 deletions

View File

@@ -46,7 +46,7 @@
"is-ci": "^3.0.1", "is-ci": "^3.0.1",
"lint-staged": "^13.0.3", "lint-staged": "^13.0.3",
"tsup": "^6.2.3", "tsup": "^6.2.3",
"turbo": "^1.4.4", "turbo": "^1.4.5",
"typescript": "^4.8.2" "typescript": "^4.8.2"
}, },
"resolutions": { "resolutions": {

View File

@@ -44,13 +44,13 @@
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^16.11.56", "@types/node": "^16.11.56",
"@vitest/coverage-c8": "^0.22.1", "@vitest/coverage-c8": "^0.23.0",
"eslint": "^8.23.0", "eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31", "eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"tsup": "^6.2.3", "tsup": "^6.2.3",
"typescript": "^4.8.2", "typescript": "^4.8.2",
"vitest": "^0.22.1" "vitest": "^0.23.0"
}, },
"engines": { "engines": {
"node": ">=16.9.0" "node": ">=16.9.0"

View File

@@ -37,7 +37,7 @@
"devDependencies": { "devDependencies": {
"@types/node": "^16.11.56", "@types/node": "^16.11.56",
"eslint": "^8.23.0", "eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31", "eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"tsup": "^6.2.3", "tsup": "^6.2.3",
"typescript": "^4.8.2" "typescript": "^4.8.2"

View File

@@ -65,14 +65,14 @@
"@favware/cliff-jumper": "^1.8.7", "@favware/cliff-jumper": "^1.8.7",
"@microsoft/api-extractor": "^7.30.0", "@microsoft/api-extractor": "^7.30.0",
"@types/node": "^16.11.56", "@types/node": "^16.11.56",
"@vitest/coverage-c8": "^0.22.1", "@vitest/coverage-c8": "^0.23.0",
"downlevel-dts": "^0.10.1", "downlevel-dts": "^0.10.1",
"eslint": "^8.23.0", "eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31", "eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"tsup": "^6.2.3", "tsup": "^6.2.3",
"typescript": "^4.8.2", "typescript": "^4.8.2",
"vitest": "^0.22.1" "vitest": "^0.23.0"
}, },
"engines": { "engines": {
"node": ">=16.9.0" "node": ">=16.9.0"

View File

@@ -54,14 +54,14 @@
"@favware/cliff-jumper": "^1.8.7", "@favware/cliff-jumper": "^1.8.7",
"@microsoft/api-extractor": "^7.30.0", "@microsoft/api-extractor": "^7.30.0",
"@types/node": "^16.11.56", "@types/node": "^16.11.56",
"@vitest/coverage-c8": "^0.22.1", "@vitest/coverage-c8": "^0.23.0",
"downlevel-dts": "^0.10.1", "downlevel-dts": "^0.10.1",
"eslint": "^8.23.0", "eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31", "eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"tsup": "^6.2.3", "tsup": "^6.2.3",
"typescript": "^4.8.2", "typescript": "^4.8.2",
"vitest": "^0.22.1" "vitest": "^0.23.0"
}, },
"engines": { "engines": {
"node": ">=16.9.0" "node": ">=16.9.0"

View File

@@ -67,7 +67,7 @@
"@types/node": "^16.11.56", "@types/node": "^16.11.56",
"dtslint": "^4.2.1", "dtslint": "^4.2.1",
"eslint": "^8.23.0", "eslint": "^8.23.0",
"jest": "^29.0.1", "jest": "^29.0.2",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"tsd": "^0.23.0", "tsd": "^0.23.0",
"tslint": "^6.1.3", "tslint": "^6.1.3",

View File

@@ -45,14 +45,14 @@
"commander": "^9.4.0", "commander": "^9.4.0",
"jsdoc-to-markdown": "^7.1.1", "jsdoc-to-markdown": "^7.1.1",
"tslib": "^2.4.0", "tslib": "^2.4.0",
"typedoc": "^0.23.13" "typedoc": "^0.23.14"
}, },
"devDependencies": { "devDependencies": {
"@favware/cliff-jumper": "^1.8.7", "@favware/cliff-jumper": "^1.8.7",
"@types/jsdoc-to-markdown": "^7.0.3", "@types/jsdoc-to-markdown": "^7.0.3",
"@types/node": "^16.11.56", "@types/node": "^16.11.56",
"eslint": "^8.23.0", "eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31", "eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"tsup": "^6.2.3", "tsup": "^6.2.3",
"typescript": "^4.8.2" "typescript": "^4.8.2"

View File

@@ -51,7 +51,7 @@
"devDependencies": { "devDependencies": {
"@types/node": "^16.11.56", "@types/node": "^16.11.56",
"eslint": "^8.23.0", "eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31", "eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"tsup": "^6.2.3", "tsup": "^6.2.3",
"typescript": "^4.8.2" "typescript": "^4.8.2"

View File

@@ -64,15 +64,15 @@
"@microsoft/api-extractor": "^7.30.0", "@microsoft/api-extractor": "^7.30.0",
"@types/node": "^16.11.56", "@types/node": "^16.11.56",
"@types/supertest": "^2.0.12", "@types/supertest": "^2.0.12",
"@vitest/coverage-c8": "^0.22.1", "@vitest/coverage-c8": "^0.23.0",
"downlevel-dts": "^0.10.1", "downlevel-dts": "^0.10.1",
"eslint": "^8.23.0", "eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31", "eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"supertest": "^6.2.4", "supertest": "^6.2.4",
"tsup": "^6.2.3", "tsup": "^6.2.3",
"typescript": "^4.8.2", "typescript": "^4.8.2",
"vitest": "^0.22.1" "vitest": "^0.23.0"
}, },
"engines": { "engines": {
"node": ">=16.9.0" "node": ">=16.9.0"

View File

@@ -65,14 +65,14 @@
"@favware/cliff-jumper": "^1.8.7", "@favware/cliff-jumper": "^1.8.7",
"@microsoft/api-extractor": "^7.30.0", "@microsoft/api-extractor": "^7.30.0",
"@types/node": "^16.11.56", "@types/node": "^16.11.56",
"@vitest/coverage-c8": "^0.22.1", "@vitest/coverage-c8": "^0.23.0",
"downlevel-dts": "^0.10.1", "downlevel-dts": "^0.10.1",
"eslint": "^8.23.0", "eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31", "eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"tsup": "^6.2.3", "tsup": "^6.2.3",
"typescript": "^4.8.2", "typescript": "^4.8.2",
"vitest": "^0.22.1" "vitest": "^0.23.0"
}, },
"engines": { "engines": {
"node": ">=16.9.0" "node": ">=16.9.0"

View File

@@ -84,7 +84,6 @@ export class DiscordAPIError extends Error {
return error.error_description ?? 'No Description'; return error.error_description ?? 'No Description';
} }
// eslint-disable-next-line consistent-return
private static *flattenDiscordError(obj: DiscordError, key = ''): IterableIterator<string> { private static *flattenDiscordError(obj: DiscordError, key = ''): IterableIterator<string> {
if (isErrorResponse(obj)) { if (isErrorResponse(obj)) {
return yield `${key.length ? `${key}[${obj.code}]` : `${obj.code}`}: ${obj.message}`.trim(); return yield `${key.length ? `${key}[${obj.code}]` : `${obj.code}`}: ${obj.message}`.trim();

View File

@@ -53,13 +53,13 @@
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^16.11.56", "@types/node": "^16.11.56",
"@vitest/coverage-c8": "^0.22.1", "@vitest/coverage-c8": "^0.23.0",
"eslint": "^8.23.0", "eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31", "eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"tsup": "^6.2.3", "tsup": "^6.2.3",
"typescript": "^4.8.2", "typescript": "^4.8.2",
"vitest": "^0.22.1" "vitest": "^0.23.0"
}, },
"engines": { "engines": {
"node": ">=16.9.0" "node": ">=16.9.0"

View File

@@ -69,8 +69,8 @@
"@types/node": "^16.11.56", "@types/node": "^16.11.56",
"downlevel-dts": "^0.10.1", "downlevel-dts": "^0.10.1",
"eslint": "^8.23.0", "eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31", "eslint-config-neon": "^0.1.33",
"jest": "^29.0.1", "jest": "^29.0.2",
"jest-websocket-mock": "^2.4.0", "jest-websocket-mock": "^2.4.0",
"mock-socket": "^9.1.5", "mock-socket": "^9.1.5",
"prettier": "^2.7.1", "prettier": "^2.7.1",

View File

@@ -1,7 +1,4 @@
/* eslint-disable consistent-return */
/* eslint-disable @typescript-eslint/unbound-method */ /* eslint-disable @typescript-eslint/unbound-method */
/* eslint-disable jsdoc/check-param-names */
/* eslint-disable @typescript-eslint/method-signature-style */
import type { Buffer } from 'node:buffer'; import type { Buffer } from 'node:buffer';
import { EventEmitter } from 'node:events'; import { EventEmitter } from 'node:events';
import type { GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateDispatchData } from 'discord-api-types/v10'; import type { GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateDispatchData } from 'discord-api-types/v10';
@@ -244,10 +241,10 @@ export class VoiceConnection extends EventEmitter {
* @param joinConfig - The data required to establish the voice connection * @param joinConfig - The data required to establish the voice connection
* @param options - The options used to create this voice connection * @param options - The options used to create this voice connection
*/ */
public constructor(joinConfig: JoinConfig, { debug, adapterCreator }: CreateVoiceConnectionOptions) { public constructor(joinConfig: JoinConfig, options: CreateVoiceConnectionOptions) {
super(); super();
this.debug = debug ? (message: string) => this.emit('debug', message) : null; this.debug = options.debug ? (message: string) => this.emit('debug', message) : null;
this.rejoinAttempts = 0; this.rejoinAttempts = 0;
this.receiver = new VoiceReceiver(this); this.receiver = new VoiceReceiver(this);
@@ -257,7 +254,7 @@ export class VoiceConnection extends EventEmitter {
this.onNetworkingError = this.onNetworkingError.bind(this); this.onNetworkingError = this.onNetworkingError.bind(this);
this.onNetworkingDebug = this.onNetworkingDebug.bind(this); this.onNetworkingDebug = this.onNetworkingDebug.bind(this);
const adapter = adapterCreator({ const adapter = options.adapterCreator({
onVoiceServerUpdate: (data) => this.addServerPacket(data), onVoiceServerUpdate: (data) => this.addServerPacket(data),
onVoiceStateUpdate: (data) => this.addStatePacket(data), onVoiceStateUpdate: (data) => this.addStatePacket(data),
destroy: () => this.destroy(false), destroy: () => this.destroy(false),

View File

@@ -489,7 +489,6 @@ export class Networking extends EventEmitter {
const state = this.state; const state = this.state;
if (state.code !== NetworkingStatusCode.Ready) return; if (state.code !== NetworkingStatusCode.Ready) return;
state.preparedPacket = this.createAudioPacket(opusPacket, state.connectionData); state.preparedPacket = this.createAudioPacket(opusPacket, state.connectionData);
// eslint-disable-next-line consistent-return
return state.preparedPacket; return state.preparedPacket;
} }

View File

@@ -101,7 +101,6 @@ export class VoiceReceiver {
// Open packet // Open packet
const decrypted = methods.open(buffer.slice(12, end), nonce, secretKey); const decrypted = methods.open(buffer.slice(12, end), nonce, secretKey);
if (!decrypted) return; if (!decrypted) return;
// eslint-disable-next-line consistent-return
return Buffer.from(decrypted); return Buffer.from(decrypted);
} }
@@ -124,7 +123,6 @@ export class VoiceReceiver {
packet = packet.subarray(4 + 4 * headerExtensionLength); packet = packet.subarray(4 + 4 * headerExtensionLength);
} }
// eslint-disable-next-line consistent-return
return packet; return packet;
} }

View File

@@ -43,11 +43,11 @@
"@discordjs/scripts": "workspace:^", "@discordjs/scripts": "workspace:^",
"@emotion/react": "^11.10.4", "@emotion/react": "^11.10.4",
"@emotion/server": "^11.10.0", "@emotion/server": "^11.10.0",
"@mantine/core": "^5.2.4", "@mantine/core": "^5.2.5",
"@mantine/hooks": "^5.2.4", "@mantine/hooks": "^5.2.5",
"@mantine/next": "^5.2.4", "@mantine/next": "^5.2.5",
"@mantine/nprogress": "^5.2.4", "@mantine/nprogress": "^5.2.5",
"@mantine/spotlight": "^5.2.4", "@mantine/spotlight": "^5.2.5",
"@microsoft/api-extractor-model": "7.24.0", "@microsoft/api-extractor-model": "7.24.0",
"@microsoft/tsdoc": "0.14.1", "@microsoft/tsdoc": "0.14.1",
"@vscode/codicons": "^0.0.32", "@vscode/codicons": "^0.0.32",
@@ -68,25 +68,25 @@
"swr": "^1.3.0" "swr": "^1.3.0"
}, },
"devDependencies": { "devDependencies": {
"@testing-library/react": "^13.3.0", "@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3", "@testing-library/user-event": "^14.4.3",
"@types/node": "^16.11.56", "@types/node": "^16.11.56",
"@types/react-dom": "^18.0.6", "@types/react-dom": "^18.0.6",
"@types/react-syntax-highlighter": "^15.5.5", "@types/react-syntax-highlighter": "^15.5.5",
"@unocss/cli": "^0.45.14", "@unocss/cli": "^0.45.15",
"@unocss/preset-web-fonts": "^0.45.14", "@unocss/preset-web-fonts": "^0.45.15",
"@unocss/reset": "^0.45.14", "@unocss/reset": "^0.45.15",
"@vitejs/plugin-react": "^2.0.1", "@vitejs/plugin-react": "^2.0.1",
"@vitest/coverage-c8": "^0.22.1", "@vitest/coverage-c8": "^0.23.0",
"concurrently": "^7.3.0", "concurrently": "^7.3.0",
"eslint": "^8.23.0", "eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31", "eslint-config-neon": "^0.1.33",
"happy-dom": "^6.0.4", "happy-dom": "^6.0.4",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"typescript": "^4.8.2", "typescript": "^4.8.2",
"unocss": "^0.45.14", "unocss": "^0.45.15",
"vercel": "^28.2.2", "vercel": "^28.2.2",
"vitest": "^0.22.1" "vitest": "^0.23.0"
}, },
"engines": { "engines": {
"node": ">=16.9.0" "node": ">=16.9.0"

View File

@@ -52,7 +52,7 @@ const useStyles = createStyles((theme) => ({
highlight: { highlight: {
position: 'relative', position: 'relative',
backgroundColor: theme.fn.variant({ variant: 'light', color: theme.primaryColor }).background, backgroundColor: theme.fn.variant({ variant: 'light', color: theme.primaryColor }).background!,
borderRadius: theme.radius.sm, borderRadius: theme.radius.sm,
padding: '4px 12px', padding: '4px 12px',
}, },

View File

@@ -66,16 +66,16 @@
"@favware/cliff-jumper": "^1.8.7", "@favware/cliff-jumper": "^1.8.7",
"@microsoft/api-extractor": "^7.30.0", "@microsoft/api-extractor": "^7.30.0",
"@types/node": "^16.11.56", "@types/node": "^16.11.56",
"@vitest/coverage-c8": "^0.22.1", "@vitest/coverage-c8": "^0.23.0",
"downlevel-dts": "^0.10.1", "downlevel-dts": "^0.10.1",
"eslint": "^8.23.0", "eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31", "eslint-config-neon": "^0.1.33",
"mock-socket": "^9.1.5", "mock-socket": "^9.1.5",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"tsup": "^6.2.3", "tsup": "^6.2.3",
"typescript": "^4.8.2", "typescript": "^4.8.2",
"undici": "^5.10.0", "undici": "^5.10.0",
"vitest": "^0.22.1", "vitest": "^0.23.0",
"zlib-sync": "^0.1.7" "zlib-sync": "^0.1.7"
}, },
"engines": { "engines": {

View File

@@ -209,7 +209,6 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
this.status = WebSocketShardStatus.Idle; this.status = WebSocketShardStatus.Idle;
if (options.recover !== undefined) { if (options.recover !== undefined) {
// eslint-disable-next-line consistent-return
return this.connect(); return this.connect();
} }
} }
@@ -302,7 +301,6 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
}); });
} }
// eslint-disable-next-line consistent-return
private async heartbeat(requested = false) { private async heartbeat(requested = false) {
if (!this.isAck && !requested) { if (!this.isAck && !requested) {
return this.destroy({ reason: 'Zombie connection', recover: WebSocketShardDestroyRecovery.Resume }); return this.destroy({ reason: 'Zombie connection', recover: WebSocketShardDestroyRecovery.Resume });
@@ -480,7 +478,6 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
this.emit('error', err); this.emit('error', err);
} }
// eslint-disable-next-line consistent-return
private async onClose(code: number) { private async onClose(code: number) {
switch (code) { switch (code) {
case CloseCodes.Normal: { case CloseCodes.Normal: {

1232
yarn.lock

File diff suppressed because it is too large Load Diff