@bigbinary/neeto-playwright-commons 1.13.12 → 1.13.13

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/index.cjs.js CHANGED
@@ -12080,13 +12080,13 @@ class MailerUtils {
12080
12080
  this.getEmails = async (ids) => {
12081
12081
  const messageDetailsBody = {
12082
12082
  ids,
12083
- bodyProperties: ["type"],
12083
+ bodyProperties: ["type", "name"],
12084
12084
  fetchHTMLBodyValues: true,
12085
12085
  };
12086
12086
  const { methodResponses: [[, { list }]], } = await this.fastmailApi.apiRequest("Email/get", messageDetailsBody);
12087
12087
  const formattedList = list.map((listItem) => {
12088
12088
  var _a;
12089
- const { id, from, to, bodyValues, cc, bcc, replyTo, receivedAt, subject, } = listItem;
12089
+ const { id, from, to, bodyValues, cc, bcc, replyTo, receivedAt, subject, attachments, } = listItem;
12090
12090
  const emailBody = Object.values(ramda.pluck("value", bodyValues)).join(" ");
12091
12091
  const emailBodyWithStrippedHead = emailBody.split("</head>").at(-1);
12092
12092
  const links = emailBodyWithStrippedHead.match(/(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])/g);
@@ -12118,6 +12118,7 @@ class MailerUtils {
12118
12118
  replyTo,
12119
12119
  received: new Date(receivedAt),
12120
12120
  subject,
12121
+ attachments,
12121
12122
  };
12122
12123
  });
12123
12124
  return formattedList;