@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/swing-store",
3
- "version": "0.9.2-dev-accf269.0+accf269",
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-accf269.0+accf269",
25
- "@agoric/internal": "0.3.3-dev-accf269.0+accf269",
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.5.0",
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": "accf269881172476c07506de498adb204637884b"
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
@@ -156,6 +156,7 @@ const importTest = test.macro(async (t, mode) => {
156
156
  ...db.prepare('SELECT * FROM transcriptSpans ORDER BY startPos').iterate(),
157
157
  ];
158
158
  t.deepEqual(
159
+ // @ts-expect-error unknown
159
160
  spanRows.map(sr => sr.startPos),
160
161
  [0, 2, 5, 8],
161
162
  );
@@ -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 };
package/tsconfig.json CHANGED
@@ -2,7 +2,6 @@
2
2
  {
3
3
  "extends": "../../tsconfig.json",
4
4
  "compilerOptions": {
5
- "allowSyntheticDefaultImports": true,
6
5
  "maxNodeModuleJsDepth": 1,
7
6
  },
8
7
  "include": [