@bobfrankston/rmfmail 1.1.191 → 1.1.192
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/client/app.bundle.js +11 -8
- package/client/app.bundle.js.map +2 -2
- package/client/compose/compose.bundle.js +11 -8
- package/client/compose/compose.bundle.js.map +2 -2
- package/client/index.html +1 -1
- package/client/lib/api-client.js +27 -5
- package/client/lib/api-client.js.map +1 -1
- package/client/lib/api-client.ts +26 -6
- package/client/styles/components.css +1 -1
- package/package.json +3 -3
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-53996 → node_modules.npmglobalize-stash-42480}/.package-lock.json +0 -0
|
@@ -1400,13 +1400,14 @@ function installConsoleCapture() {
|
|
|
1400
1400
|
}
|
|
1401
1401
|
};
|
|
1402
1402
|
console.log = (...args) => {
|
|
1403
|
-
forward("log", args);
|
|
1404
1403
|
orig.log(...args);
|
|
1405
1404
|
};
|
|
1406
1405
|
console.info = (...args) => {
|
|
1407
|
-
forward("info", args);
|
|
1408
1406
|
orig.info(...args);
|
|
1409
1407
|
};
|
|
1408
|
+
console.debug = (...args) => {
|
|
1409
|
+
orig.debug(...args);
|
|
1410
|
+
};
|
|
1410
1411
|
console.warn = (...args) => {
|
|
1411
1412
|
forward("warn", args);
|
|
1412
1413
|
orig.warn(...args);
|
|
@@ -1415,10 +1416,6 @@ function installConsoleCapture() {
|
|
|
1415
1416
|
forward("error", args);
|
|
1416
1417
|
orig.error(...args);
|
|
1417
1418
|
};
|
|
1418
|
-
console.debug = (...args) => {
|
|
1419
|
-
forward("debug", args);
|
|
1420
|
-
orig.debug(...args);
|
|
1421
|
-
};
|
|
1422
1419
|
try {
|
|
1423
1420
|
window.addEventListener("error", (e) => {
|
|
1424
1421
|
try {
|
|
@@ -1435,8 +1432,11 @@ function installConsoleCapture() {
|
|
|
1435
1432
|
window.addEventListener("unhandledrejection", (e) => {
|
|
1436
1433
|
try {
|
|
1437
1434
|
const r = e.reason;
|
|
1435
|
+
const msg = r?.message || String(r);
|
|
1436
|
+
if (/logClientEvent|mailxapi timeout/i.test(msg))
|
|
1437
|
+
return;
|
|
1438
1438
|
logClientEvent("window.unhandledrejection", {
|
|
1439
|
-
message:
|
|
1439
|
+
message: msg,
|
|
1440
1440
|
stack: r?.stack || null
|
|
1441
1441
|
});
|
|
1442
1442
|
} catch {
|
|
@@ -1450,7 +1450,10 @@ function logClientEvent(tag, data) {
|
|
|
1450
1450
|
try {
|
|
1451
1451
|
const bridge = typeof globalThis.mailxapi !== "undefined" && globalThis.mailxapi?.isApp ? globalThis.mailxapi : window.opener?.mailxapi?.isApp ? window.opener.mailxapi : window.parent?.mailxapi?.isApp ? window.parent.mailxapi : null;
|
|
1452
1452
|
if (bridge?.logClientEvent) {
|
|
1453
|
-
bridge.logClientEvent(tag, data);
|
|
1453
|
+
const p = bridge.logClientEvent(tag, data);
|
|
1454
|
+
if (p && typeof p.catch === "function")
|
|
1455
|
+
p.catch(() => {
|
|
1456
|
+
});
|
|
1454
1457
|
delivered = true;
|
|
1455
1458
|
}
|
|
1456
1459
|
} catch {
|