@agoric/swing-store 0.9.2-dev-accf269.0 → 0.9.2-dev-ad14428.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 +5 -5
- package/src/exporter.js +2 -0
- package/test/test-import.js +1 -0
- package/test/test-snapstore.js +1 -0
- package/tsconfig.json +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/swing-store",
|
|
3
|
-
"version": "0.9.2-dev-
|
|
3
|
+
"version": "0.9.2-dev-ad14428.0+ad14428",
|
|
4
4
|
"description": "Persistent storage for SwingSet",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"lint:eslint": "eslint ."
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@agoric/assert": "0.6.1-dev-
|
|
25
|
-
"@agoric/internal": "0.3.3-dev-
|
|
24
|
+
"@agoric/assert": "0.6.1-dev-ad14428.0+ad14428",
|
|
25
|
+
"@agoric/internal": "0.3.3-dev-ad14428.0+ad14428",
|
|
26
26
|
"@endo/base64": "^1.0.2",
|
|
27
27
|
"@endo/bundle-source": "^3.1.0",
|
|
28
28
|
"@endo/check-bundle": "^1.0.4",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@endo/init": "^1.0.4",
|
|
34
|
-
"@types/better-sqlite3": "^7.
|
|
34
|
+
"@types/better-sqlite3": "^7.6.9",
|
|
35
35
|
"ava": "^5.3.0",
|
|
36
36
|
"c8": "^9.1.0",
|
|
37
37
|
"tmp": "^0.2.1"
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"typeCoverage": {
|
|
52
52
|
"atLeast": 76.27
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "ad1442897e5b48ca8fe7f647c90464472ab8b373"
|
|
55
55
|
}
|
package/src/exporter.js
CHANGED
|
@@ -141,9 +141,11 @@ export function makeSwingStoreExporter(dirPath, options = {}) {
|
|
|
141
141
|
function getHostKV(key) {
|
|
142
142
|
typeof key === 'string' || Fail`key must be a string`;
|
|
143
143
|
getKeyType(key) === 'host' || Fail`getHostKV requires host keys`;
|
|
144
|
+
// @ts-expect-error unknown
|
|
144
145
|
return sqlKVGet.get(key);
|
|
145
146
|
}
|
|
146
147
|
|
|
148
|
+
/** @type {any} */
|
|
147
149
|
const sqlGetAllKVData = db.prepare(`
|
|
148
150
|
SELECT key, value
|
|
149
151
|
FROM kvStore
|
package/test/test-import.js
CHANGED
package/test/test-snapstore.js
CHANGED
|
@@ -81,6 +81,7 @@ test('compress to cache file; closes snapshot stream', async t => {
|
|
|
81
81
|
sqlGetSnapshot.pluck(true);
|
|
82
82
|
const snapshotGZ = sqlGetSnapshot.get(hash);
|
|
83
83
|
t.truthy(snapshotGZ);
|
|
84
|
+
// @ts-expect-error unknown
|
|
84
85
|
const contents = zlib.gunzipSync(snapshotGZ);
|
|
85
86
|
t.is(contents.toString(), 'abc', 'gunzip(contents) matches original');
|
|
86
87
|
const logInfo = { vatID: 'fakeVatID', ...exportInfo };
|