2026-04-10

- corvée: met à jour les deps
- corvée: formate
This commit is contained in:
gcch 2026-04-10 17:21:57 +02:00
commit d50de6d534
85 changed files with 132090 additions and 31346 deletions

View file

@ -1,5 +1,5 @@
import { Option, pipe } from "effect";
import { Page } from "playwright/test";
import type { Page } from "playwright/test";
export type BackendHeaders = {
authString: string;
@ -12,7 +12,7 @@ export type BackendHeaders = {
export const getBackendHeadersFromHtml = async (page: Page): Promise<BackendHeaders> => {
const backendHeaders: BackendHeaders | undefined = pipe(
Option.fromNullishOr(await page.locator("#injection-v2").textContent()),
Option.andThen((j) => JSON.parse(j) as BackendHeaders),
Option.andThen(j => JSON.parse(j) as BackendHeaders),
Option.getOrUndefined,
);