@remit/electrodb-entities 0.0.1 → 0.0.2
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.cjs +3 -5
- package/index.d.cts +1 -1
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/index.mjs +3 -5
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -561,13 +561,11 @@ exports.Mailbox = {
|
|
|
561
561
|
}
|
|
562
562
|
},
|
|
563
563
|
highestModseq: {
|
|
564
|
-
type: "
|
|
564
|
+
type: "string",
|
|
565
565
|
required: true,
|
|
566
566
|
validate: value => {
|
|
567
|
-
if (typeof value === "
|
|
568
|
-
throw new Error("'highestModseq' must be at
|
|
569
|
-
if (typeof value === "number" && !Number.isInteger(value))
|
|
570
|
-
throw new Error("'highestModseq' must be an integer");
|
|
567
|
+
if (typeof value === "string" && value.length > 32)
|
|
568
|
+
throw new Error("'highestModseq' must be at most 32 characters");
|
|
571
569
|
return true;
|
|
572
570
|
}
|
|
573
571
|
},
|
package/index.d.cts
CHANGED
|
@@ -421,7 +421,7 @@ export declare const Mailbox: {
|
|
|
421
421
|
readonly validate: (value: unknown) => boolean;
|
|
422
422
|
};
|
|
423
423
|
readonly highestModseq: {
|
|
424
|
-
readonly type: "
|
|
424
|
+
readonly type: "string";
|
|
425
425
|
readonly required: true;
|
|
426
426
|
readonly validate: (value: unknown) => boolean;
|
|
427
427
|
};
|
package/index.d.mts
CHANGED
|
@@ -421,7 +421,7 @@ export declare const Mailbox: {
|
|
|
421
421
|
readonly validate: (value: unknown) => boolean;
|
|
422
422
|
};
|
|
423
423
|
readonly highestModseq: {
|
|
424
|
-
readonly type: "
|
|
424
|
+
readonly type: "string";
|
|
425
425
|
readonly required: true;
|
|
426
426
|
readonly validate: (value: unknown) => boolean;
|
|
427
427
|
};
|
package/index.d.ts
CHANGED
|
@@ -421,7 +421,7 @@ export declare const Mailbox: {
|
|
|
421
421
|
readonly validate: (value: unknown) => boolean;
|
|
422
422
|
};
|
|
423
423
|
readonly highestModseq: {
|
|
424
|
-
readonly type: "
|
|
424
|
+
readonly type: "string";
|
|
425
425
|
readonly required: true;
|
|
426
426
|
readonly validate: (value: unknown) => boolean;
|
|
427
427
|
};
|
package/index.mjs
CHANGED
|
@@ -558,13 +558,11 @@ export const Mailbox = {
|
|
|
558
558
|
}
|
|
559
559
|
},
|
|
560
560
|
highestModseq: {
|
|
561
|
-
type: "
|
|
561
|
+
type: "string",
|
|
562
562
|
required: true,
|
|
563
563
|
validate: value => {
|
|
564
|
-
if (typeof value === "
|
|
565
|
-
throw new Error("'highestModseq' must be at
|
|
566
|
-
if (typeof value === "number" && !Number.isInteger(value))
|
|
567
|
-
throw new Error("'highestModseq' must be an integer");
|
|
564
|
+
if (typeof value === "string" && value.length > 32)
|
|
565
|
+
throw new Error("'highestModseq' must be at most 32 characters");
|
|
568
566
|
return true;
|
|
569
567
|
}
|
|
570
568
|
},
|