diff --git a/electron/ipc/captions/mergeSources.ts b/electron/ipc/captions/mergeSources.ts index c2057162..35f427d0 100644 --- a/electron/ipc/captions/mergeSources.ts +++ b/electron/ipc/captions/mergeSources.ts @@ -7,7 +7,7 @@ export function mergeCaptionSources( system: CaptionCuePayload[], ): CaptionCuePayload[] { // Sound-event labels are not competing microphone speech. - const micSpeech = microphone.filter((cue) => !/^(?:\s*[\[(][^\])]+[\])]\s*)+$/.test(cue.text)); + const micSpeech = microphone.filter((cue) => !/^(?:\s*[[(][^\])]+[\])]\s*)+$/.test(cue.text)); const overlapsMic = (startMs: number, endMs: number) => micSpeech.some((cue) => startMs < cue.endMs && endMs > cue.startMs); const systemCues: CaptionCuePayload[] = []; diff --git a/services/recordly-share/worker/src/index.js b/services/recordly-share/worker/src/index.js index 20e878e1..75d53c7d 100644 --- a/services/recordly-share/worker/src/index.js +++ b/services/recordly-share/worker/src/index.js @@ -916,7 +916,7 @@ async function handleMultipartAbort(request, env, shareCode, uploadId) { try { const multipartUpload = env.VIDEOS_BUCKET.resumeMultipartUpload(key, uploadId); await multipartUpload.abort(); - } catch (e) { + } catch (_e) { // Ignore errors — upload may already be completed or expired } return jsonResponse({ ok: true }); @@ -1068,7 +1068,7 @@ async function handleVideoStream(request, env, shareCode) { try { object = await env.VIDEOS_BUCKET.get(key, { range: r2Range }); - } catch (e) { + } catch (_e) { // R2 throws on an unsatisfiable range (e.g. offset past end of object). return new Response('Range not satisfiable', { status: 416 }); } diff --git a/services/recordly-share/worker/web/src/layouts/Base.astro b/services/recordly-share/worker/web/src/layouts/Base.astro index 94d63162..da18f12b 100644 --- a/services/recordly-share/worker/web/src/layouts/Base.astro +++ b/services/recordly-share/worker/web/src/layouts/Base.astro @@ -1,10 +1,9 @@ --- -interface Props { +export interface Props { title: string; } import '../styles/global.css'; -const { title } = Astro.props; --- @@ -13,7 +12,7 @@ const { title } = Astro.props; - {title} + {Astro.props.title} diff --git a/src/components/video-editor/captions/useAutoCaptionController.test.ts b/src/components/video-editor/captions/useAutoCaptionController.test.ts index b9ed7181..afab0a81 100644 --- a/src/components/video-editor/captions/useAutoCaptionController.test.ts +++ b/src/components/video-editor/captions/useAutoCaptionController.test.ts @@ -4,8 +4,11 @@ const state = vi.hoisted(() => ({ refs: [] as { current: unknown }[], index: 0 } vi.mock("react", () => ({ useCallback: (callback: unknown) => callback, useEffect: () => {}, - useRef: (current: unknown) => - state.refs[state.index++] ?? (state.refs[state.index - 1] = { current }), + useRef: (current: unknown) => { + const index = state.index++; + state.refs[index] ??= { current }; + return state.refs[index]; + }, })); vi.mock("@/components/ui/toast", () => ({ toast: { error: vi.fn(), info: vi.fn(), success: vi.fn() }, diff --git a/src/design-extra-catalog.tsx b/src/design-extra-catalog.tsx index f99d29ec..1e941784 100644 --- a/src/design-extra-catalog.tsx +++ b/src/design-extra-catalog.tsx @@ -188,7 +188,7 @@ function ExportState({ mode }: { mode: string }) { undefined} - onRequestShareSignIn={() => {}} + onRequestShareSignIn={() => undefined} shareRequestNonce={0} t={t} exportSettings={exportSettings}