@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.
@@ -95,10 +95,7 @@ export interface ChangeCursor {
95
95
  * would not fit.
96
96
  */
97
97
  export const parseChangeCursor = (raw: string | undefined): ChangeCursor => {
98
- // SQLite gives a numeric column back as a number whatever the declared
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 };