@skrillex1224/playwright-toolkit 2.1.238 → 2.1.240

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) => {
@@ -2712,7 +2712,7 @@ var ActorInfo = {
2712
2712
  path: "/",
2713
2713
  device: Device.Mobile,
2714
2714
  share: {
2715
- mode: "dom",
2715
+ mode: "custom",
2716
2716
  prefix: "",
2717
2717
  xurl: []
2718
2718
  }