@skrillex1224/playwright-toolkit 2.1.286 → 3.0.1
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 +3 -3
- package/dist/browser.js.map +2 -2
- package/dist/index.cjs +1435 -1574
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +1435 -1574
- package/dist/index.js.map +4 -4
- package/index.d.ts +15 -37
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -2770,7 +2770,7 @@ var Device = Object.freeze({
|
|
|
2770
2770
|
});
|
|
2771
2771
|
var Mode = Object.freeze({
|
|
2772
2772
|
Default: "default",
|
|
2773
|
-
|
|
2773
|
+
Cloak: "cloak"
|
|
2774
2774
|
});
|
|
2775
2775
|
var normalizeDevice = (value, fallback = Device.Desktop) => {
|
|
2776
2776
|
const normalizedFallback = String(fallback || "").trim().toLowerCase() === Device.Mobile ? Device.Mobile : Device.Desktop;
|
|
@@ -2780,9 +2780,9 @@ var normalizeDevice = (value, fallback = Device.Desktop) => {
|
|
|
2780
2780
|
return normalizedFallback;
|
|
2781
2781
|
};
|
|
2782
2782
|
var normalizeMode = (value, fallback = Mode.Default) => {
|
|
2783
|
-
const normalizedFallback = String(fallback || "").trim().toLowerCase() === Mode.
|
|
2783
|
+
const normalizedFallback = String(fallback || "").trim().toLowerCase() === Mode.Cloak ? Mode.Cloak : Mode.Default;
|
|
2784
2784
|
const raw = String(value || "").trim().toLowerCase();
|
|
2785
|
-
if (raw === Mode.
|
|
2785
|
+
if (raw === Mode.Cloak) return Mode.Cloak;
|
|
2786
2786
|
if (raw === Mode.Default) return Mode.Default;
|
|
2787
2787
|
return normalizedFallback;
|
|
2788
2788
|
};
|