@bobfrankston/rmfmail 1.1.163 → 1.1.166
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/android-bootstrap.bundle.js +19 -2
- package/client/android-bootstrap.bundle.js.map +2 -2
- package/client/app.bundle.js +16 -10
- package/client/app.bundle.js.map +2 -2
- package/client/components/message-viewer.js +21 -12
- package/client/components/message-viewer.js.map +1 -1
- package/client/components/message-viewer.ts +18 -12
- package/package.json +5 -5
- package/packages/mailx-imap/index.d.ts.map +1 -1
- package/packages/mailx-imap/index.js +55 -3
- package/packages/mailx-imap/index.js.map +1 -1
- package/packages/mailx-imap/index.ts +47 -3
- package/packages/mailx-imap/package-lock.json +2 -2
- package/packages/mailx-imap/package.json +1 -1
- package/packages/mailx-service/index.js +1 -1
- package/packages/mailx-service/index.js.map +1 -1
- package/packages/mailx-service/index.ts +1 -1
- package/packages/mailx-store/db.d.ts +8 -1
- package/packages/mailx-store/db.d.ts.map +1 -1
- package/packages/mailx-store/db.js +11 -2
- package/packages/mailx-store/db.js.map +1 -1
- package/packages/mailx-store/db.ts +15 -4
- package/packages/mailx-store/package.json +1 -1
- package/packages/mailx-store/store.js +1 -1
- package/packages/mailx-store/store.js.map +1 -1
- package/packages/mailx-store/store.ts +1 -1
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-51500 → node_modules.npmglobalize-stash-56540}/.package-lock.json +0 -0
|
@@ -7564,8 +7564,19 @@ var NativeImapClient = class {
|
|
|
7564
7564
|
}
|
|
7565
7565
|
});
|
|
7566
7566
|
this.transport.onError((err) => {
|
|
7567
|
+
const errAny = err;
|
|
7568
|
+
const parts = [];
|
|
7569
|
+
if (errAny?.message)
|
|
7570
|
+
parts.push(String(errAny.message));
|
|
7571
|
+
if (errAny?.code)
|
|
7572
|
+
parts.push(`code=${errAny.code}`);
|
|
7573
|
+
if (errAny?.errno !== void 0)
|
|
7574
|
+
parts.push(`errno=${errAny.errno}`);
|
|
7575
|
+
if (errAny?.syscall)
|
|
7576
|
+
parts.push(`syscall=${errAny.syscall}`);
|
|
7577
|
+
const desc = parts.length > 0 ? parts.join(" ") : `<no message> ${typeof err} ${err?.constructor?.name || ""}`.trim();
|
|
7567
7578
|
if (this.verbose)
|
|
7568
|
-
console.error(` [imap] Transport error: ${
|
|
7579
|
+
console.error(` [imap] Transport error: ${desc}`);
|
|
7569
7580
|
this._connected = false;
|
|
7570
7581
|
this.idleTag = null;
|
|
7571
7582
|
this.idleCallback = null;
|
|
@@ -7577,7 +7588,13 @@ var NativeImapClient = class {
|
|
|
7577
7588
|
if (this.pendingCommand) {
|
|
7578
7589
|
const { reject } = this.pendingCommand;
|
|
7579
7590
|
this.pendingCommand = null;
|
|
7580
|
-
|
|
7591
|
+
if (err instanceof Error && !err.message) {
|
|
7592
|
+
const wrapped = new Error(desc);
|
|
7593
|
+
wrapped.cause = err;
|
|
7594
|
+
reject(wrapped);
|
|
7595
|
+
} else {
|
|
7596
|
+
reject(err);
|
|
7597
|
+
}
|
|
7581
7598
|
}
|
|
7582
7599
|
});
|
|
7583
7600
|
await this.transport.connect(this.config.server, this.config.port, useTls, this.config.server);
|