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.
- package/dist/experimental/index.d.mts +2 -2
- package/dist/experimental/index.mjs +3 -3
- package/dist/{index-ChKUVZYe.d.mts → index-xKVXY-Ra.d.mts} +521 -521
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-BBJfAuBn.mjs → src-bN0oCmot.mjs} +4 -4
- package/package.json +11 -11
- /package/dist/{chunk-BiucMVzj.mjs → chunk-Bo1DHCg-.mjs} +0 -0
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-
|
|
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-
|
|
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
|
|
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
|
|
364
|
-
close: use((browser
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
40
|
-
"@effect/language-service": "0.
|
|
41
|
-
"@effect/platform": "^0.94.
|
|
42
|
-
"@effect/platform-node": "^0.104.
|
|
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
|
|
45
|
-
"effect": "^3.19.
|
|
46
|
-
"playwright": "^1.
|
|
47
|
-
"tsdown": "0.20.
|
|
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.
|
|
51
|
+
"vitest": "^4.0.18"
|
|
52
52
|
},
|
|
53
53
|
"types": "./dist/index.d.mts",
|
|
54
54
|
"scripts": {
|
|
File without changes
|