@remit/mailbox-service 0.0.14 → 0.0.16
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/package.json +1 -1
- package/src/body-parse.test.ts +55 -0
- package/src/body-parse.ts +61 -0
- package/src/body-sync-quarantine.test.ts +219 -0
- package/src/body-sync.ts +167 -3
- package/src/imapflow-connection.test.ts +49 -0
- package/src/imapflow-connection.ts +19 -23
- package/src/index.ts +15 -0
- package/src/message-sync-quarantine.test.ts +407 -0
- package/src/message-sync.ts +135 -18
- package/src/quarantine.test.ts +191 -0
- package/src/quarantine.ts +228 -0
- package/src/sync-watermarks.test.ts +0 -9
- package/src/sync-watermarks.ts +1 -4
package/src/sync-watermarks.ts
CHANGED
|
@@ -95,10 +95,7 @@ export interface ChangeCursor {
|
|
|
95
95
|
* would not fit.
|
|
96
96
|
*/
|
|
97
97
|
export const parseChangeCursor = (raw: string | undefined): ChangeCursor => {
|
|
98
|
-
|
|
99
|
-
// type, so normalize before parsing rather than trusting the static type.
|
|
100
|
-
const text = raw === undefined || raw === null ? "" : String(raw);
|
|
101
|
-
const [left, right] = text.split(":");
|
|
98
|
+
const [left, right] = (raw ?? "").split(":");
|
|
102
99
|
|
|
103
100
|
if (right === undefined) {
|
|
104
101
|
return { modseq: parseModseq(left), group: 0n, uid: 0 };
|