browserscale-ts 1.0.1 → 1.2.0
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/browser.d.ts +3 -3
- package/dist/browser.js +2 -2
- package/dist/browserscale.browser.js +322 -87
- package/dist/client.d.ts +70 -27
- package/dist/client.js +106 -45
- package/dist/errors.d.ts +153 -4
- package/dist/errors.js +120 -4
- package/dist/gen/wrc_pb.d.ts +716 -4
- package/dist/gen/wrc_pb.js +140 -55
- package/dist/index.d.ts +27 -3
- package/dist/index.js +31 -2
- package/dist/internal/convert.d.ts +16 -5
- package/dist/internal/convert.js +126 -10
- package/dist/options.d.ts +25 -0
- package/dist/types.d.ts +77 -0
- package/package.json +1 -1
package/dist/browser.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ export { WebSocketTransport } from "./ws-transport.ts";
|
|
|
4
4
|
export { BrowserConfig } from "./config.ts";
|
|
5
5
|
export { Locator, css, js, node, at, AllFrames } from "./locator.ts";
|
|
6
6
|
export { DefaultWaitTimeoutMs, DefaultVisible, DefaultSteadyMs, } from "./defaults.ts";
|
|
7
|
-
export { BrowserScaleError } from "./errors.ts";
|
|
8
|
-
export type { Rect, FrameInfo, PageInfo, Header, InterceptedRequest, InterceptedResponse, WaitResult, NavigateResult, EvaluateResult, ElementResult, DragResult, SelectOptionResult, ObservationResult, ScreenshotResult, DOMResult, InspectResult, RentResponse, } from "./types.ts";
|
|
9
|
-
export type { Button, ClickAction, ClickOpts, FillOpts, SelectOpts, WaitOpts, WaitUntil, NavigateOpts, LoadHTMLOpts, GetDOMOpts, GetObservationOpts, ScreenshotOpts, } from "./options.ts";
|
|
7
|
+
export { BrowserScaleError, ClickError, FillError, DragError, ScrollError, MoveError, SelectOptionError, WaitError, } from "./errors.ts";
|
|
8
|
+
export type { Rect, FrameInfo, PageInfo, Header, InterceptedRequest, InterceptedResponse, WaitResult, WaitConditionStatus, OccluderInfo, NavigateResult, EvaluateResult, ElementResult, DragResult, SelectOptionResult, ObservationResult, ScreenshotResult, ReadCanvasResult, DOMResult, InspectResult, RentResponse, } from "./types.ts";
|
|
9
|
+
export type { Button, ClickAction, ClickOpts, FillOpts, SelectOpts, WaitOpts, WaitUntil, NavigateOpts, LoadHTMLOpts, GetDOMOpts, GetObservationOpts, ScreenshotOpts, ReadCanvasOpts, } from "./options.ts";
|
|
10
10
|
export { type RequestPattern, type HeaderModification, type HeaderModificationAction, } from "./network.ts";
|
|
11
11
|
export type { CookieParam } from "./cookies.ts";
|
|
12
12
|
export type { StorageItem, StorageOriginEntry } from "./storage.ts";
|
package/dist/browser.js
CHANGED
|
@@ -8,8 +8,8 @@ export { BrowserConfig } from "./config.js";
|
|
|
8
8
|
export { Locator, css, js, node, at, AllFrames } from "./locator.js";
|
|
9
9
|
// Defaults the SDK applies before sending a request
|
|
10
10
|
export { DefaultWaitTimeoutMs, DefaultVisible, DefaultSteadyMs, } from "./defaults.js";
|
|
11
|
-
// Errors
|
|
12
|
-
export { BrowserScaleError } from "./errors.js";
|
|
11
|
+
// Errors — base class plus the typed semantic-failure subclasses
|
|
12
|
+
export { BrowserScaleError, ClickError, FillError, DragError, ScrollError, MoveError, SelectOptionError, WaitError, } from "./errors.js";
|
|
13
13
|
// Browser-side factory functions ───────────────────────────────────────
|
|
14
14
|
/**
|
|
15
15
|
* Attaches a {@link CloudBrowser} to an existing session over a raw
|