From a71da557d5a685c033bbfb4cee20079bb29abfea Mon Sep 17 00:00:00 2001 From: Anton Efanov Date: Sat, 16 Nov 2024 20:54:08 +0100 Subject: [PATCH] docs: update discord invite (#618) --- CONTRIBUTING.md | 2 +- src/lib/sandbox/main-custom-element.ts | 7 ++++++- src/lib/sandbox/read-main-platform.ts | 7 ++++++- src/lib/web-worker/index.ts | 6 +++++- src/lib/web-worker/media/canvas.ts | 7 ++++++- src/lib/web-worker/worker-css-style-declaration.ts | 8 +++++++- 6 files changed, 31 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8d3f1a30..d4a14b3f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Local Development -Welcome 🎉!! If you've found a bug, or have an idea to add a feature we'd love to hear from you. It may save time to first ping the group on [Partytown's Discord channel](https://discord.gg/bNVSQmPzqy) to talk through any ideas or any issues that may be a bug. +Welcome 🎉!! If you've found a bug, or have an idea to add a feature we'd love to hear from you. It may save time to first ping the group on [Partytown's Discord channel](https://discord.gg/aHKdpdWv7a) to talk through any ideas or any issues that may be a bug. ## Installation diff --git a/src/lib/sandbox/main-custom-element.ts b/src/lib/sandbox/main-custom-element.ts index 107b1a29..dcb04bd8 100644 --- a/src/lib/sandbox/main-custom-element.ts +++ b/src/lib/sandbox/main-custom-element.ts @@ -1,4 +1,9 @@ -import { type CustomElementData, type PartytownWebWorker, type WinId, WorkerMessageType } from '../types'; +import { + type CustomElementData, + type PartytownWebWorker, + type WinId, + WorkerMessageType, +} from '../types'; import { defineConstructorName } from '../utils'; import { getAndSetInstanceId } from './main-instances'; import { winCtxs } from './main-constants'; diff --git a/src/lib/sandbox/read-main-platform.ts b/src/lib/sandbox/read-main-platform.ts index cfe8b45a..6c0a8c6f 100644 --- a/src/lib/sandbox/read-main-platform.ts +++ b/src/lib/sandbox/read-main-platform.ts @@ -7,7 +7,12 @@ import { serializeConfig, } from '../utils'; import { config, docImpl, libPath, mainWindow } from './main-globals'; -import { InterfaceType, type InterfaceInfo, type InterfaceMember, type InitWebWorkerData } from '../types'; +import { + InterfaceType, + type InterfaceInfo, + type InterfaceMember, + type InitWebWorkerData, +} from '../types'; export const readMainPlatform = () => { const elm = docImpl.createElement('i'); diff --git a/src/lib/web-worker/index.ts b/src/lib/web-worker/index.ts index b863600f..c86343b4 100644 --- a/src/lib/web-worker/index.ts +++ b/src/lib/web-worker/index.ts @@ -3,7 +3,11 @@ import { callWorkerRefHandler } from './worker-serialization'; import { createEnvironment } from './worker-environment'; import { debug } from '../utils'; import { environments, webWorkerCtx } from './worker-constants'; -import { type ForwardMainTriggerData, type MessageFromSandboxToWorker, WorkerMessageType } from '../types'; +import { + type ForwardMainTriggerData, + type MessageFromSandboxToWorker, + WorkerMessageType, +} from '../types'; import { initNextScriptsInWebWorker } from './worker-exec'; import { initWebWorker } from './init-web-worker'; import { logWorker, normalizedWinId } from '../log'; diff --git a/src/lib/web-worker/media/canvas.ts b/src/lib/web-worker/media/canvas.ts index e8e32b71..fdc9a24b 100644 --- a/src/lib/web-worker/media/canvas.ts +++ b/src/lib/web-worker/media/canvas.ts @@ -8,7 +8,12 @@ import { randomId, } from './bridge'; import { ContextKey, defineCstr, notImpl } from './utils'; -import { CallType, type WorkerConstructor, type WorkerInstance, type WorkerWindow } from '../../types'; +import { + CallType, + type WorkerConstructor, + type WorkerInstance, + type WorkerWindow, +} from '../../types'; export const initCanvas = (WorkerBase: WorkerConstructor, win: WorkerWindow) => { const HTMLCanvasDescriptorMap: PropertyDescriptorMap & ThisType = { diff --git a/src/lib/web-worker/worker-css-style-declaration.ts b/src/lib/web-worker/worker-css-style-declaration.ts index ff060ff5..9ce9c7b2 100644 --- a/src/lib/web-worker/worker-css-style-declaration.ts +++ b/src/lib/web-worker/worker-css-style-declaration.ts @@ -1,4 +1,10 @@ -import { type ApplyPath, CallType, type InstanceId, type WinId, type WorkerConstructor } from '../types'; +import { + type ApplyPath, + CallType, + type InstanceId, + type WinId, + type WorkerConstructor, +} from '../types'; import { cachedDimensions, InstanceDataKey } from './worker-constants'; import { callMethod, getter, setter } from './worker-proxy'; import { defineConstructorName } from '../utils';