@skrillex1224/playwright-toolkit 3.0.45 → 3.0.48
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/index.cjs +10 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +10 -0
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -10433,6 +10433,16 @@ var Share = {
|
|
|
10433
10433
|
]);
|
|
10434
10434
|
if (timer) clearTimeout(timer);
|
|
10435
10435
|
if (actionResult.type === "error") {
|
|
10436
|
+
const selected = candidates[share.mode];
|
|
10437
|
+
if (selected?.link) {
|
|
10438
|
+
logger17.warning(`performActions \u6267\u884C\u5931\u8D25\u4F46\u5DF2\u6355\u83B7\u5206\u4EAB\u94FE\u63A5\uFF0C\u4F7F\u7528\u5DF2\u6355\u83B7\u7ED3\u679C: source=${share.mode}, link=${selected.link}`);
|
|
10439
|
+
return {
|
|
10440
|
+
link: selected.link,
|
|
10441
|
+
payloadText: selected.payloadText,
|
|
10442
|
+
payloadSnapshot: toSnapshot(selected.payloadText, payloadSnapshotMaxLen),
|
|
10443
|
+
source: share.mode
|
|
10444
|
+
};
|
|
10445
|
+
}
|
|
10436
10446
|
logger17.fail("captureLink.performActions", actionResult.error);
|
|
10437
10447
|
throw actionResult.error;
|
|
10438
10448
|
}
|