effect-playwright 0.2.2 → 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.
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { C as PlaywrightErrorReason, S as PlaywrightError, _ as PlaywrightWorker, a as NewPageOptions, b as PlaywrightLocator, c as PlaywrightBrowserContext, d as PlaywrightPageService, f as PlaywrightDialog, g as PlaywrightResponse, h as PlaywrightRequest, i as NewContextOptions, l as PlaywrightBrowserContextService, m as PlaywrightFileChooser, n as PlaywrightService, o as PlaywrightBrowser, p as PlaywrightDownload, r as LaunchOptions, s as PlaywrightBrowserService, t as Playwright, u as PlaywrightPage, v as PlaywrightFrame, x as PlaywrightLocatorService, y as PlaywrightFrameService } from "./index-BdIazBpL.mjs";
1
+ import { C as PlaywrightErrorReason, S as PlaywrightError, _ as PlaywrightWorker, a as NewPageOptions, b as PlaywrightLocator, c as PlaywrightBrowserContext, d as PlaywrightPageService, f as PlaywrightDialog, g as PlaywrightResponse, h as PlaywrightRequest, i as NewContextOptions, l as PlaywrightBrowserContextService, m as PlaywrightFileChooser, n as PlaywrightService, o as PlaywrightBrowser, p as PlaywrightDownload, r as LaunchOptions, s as PlaywrightBrowserService, t as Playwright, u as PlaywrightPage, v as PlaywrightFrame, x as PlaywrightLocatorService, y as PlaywrightFrameService } from "./index-xKVXY-Ra.mjs";
2
2
  export { LaunchOptions, NewContextOptions, NewPageOptions, Playwright, PlaywrightBrowser, PlaywrightBrowserContext, PlaywrightBrowserContextService, PlaywrightBrowserService, PlaywrightDialog, PlaywrightDownload, PlaywrightError, PlaywrightErrorReason, PlaywrightFileChooser, PlaywrightFrame, PlaywrightFrameService, PlaywrightLocator, PlaywrightLocatorService, PlaywrightPage, PlaywrightPageService, PlaywrightRequest, PlaywrightResponse, PlaywrightService, PlaywrightWorker };
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { a as PlaywrightDownload, c as PlaywrightResponse, d as PlaywrightFrame, f as PlaywrightLocator, i as PlaywrightDialog, l as PlaywrightWorker, n as PlaywrightBrowser, o as PlaywrightFileChooser, p as PlaywrightError, r as PlaywrightBrowserContext, s as PlaywrightRequest, t as Playwright, u as PlaywrightPage } from "./src-BBJfAuBn.mjs";
1
+ import { a as PlaywrightDownload, c as PlaywrightResponse, d as PlaywrightFrame, f as PlaywrightLocator, i as PlaywrightDialog, l as PlaywrightWorker, n as PlaywrightBrowser, o as PlaywrightFileChooser, p as PlaywrightError, r as PlaywrightBrowserContext, s as PlaywrightRequest, t as Playwright, u as PlaywrightPage } from "./src-bN0oCmot.mjs";
2
2
 
3
3
  export { Playwright, PlaywrightBrowser, PlaywrightBrowserContext, PlaywrightDialog, PlaywrightDownload, PlaywrightError, PlaywrightFileChooser, PlaywrightFrame, PlaywrightLocator, PlaywrightPage, PlaywrightRequest, PlaywrightResponse, PlaywrightWorker };
@@ -92,7 +92,7 @@ var PlaywrightFrame = class PlaywrightFrame extends Context.Tag("effect-playwrig
92
92
  goto: (url, options) => use((f) => f.goto(url, options)),
93
93
  waitForURL: (url, options) => use((f) => f.waitForURL(url, options)),
94
94
  waitForLoadState: (state, options) => use((f) => f.waitForLoadState(state, options)),
95
- evaluate: (f, arg) => use((frame$1) => frame$1.evaluate(f, arg)),
95
+ evaluate: (f, arg) => use((frame) => frame.evaluate(f, arg)),
96
96
  title: use((f) => f.title()),
97
97
  use,
98
98
  locator: (selector, options) => PlaywrightLocator.make(frame.locator(selector, options)),
@@ -360,10 +360,10 @@ var PlaywrightBrowser = class PlaywrightBrowser extends Context.Tag("effect-play
360
360
  static make(browser) {
361
361
  const use = useHelper(browser);
362
362
  return PlaywrightBrowser.of({
363
- newPage: (options) => use((browser$1) => browser$1.newPage(options).then(PlaywrightPage.make)),
364
- close: use((browser$1) => browser$1.close()),
363
+ newPage: (options) => use((browser) => browser.newPage(options).then(PlaywrightPage.make)),
364
+ close: use((browser) => browser.close()),
365
365
  contexts: Effect.sync(() => browser.contexts().map(PlaywrightBrowserContext.make)),
366
- newContext: (options) => Effect.acquireRelease(use((browser$1) => browser$1.newContext(options).then(PlaywrightBrowserContext.make)), (context) => context.close.pipe(Effect.ignoreLogged)),
366
+ newContext: (options) => Effect.acquireRelease(use((browser) => browser.newContext(options).then(PlaywrightBrowserContext.make)), (context) => context.close.pipe(Effect.ignoreLogged)),
367
367
  browserType: Effect.sync(() => browser.browserType()),
368
368
  version: Effect.sync(() => browser.version()),
369
369
  isConnected: Effect.sync(() => browser.isConnected()),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "effect-playwright",
3
3
  "type": "module",
4
- "version": "0.2.2",
4
+ "version": "0.2.3",
5
5
  "description": "An Effect-based Playwright library.",
6
6
  "author": "Jobflow GmbH",
7
7
  "license": "ISC",
@@ -29,26 +29,26 @@
29
29
  "automation"
30
30
  ],
31
31
  "dependencies": {
32
- "playwright-core": "^1.57.0"
32
+ "playwright-core": "^1.58.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@effect/platform": "^0.93.3",
36
36
  "effect": "^3.19.6"
37
37
  },
38
38
  "devDependencies": {
39
- "@biomejs/biome": "2.3.11",
40
- "@effect/language-service": "0.71.1",
41
- "@effect/platform": "^0.94.1",
42
- "@effect/platform-node": "^0.104.0",
39
+ "@biomejs/biome": "2.3.13",
40
+ "@effect/language-service": "0.72.0",
41
+ "@effect/platform": "^0.94.2",
42
+ "@effect/platform-node": "^0.104.1",
43
43
  "@effect/vitest": "^0.27.0",
44
- "@types/node": "^25.0.9",
45
- "effect": "^3.19.14",
46
- "playwright": "^1.57.0",
47
- "tsdown": "0.20.0-beta.3",
44
+ "@types/node": "^25.1.0",
45
+ "effect": "^3.19.15",
46
+ "playwright": "^1.58.0",
47
+ "tsdown": "0.20.1",
48
48
  "tsx": "^4.21.0",
49
49
  "typedoc": "^0.28.16",
50
50
  "typescript": "^5.9.3",
51
- "vitest": "^4.0.17"
51
+ "vitest": "^4.0.18"
52
52
  },
53
53
  "types": "./dist/index.d.mts",
54
54
  "scripts": {
File without changes