Skip to content

Commit

Permalink
chore: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed Sep 4, 2022
1 parent 8b3d006 commit 4ffdada
Show file tree
Hide file tree
Showing 21 changed files with 724 additions and 614 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"is-ci": "^3.0.1",
"lint-staged": "^13.0.3",
"tsup": "^6.2.3",
"turbo": "^1.4.4",
"turbo": "^1.4.5",
"typescript": "^4.8.2"
},
"resolutions": {
Expand Down
6 changes: 3 additions & 3 deletions packages/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@
},
"devDependencies": {
"@types/node": "^16.11.56",
"@vitest/coverage-c8": "^0.22.1",
"@vitest/coverage-c8": "^0.23.0",
"eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31",
"eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
"typescript": "^4.8.2",
"vitest": "^0.22.1"
"vitest": "^0.23.0"
},
"engines": {
"node": ">=16.9.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/api-extractor-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"devDependencies": {
"@types/node": "^16.11.56",
"eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31",
"eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
"typescript": "^4.8.2"
Expand Down
6 changes: 3 additions & 3 deletions packages/builders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@
"@favware/cliff-jumper": "^1.8.7",
"@microsoft/api-extractor": "^7.30.0",
"@types/node": "^16.11.56",
"@vitest/coverage-c8": "^0.22.1",
"@vitest/coverage-c8": "^0.23.0",
"downlevel-dts": "^0.10.1",
"eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31",
"eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
"typescript": "^4.8.2",
"vitest": "^0.22.1"
"vitest": "^0.23.0"
},
"engines": {
"node": ">=16.9.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/collection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@
"@favware/cliff-jumper": "^1.8.7",
"@microsoft/api-extractor": "^7.30.0",
"@types/node": "^16.11.56",
"@vitest/coverage-c8": "^0.22.1",
"@vitest/coverage-c8": "^0.23.0",
"downlevel-dts": "^0.10.1",
"eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31",
"eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
"typescript": "^4.8.2",
"vitest": "^0.22.1"
"vitest": "^0.23.0"
},
"engines": {
"node": ">=16.9.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/discord.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@types/node": "^16.11.56",
"dtslint": "^4.2.1",
"eslint": "^8.23.0",
"jest": "^29.0.1",
"jest": "^29.0.2",
"prettier": "^2.7.1",
"tsd": "^0.23.0",
"tslint": "^6.1.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/docgen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@
"commander": "^9.4.0",
"jsdoc-to-markdown": "^7.1.1",
"tslib": "^2.4.0",
"typedoc": "^0.23.13"
"typedoc": "^0.23.14"
},
"devDependencies": {
"@favware/cliff-jumper": "^1.8.7",
"@types/jsdoc-to-markdown": "^7.0.3",
"@types/node": "^16.11.56",
"eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31",
"eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
"typescript": "^4.8.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/proxy-container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"devDependencies": {
"@types/node": "^16.11.56",
"eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31",
"eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
"typescript": "^4.8.2"
Expand Down
6 changes: 3 additions & 3 deletions packages/proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@
"@microsoft/api-extractor": "^7.30.0",
"@types/node": "^16.11.56",
"@types/supertest": "^2.0.12",
"@vitest/coverage-c8": "^0.22.1",
"@vitest/coverage-c8": "^0.23.0",
"downlevel-dts": "^0.10.1",
"eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31",
"eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1",
"supertest": "^6.2.4",
"tsup": "^6.2.3",
"typescript": "^4.8.2",
"vitest": "^0.22.1"
"vitest": "^0.23.0"
},
"engines": {
"node": ">=16.9.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@
"@favware/cliff-jumper": "^1.8.7",
"@microsoft/api-extractor": "^7.30.0",
"@types/node": "^16.11.56",
"@vitest/coverage-c8": "^0.22.1",
"@vitest/coverage-c8": "^0.23.0",
"downlevel-dts": "^0.10.1",
"eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31",
"eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
"typescript": "^4.8.2",
"vitest": "^0.22.1"
"vitest": "^0.23.0"
},
"engines": {
"node": ">=16.9.0"
Expand Down
1 change: 0 additions & 1 deletion packages/rest/src/lib/errors/DiscordAPIError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ export class DiscordAPIError extends Error {
return error.error_description ?? 'No Description';
}

// eslint-disable-next-line consistent-return
private static *flattenDiscordError(obj: DiscordError, key = ''): IterableIterator<string> {
if (isErrorResponse(obj)) {
return yield `${key.length ? `${key}[${obj.code}]` : `${obj.code}`}: ${obj.message}`.trim();
Expand Down
6 changes: 3 additions & 3 deletions packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
},
"devDependencies": {
"@types/node": "^16.11.56",
"@vitest/coverage-c8": "^0.22.1",
"@vitest/coverage-c8": "^0.23.0",
"eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31",
"eslint-config-neon": "^0.1.33",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
"typescript": "^4.8.2",
"vitest": "^0.22.1"
"vitest": "^0.23.0"
},
"engines": {
"node": ">=16.9.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/voice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
"@types/node": "^16.11.56",
"downlevel-dts": "^0.10.1",
"eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31",
"jest": "^29.0.1",
"eslint-config-neon": "^0.1.33",
"jest": "^29.0.2",
"jest-websocket-mock": "^2.4.0",
"mock-socket": "^9.1.5",
"prettier": "^2.7.1",
Expand Down
9 changes: 3 additions & 6 deletions packages/voice/src/VoiceConnection.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/* eslint-disable consistent-return */
/* 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 { EventEmitter } from 'node:events';
import type { GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateDispatchData } from 'discord-api-types/v10';
Expand Down Expand Up @@ -244,10 +241,10 @@ export class VoiceConnection extends EventEmitter {
* @param joinConfig - The data required to establish the 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();

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.receiver = new VoiceReceiver(this);
Expand All @@ -257,7 +254,7 @@ export class VoiceConnection extends EventEmitter {
this.onNetworkingError = this.onNetworkingError.bind(this);
this.onNetworkingDebug = this.onNetworkingDebug.bind(this);

const adapter = adapterCreator({
const adapter = options.adapterCreator({
onVoiceServerUpdate: (data) => this.addServerPacket(data),
onVoiceStateUpdate: (data) => this.addStatePacket(data),
destroy: () => this.destroy(false),
Expand Down
1 change: 0 additions & 1 deletion packages/voice/src/networking/Networking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,6 @@ export class Networking extends EventEmitter {
const state = this.state;
if (state.code !== NetworkingStatusCode.Ready) return;
state.preparedPacket = this.createAudioPacket(opusPacket, state.connectionData);
// eslint-disable-next-line consistent-return
return state.preparedPacket;
}

Expand Down
2 changes: 0 additions & 2 deletions packages/voice/src/receive/VoiceReceiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export class VoiceReceiver {
// Open packet
const decrypted = methods.open(buffer.slice(12, end), nonce, secretKey);
if (!decrypted) return;
// eslint-disable-next-line consistent-return
return Buffer.from(decrypted);
}

Expand All @@ -124,7 +123,6 @@ export class VoiceReceiver {
packet = packet.subarray(4 + 4 * headerExtensionLength);
}

// eslint-disable-next-line consistent-return
return packet;
}

Expand Down
26 changes: 13 additions & 13 deletions packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
"@discordjs/scripts": "workspace:^",
"@emotion/react": "^11.10.4",
"@emotion/server": "^11.10.0",
"@mantine/core": "^5.2.4",
"@mantine/hooks": "^5.2.4",
"@mantine/next": "^5.2.4",
"@mantine/nprogress": "^5.2.4",
"@mantine/spotlight": "^5.2.4",
"@mantine/core": "^5.2.5",
"@mantine/hooks": "^5.2.5",
"@mantine/next": "^5.2.5",
"@mantine/nprogress": "^5.2.5",
"@mantine/spotlight": "^5.2.5",
"@microsoft/api-extractor-model": "7.24.0",
"@microsoft/tsdoc": "0.14.1",
"@vscode/codicons": "^0.0.32",
Expand All @@ -68,25 +68,25 @@
"swr": "^1.3.0"
},
"devDependencies": {
"@testing-library/react": "^13.3.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"@types/node": "^16.11.56",
"@types/react-dom": "^18.0.6",
"@types/react-syntax-highlighter": "^15.5.5",
"@unocss/cli": "^0.45.14",
"@unocss/preset-web-fonts": "^0.45.14",
"@unocss/reset": "^0.45.14",
"@unocss/cli": "^0.45.15",
"@unocss/preset-web-fonts": "^0.45.15",
"@unocss/reset": "^0.45.15",
"@vitejs/plugin-react": "^2.0.1",
"@vitest/coverage-c8": "^0.22.1",
"@vitest/coverage-c8": "^0.23.0",
"concurrently": "^7.3.0",
"eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31",
"eslint-config-neon": "^0.1.33",
"happy-dom": "^6.0.4",
"prettier": "^2.7.1",
"typescript": "^4.8.2",
"unocss": "^0.45.14",
"unocss": "^0.45.15",
"vercel": "^28.2.2",
"vitest": "^0.22.1"
"vitest": "^0.23.0"
},
"engines": {
"node": ">=16.9.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const useStyles = createStyles((theme) => ({

highlight: {
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,
padding: '4px 12px',
},
Expand Down
6 changes: 3 additions & 3 deletions packages/ws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@
"@favware/cliff-jumper": "^1.8.7",
"@microsoft/api-extractor": "^7.30.0",
"@types/node": "^16.11.56",
"@vitest/coverage-c8": "^0.22.1",
"@vitest/coverage-c8": "^0.23.0",
"downlevel-dts": "^0.10.1",
"eslint": "^8.23.0",
"eslint-config-neon": "^0.1.31",
"eslint-config-neon": "^0.1.33",
"mock-socket": "^9.1.5",
"prettier": "^2.7.1",
"tsup": "^6.2.3",
"typescript": "^4.8.2",
"undici": "^5.10.0",
"vitest": "^0.22.1",
"vitest": "^0.23.0",
"zlib-sync": "^0.1.7"
},
"engines": {
Expand Down
3 changes: 0 additions & 3 deletions packages/ws/src/ws/WebSocketShard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
this.status = WebSocketShardStatus.Idle;

if (options.recover !== undefined) {
// eslint-disable-next-line consistent-return
return this.connect();
}
}
Expand Down Expand Up @@ -302,7 +301,6 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
});
}

// eslint-disable-next-line consistent-return
private async heartbeat(requested = false) {
if (!this.isAck && !requested) {
return this.destroy({ reason: 'Zombie connection', recover: WebSocketShardDestroyRecovery.Resume });
Expand Down Expand Up @@ -480,7 +478,6 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
this.emit('error', err);
}

// eslint-disable-next-line consistent-return
private async onClose(code: number) {
switch (code) {
case CloseCodes.Normal: {
Expand Down
Loading

1 comment on commit 4ffdada

@vercel
Copy link

@vercel vercel bot commented on 4ffdada Sep 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.