@baukit/data-contracts-expo-sqlite 0.19.1 → 0.20.0
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 +2 -2
- package/src/node-sqlite.test.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baukit/data-contracts-expo-sqlite",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Expo SQLite implementation of the @baukit/data-contracts base storage contracts.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Patrick Koss",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"typescript": "6.0.3"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@baukit/data-contracts": "^0.
|
|
56
|
+
"@baukit/data-contracts": "^0.20.0",
|
|
57
57
|
"expo-sqlite": "^57.0.3"
|
|
58
58
|
}
|
|
59
59
|
}
|
package/src/node-sqlite.test.ts
CHANGED
|
@@ -91,7 +91,7 @@ describe('NodeSqliteDatabase', () => {
|
|
|
91
91
|
|
|
92
92
|
it('binds undefined as NULL and a single blob as one value', async () => {
|
|
93
93
|
const database = await openValuesTable();
|
|
94
|
-
// @ts-expect-error expo-sqlite's types forbid undefined, but untyped callers can still pass it.
|
|
94
|
+
// @ts-expect-error -- expo-sqlite's types forbid undefined, but untyped callers can still pass it.
|
|
95
95
|
await database.runAsync('INSERT INTO value_table (value) VALUES (?)', [undefined]);
|
|
96
96
|
await expect(storedValue(database)).resolves.toEqual({ value: null, kind: 'null' });
|
|
97
97
|
await database.runAsync('INSERT INTO value_table (value) VALUES (?)', new Uint8Array([1, 2]));
|