From 19d2a545ed44fe36afbaf09e1ee9a2bf55045717 Mon Sep 17 00:00:00 2001 From: Anton Efanov Date: Wed, 28 Aug 2024 17:30:48 +0300 Subject: [PATCH 1/3] Update CONTRIBUTING.md docs: update discord invide --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8d3f1a30..54fd8ab5 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.com/invite/uhNcF6k6) to talk through any ideas or any issues that may be a bug. ## Installation From 9ac35b5e9f4f07dab3d6baae766ee010c5f1b3b0 Mon Sep 17 00:00:00 2001 From: gioboa Date: Sat, 16 Nov 2024 20:44:10 +0100 Subject: [PATCH 2/3] chore: update invite with a unlimited one --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 54fd8ab5..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.com/invite/uhNcF6k6) 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 From d8bfc9b92f9e8d2d23e7287edec60011932f04cd Mon Sep 17 00:00:00 2001 From: gioboa Date: Sat, 16 Nov 2024 20:48:01 +0100 Subject: [PATCH 3/3] =?UTF-8?q?chore:=20linter=20=F0=9F=A7=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 +++++++- 5 files changed, 30 insertions(+), 5 deletions(-) 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';