effect-playwright 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { S as PlaywrightError, d as PlaywrightPageService, o as PlaywrightBrowser, s as PlaywrightBrowserService, y as PlaywrightFrameService } from "../index-ChKUVZYe.mjs";
1
+ import { S as PlaywrightError, d as PlaywrightPageService, o as PlaywrightBrowser, s as PlaywrightBrowserService, y as PlaywrightFrameService } from "../index-xKVXY-Ra.mjs";
2
2
  import { Context, Effect, Layer, Stream } from "effect";
3
3
  import { BrowserType, LaunchOptions } from "playwright-core";
4
4
  import { Scope as Scope$1 } from "effect/Scope";
@@ -16,7 +16,7 @@ declare const allPages: (browser: PlaywrightBrowserService) => Effect.Effect<Pla
16
16
  * Returns all frames in the browser from all pages in all contexts.
17
17
  * @category util
18
18
  */
19
- declare const allFrames: (browser: PlaywrightBrowserService) => Effect.Effect<(readonly PlaywrightFrameService[])[], PlaywrightError, never>;
19
+ declare const allFrames: (browser: PlaywrightBrowserService) => Effect.Effect<PlaywrightFrameService[], PlaywrightError, never>;
20
20
  /**
21
21
  * Returns a stream of all framenavigated events for all current and future pages in the browser.
22
22
  * In all current contexts (but not future contexts).
@@ -1,5 +1,5 @@
1
- import { t as __exportAll } from "../chunk-BiucMVzj.mjs";
2
- import { n as PlaywrightBrowser, t as Playwright } from "../src-BBJfAuBn.mjs";
1
+ import { t as __exportAll } from "../chunk-Bo1DHCg-.mjs";
2
+ import { n as PlaywrightBrowser, t as Playwright } from "../src-bN0oCmot.mjs";
3
3
  import { Array, Context, Effect, Layer, Stream, pipe } from "effect";
4
4
 
5
5
  //#region src/experimental/browser-utils.ts
@@ -17,7 +17,7 @@ const allPages = (browser) => browser.contexts.pipe(Effect.flatMap((contexts) =>
17
17
  * Returns all frames in the browser from all pages in all contexts.
18
18
  * @category util
19
19
  */
20
- const allFrames = (browser) => allPages(browser).pipe(Effect.flatMap((pages) => Effect.all(pages.map((page) => page.frames))));
20
+ const allFrames = (browser) => allPages(browser).pipe(Effect.flatMap((pages) => Effect.all(pages.map((page) => page.frames))), Effect.map(Array.flatten));
21
21
  /**
22
22
  * Returns a stream of all framenavigated events for all current and future pages in the browser.
23
23
  * In all current contexts (but not future contexts).