@skrillex1224/playwright-toolkit 3.0.49 → 3.0.51
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.js
CHANGED
|
@@ -10401,6 +10401,16 @@ var Share = {
|
|
|
10401
10401
|
]);
|
|
10402
10402
|
if (timer) clearTimeout(timer);
|
|
10403
10403
|
if (actionResult.type === "error") {
|
|
10404
|
+
const selected = candidates[share.mode];
|
|
10405
|
+
if (selected?.link) {
|
|
10406
|
+
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}`);
|
|
10407
|
+
return {
|
|
10408
|
+
link: selected.link,
|
|
10409
|
+
payloadText: selected.payloadText,
|
|
10410
|
+
payloadSnapshot: toSnapshot(selected.payloadText, payloadSnapshotMaxLen),
|
|
10411
|
+
source: share.mode
|
|
10412
|
+
};
|
|
10413
|
+
}
|
|
10404
10414
|
logger17.fail("captureLink.performActions", actionResult.error);
|
|
10405
10415
|
throw actionResult.error;
|
|
10406
10416
|
}
|