@skrillex1224/playwright-toolkit 2.1.239 → 2.1.241

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.js CHANGED
@@ -2555,7 +2555,7 @@ var createActorInfo = (info) => {
2555
2555
  const normalizeShare = (value) => {
2556
2556
  const raw = value && typeof value === "object" ? value : {};
2557
2557
  const modeRaw = String(raw.mode || "dom").trim().toLowerCase();
2558
- const mode = modeRaw === "response" ? "response" : "dom";
2558
+ const mode = ["dom", "response", "custom"].includes(modeRaw) ? modeRaw : "dom";
2559
2559
  const prefix = String(raw.prefix || "").trim();
2560
2560
  const rawXurl = Array.isArray(raw.xurl) ? raw.xurl : [];
2561
2561
  const normalizeMatcherList = (input) => {
@@ -2713,7 +2713,7 @@ var ActorInfo = {
2713
2713
  path: "/",
2714
2714
  device: Device.Mobile,
2715
2715
  share: {
2716
- mode: "dom",
2716
+ mode: "custom",
2717
2717
  prefix: "",
2718
2718
  xurl: []
2719
2719
  }