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