From 289b04cf1cbde1a35d0c916ad2ea54abee357587 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Tue, 16 Jun 2026 01:23:34 +0700 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20auto=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/dependabot.yml | 6 +++--- package.json | 3 ++- src/main/mirror-connection.ts | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5f0889c..d91a92a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,7 +5,7 @@ version: 2 updates: - - package-ecosystem: "npm" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: 'npm' # See documentation for possible values + directory: '/' # Location of package manifests schedule: - interval: "weekly" + interval: 'weekly' diff --git a/package.json b/package.json index d9ba953..a060c50 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "author": "", "private": true, "scripts": { - "format": "prettier --write .", + "format": "prettier --check .", + "format:fix": "prettier --write .", "lint": "eslint --cache .", "typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false", "typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false", diff --git a/src/main/mirror-connection.ts b/src/main/mirror-connection.ts index c37cd16..d3625cd 100644 --- a/src/main/mirror-connection.ts +++ b/src/main/mirror-connection.ts @@ -5,6 +5,7 @@ import { encodeFrame, FrameReader, OP_FRAME, OP_HANDSHAKE } from './ipc-protocol * A lazily-established connection to a secondary Discord instance that * mirrors the primary connection's handshake and SET_ACTIVITY frames. */ + export class MirrorConnection { private readonly sock: net.Socket private readonly reader = new FrameReader()