@bigbinary/neeto-playwright-commons 1.22.7 → 1.22.8

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.js CHANGED
@@ -47996,6 +47996,7 @@ class FastmailApi {
47996
47996
  method: "post",
47997
47997
  url: "https://api.fastmail.com/jmap/api/",
47998
47998
  headers: this.headers,
47999
+ timeout: 2000,
47999
48000
  data: {
48000
48001
  using: ["urn:ietf:params:jmap:core", "urn:ietf:params:jmap:mail"],
48001
48002
  methodCalls: [[method, { accountId: this.accountId, ...body }, "0"]],
@@ -48057,7 +48058,16 @@ class MailerUtils {
48057
48058
  limit,
48058
48059
  position,
48059
48060
  };
48060
- const { methodResponses: [[, { ids, total }]], } = await this.fastmailApi.apiRequest("Email/query", body);
48061
+ let ids = [], total = 0;
48062
+ try {
48063
+ ({
48064
+ methodResponses: [[, { ids, total }]],
48065
+ } = await this.fastmailApi.apiRequest("Email/query", body));
48066
+ }
48067
+ catch (_a) {
48068
+ ids = [];
48069
+ total = 0;
48070
+ }
48061
48071
  return { ids, total };
48062
48072
  };
48063
48073
  this.getEmails = async (ids) => {