@agoric/swing-store 0.9.2-dev-4989f26.0 → 0.9.2-dev-9f34f9d.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 +4 -4
- package/src/bundleStore.js +0 -1
- package/src/snapStore.js +1 -1
- package/src/swingStore.js +0 -1
- package/test/test-exportImport.js +0 -3
- package/test/test-snapstore.js +0 -2
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-9f34f9d.0+9f34f9d",
|
|
4
4
|
"description": "Persistent storage for SwingSet",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/swingStore.js",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"lint:eslint": "eslint ."
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@agoric/assert": "0.6.1-dev-
|
|
22
|
-
"@agoric/internal": "0.3.3-dev-
|
|
21
|
+
"@agoric/assert": "0.6.1-dev-9f34f9d.0+9f34f9d",
|
|
22
|
+
"@agoric/internal": "0.3.3-dev-9f34f9d.0+9f34f9d",
|
|
23
23
|
"@endo/base64": "^0.2.31",
|
|
24
24
|
"@endo/bundle-source": "^2.5.1",
|
|
25
25
|
"@endo/check-bundle": "^0.2.18",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
],
|
|
43
43
|
"timeout": "2m"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "9f34f9d4e0c6c6db24b28bd6157df25b348b8232"
|
|
46
46
|
}
|
package/src/bundleStore.js
CHANGED
|
@@ -243,7 +243,6 @@ export function makeBundleStore(db, ensureTxn, noteExport = () => {}) {
|
|
|
243
243
|
endoZipBase64: encodeBase64(data),
|
|
244
244
|
});
|
|
245
245
|
// Assert that the bundle contents match the ID and hash
|
|
246
|
-
// eslint-disable-next-line @jessie.js/no-nested-await
|
|
247
246
|
await checkBundle(bundle, computeSha512, bundleID);
|
|
248
247
|
addBundle(bundleID, bundle);
|
|
249
248
|
} else {
|
package/src/snapStore.js
CHANGED
|
@@ -305,11 +305,11 @@ export function makeSnapStore(
|
|
|
305
305
|
snapReader.pipe(hashStream);
|
|
306
306
|
snapReader.pipe(output);
|
|
307
307
|
|
|
308
|
+
await null;
|
|
308
309
|
try {
|
|
309
310
|
yield* output;
|
|
310
311
|
} finally {
|
|
311
312
|
gzReader.destroy();
|
|
312
|
-
// eslint-disable-next-line @jessie.js/no-nested-await
|
|
313
313
|
await finished(gzReader);
|
|
314
314
|
const hash = hashStream.digest('hex');
|
|
315
315
|
hash === snapshotID ||
|
package/src/swingStore.js
CHANGED
|
@@ -124,7 +124,6 @@ test('crank abort leaves no debris in export log', async t => {
|
|
|
124
124
|
crankNum % 3 === 0,
|
|
125
125
|
);
|
|
126
126
|
}
|
|
127
|
-
// eslint-disable-next-line no-await-in-loop
|
|
128
127
|
await ssOut.hostStorage.commit();
|
|
129
128
|
}
|
|
130
129
|
|
|
@@ -219,10 +218,8 @@ async function testExportImport(
|
|
|
219
218
|
actLikeAVatRunningACrank(vat, kernelStorage, crankNum);
|
|
220
219
|
}
|
|
221
220
|
if (block < 3) {
|
|
222
|
-
// eslint-disable-next-line no-await-in-loop
|
|
223
221
|
await fakeAVatSnapshot(vats[block % 2], kernelStorage);
|
|
224
222
|
}
|
|
225
|
-
// eslint-disable-next-line no-await-in-loop
|
|
226
223
|
await ssOut.hostStorage.commit();
|
|
227
224
|
}
|
|
228
225
|
|
package/test/test-snapstore.js
CHANGED
|
@@ -103,7 +103,6 @@ test('snapStore prepare / commit delete is robust', async t => {
|
|
|
103
103
|
|
|
104
104
|
const hashes = [];
|
|
105
105
|
for (let i = 0; i < 5; i += 1) {
|
|
106
|
-
// eslint-disable-next-line no-await-in-loop
|
|
107
106
|
const { hash } = await store.saveSnapshot(
|
|
108
107
|
'fakeVatID2',
|
|
109
108
|
i,
|
|
@@ -133,7 +132,6 @@ test('snapStore prepare / commit delete is robust', async t => {
|
|
|
133
132
|
t.is(sqlCountSnapshots.get(), 0);
|
|
134
133
|
|
|
135
134
|
for (let i = 0; i < 5; i += 1) {
|
|
136
|
-
// eslint-disable-next-line no-await-in-loop
|
|
137
135
|
const { hash } = await store.saveSnapshot(
|
|
138
136
|
'fakeVatID4',
|
|
139
137
|
i,
|