Skip to content

feat: event.source.postMessage instead of window.opener.postMessage #877

feat: event.source.postMessage instead of window.opener.postMessage

feat: event.source.postMessage instead of window.opener.postMessage #877

Triggered via pull request October 26, 2024 14:05
Status Failure
Total duration 31s
Artifacts

lib-checks.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 1 warning
build: src/signer.ts#L137
Argument of type '{ data: any; lastEventId: string; origin: string; ports: readonly MessagePort[]; initMessageEvent(type: string, bubbles?: boolean | undefined, cancelable?: boolean | undefined, data?: any, origin?: string | undefined, lastEventId?: string | undefined, source?: MessageEventSource | ... 1 more ... | undefined, ports?:...' is not assignable to parameter of type 'SignerMessageEvent'.
build: src/signer.ts#L259
Argument of type '{ id: string | number | null; origin: string; }' is not assignable to parameter of type '{ id: string | number | null; origin: string; source: MessagePort | Window | ServiceWorker; }'.
build
Process completed with exit code 2.
lint
Process completed with exit code 1.
lint: src/handlers/signer.handlers.ts#L28
'origin' is defined but never used. Allowed unused args must match /^_/u