@evolu/common 8.6.0 → 8.6.1
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.
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
*/
|
|
178
178
|
import { Packr } from "msgpackr";
|
|
179
179
|
import { createMutableArray, isNonEmptyArray, } from "../Array.js";
|
|
180
|
-
import { assert, assertNonNullable } from "../Assert.js";
|
|
180
|
+
import { assert, assertNonNullable, assertNotUndefined } from "../Assert.js";
|
|
181
181
|
import { bytesToHex, bytesToUtf8, createBuffer, hexToBytes, utf8ToBytes, } from "../Buffer.js";
|
|
182
182
|
import { createPadmePadding, decryptWithXChaCha20Poly1305, EncryptionKey, encryptWithXChaCha20Poly1305, Entropy24, XChaCha20Poly1305Ciphertext, xChaCha20Poly1305NonceLength, } from "../Crypto.js";
|
|
183
183
|
import { eqArrayNumber } from "../Eq.js";
|
|
@@ -1277,7 +1277,7 @@ export const encodeAndEncryptDbChange = (deps) => (message, key) => {
|
|
|
1277
1277
|
const entries = objectToEntries(message.change.values);
|
|
1278
1278
|
encodeLength(buffer, entries);
|
|
1279
1279
|
for (const [column, value] of entries) {
|
|
1280
|
-
|
|
1280
|
+
assertNotUndefined(value);
|
|
1281
1281
|
encodeString(buffer, column);
|
|
1282
1282
|
encodeSqliteValue(buffer, value);
|
|
1283
1283
|
}
|
package/package.json
CHANGED
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
isNonEmptyArray,
|
|
184
184
|
type NonEmptyReadonlyArray,
|
|
185
185
|
} from "../Array.ts";
|
|
186
|
-
import { assert, assertNonNullable } from "../Assert.ts";
|
|
186
|
+
import { assert, assertNonNullable, assertNotUndefined } from "../Assert.ts";
|
|
187
187
|
import type { Brand } from "../Brand.ts";
|
|
188
188
|
import {
|
|
189
189
|
type Buffer,
|
|
@@ -1898,7 +1898,7 @@ export const encodeAndEncryptDbChange =
|
|
|
1898
1898
|
|
|
1899
1899
|
encodeLength(buffer, entries);
|
|
1900
1900
|
for (const [column, value] of entries) {
|
|
1901
|
-
|
|
1901
|
+
assertNotUndefined(value);
|
|
1902
1902
|
encodeString(buffer, column);
|
|
1903
1903
|
encodeSqliteValue(buffer, value);
|
|
1904
1904
|
}
|