@agoric/swing-store 0.9.2-dev-cb1866d.0.cb1866d → 0.9.2-dev-588c42f.0.588c42f

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/swing-store",
3
- "version": "0.9.2-dev-cb1866d.0.cb1866d",
3
+ "version": "0.9.2-dev-588c42f.0.588c42f",
4
4
  "description": "Persistent storage for SwingSet",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -21,7 +21,7 @@
21
21
  "lint:eslint": "yarn run -T eslint ."
22
22
  },
23
23
  "dependencies": {
24
- "@agoric/internal": "0.3.3-dev-cb1866d.0.cb1866d",
24
+ "@agoric/internal": "0.3.3-dev-588c42f.0.588c42f",
25
25
  "@endo/base64": "^1.0.12",
26
26
  "@endo/bundle-source": "^4.1.2",
27
27
  "@endo/check-bundle": "^1.0.17",
@@ -56,5 +56,5 @@
56
56
  "engines": {
57
57
  "node": "^20.9 || ^22.11"
58
58
  },
59
- "gitHead": "cb1866dfac010587765a8927bee0205e309271be"
59
+ "gitHead": "588c42f376700adc36f9a847e3a66d973d3cee12"
60
60
  }
package/src/archiver.js CHANGED
@@ -42,7 +42,7 @@ export const makeArchiveSnapshot = (dirPath, powers) => {
42
42
  const writer = fs.createWriteStream('', { fd, flush: true });
43
43
  const reader = Readable.from(gzData);
44
44
  const destroyReader = promisify(reader.destroy.bind(reader));
45
- addCleanup(() => destroyReader(null));
45
+ addCleanup(() => destroyReader(undefined));
46
46
  reader.pipe(writer);
47
47
  await streamFinished(writer);
48
48
  fs.renameSync(tmpName, destPath);
package/src/snapStore.js CHANGED
@@ -228,7 +228,7 @@ export function makeSnapStore(
228
228
  await measureSeconds(async () => {
229
229
  const snapReader = Readable.from(snapshotStream);
230
230
  const destroyReader = promisify(snapReader.destroy.bind(snapReader));
231
- addCleanup(() => destroyReader(null));
231
+ addCleanup(() => destroyReader(undefined));
232
232
  snapReader.on('data', chunk => {
233
233
  uncompressedSize += chunk.length;
234
234
  });