@agoric/swingset-vat 0.33.0-u21.0.1 → 0.33.0-u22.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/swingset-vat",
3
- "version": "0.33.0-u21.0.1",
3
+ "version": "0.33.0-u22.0",
4
4
  "description": "Vat/Container Launcher",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -13,7 +13,7 @@
13
13
  "scripts": {
14
14
  "build": "exit 0",
15
15
  "test": "ava",
16
- "test:c8": "c8 --all $C8_OPTIONS ava",
16
+ "test:c8": "c8 --all ${C8_OPTIONS:-} ava",
17
17
  "test:xs": "SWINGSET_WORKER_TYPE=xs-worker ava",
18
18
  "test:xs-worker": "ava test/workers -m 'xsnap vat manager'",
19
19
  "lint-fix": "yarn lint:eslint --fix",
@@ -22,7 +22,7 @@
22
22
  "lint:eslint": "yarn run -T eslint ."
23
23
  },
24
24
  "devDependencies": {
25
- "@agoric/xsnap": "0.14.3-u21.0.1",
25
+ "@agoric/xsnap": "0.15.0-u22.0",
26
26
  "@types/better-sqlite3": "^7.6.13",
27
27
  "@types/microtime": "^2.1.0",
28
28
  "@types/tmp": "^0.2.0",
@@ -30,33 +30,33 @@
30
30
  "ava": "^5.3.0"
31
31
  },
32
32
  "dependencies": {
33
- "@agoric/internal": "0.4.0-u21.0.1",
34
- "@agoric/kmarshal": "0.1.1-u21.0.1",
35
- "@agoric/store": "0.9.3-u21.0.1",
36
- "@agoric/swing-store": "0.10.0-u21.0.1",
37
- "@agoric/swingset-liveslots": "0.10.3-u21.0.1",
38
- "@agoric/swingset-xsnap-supervisor": "0.10.3-u21.0.1",
39
- "@agoric/time": "0.3.3-u21.0.1",
40
- "@agoric/vat-data": "0.5.3-u21.0.1",
41
- "@agoric/xsnap-lockdown": "0.14.1-u21.0.1",
42
- "@endo/base64": "^1.0.9",
43
- "@endo/bundle-source": "^4.0.0",
44
- "@endo/captp": "^4.4.5",
45
- "@endo/check-bundle": "^1.0.14",
46
- "@endo/compartment-mapper": "^1.6.0",
47
- "@endo/errors": "^1.2.10",
48
- "@endo/eventual-send": "^1.3.1",
49
- "@endo/far": "^1.1.11",
50
- "@endo/import-bundle": "^1.4.0",
51
- "@endo/init": "^1.1.9",
52
- "@endo/marshal": "^1.6.4",
53
- "@endo/nat": "^5.1.0",
54
- "@endo/pass-style": "^1.5.0",
55
- "@endo/patterns": "^1.5.0",
56
- "@endo/promise-kit": "^1.1.10",
57
- "@endo/ses-ava": "^1.2.10",
58
- "@endo/stream": "^1.2.10",
59
- "@endo/zip": "^1.0.9",
33
+ "@agoric/internal": "0.4.0-u22.0",
34
+ "@agoric/kmarshal": "0.2.0-u22.0",
35
+ "@agoric/store": "0.10.0-u22.0",
36
+ "@agoric/swing-store": "0.10.0-u22.0",
37
+ "@agoric/swingset-liveslots": "0.11.0-u22.0",
38
+ "@agoric/swingset-xsnap-supervisor": "0.11.0-u22.0",
39
+ "@agoric/time": "0.4.0-u22.0",
40
+ "@agoric/vat-data": "0.6.0-u22.0",
41
+ "@agoric/xsnap-lockdown": "0.14.1-u22.0",
42
+ "@endo/base64": "^1.0.12",
43
+ "@endo/bundle-source": "^4.1.2",
44
+ "@endo/captp": "^4.4.8",
45
+ "@endo/check-bundle": "^1.0.17",
46
+ "@endo/compartment-mapper": "^1.6.3",
47
+ "@endo/errors": "^1.2.13",
48
+ "@endo/eventual-send": "^1.3.4",
49
+ "@endo/far": "^1.1.14",
50
+ "@endo/import-bundle": "^1.5.2",
51
+ "@endo/init": "^1.1.12",
52
+ "@endo/marshal": "^1.8.0",
53
+ "@endo/nat": "^5.1.3",
54
+ "@endo/pass-style": "^1.6.3",
55
+ "@endo/patterns": "^1.7.0",
56
+ "@endo/promise-kit": "^1.1.13",
57
+ "@endo/ses-ava": "^1.3.2",
58
+ "@endo/stream": "^1.2.13",
59
+ "@endo/zip": "^1.0.11",
60
60
  "ansi-styles": "^6.2.1",
61
61
  "anylogger": "^0.21.0",
62
62
  "better-sqlite3": "^10.1.0",
@@ -103,7 +103,7 @@
103
103
  "access": "public"
104
104
  },
105
105
  "typeCoverage": {
106
- "atLeast": 76.47
106
+ "atLeast": 76.59
107
107
  },
108
- "gitHead": "16519b2de1eb2afda2b4ec866f55eadd4bb18223"
108
+ "gitHead": "dbf78c32d14bf4a38bfd7a10d061011a0ff368e6"
109
109
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { Nat } from '@endo/nat';
5
5
  import { assert, q, Fail } from '@endo/errors';
6
- import { isObject } from '@endo/marshal';
6
+ import { isPrimitive } from '@endo/pass-style';
7
7
  import { parseKernelSlot } from '../parseKernelSlots.js';
8
8
  import { makeVatSlot, parseVatSlot } from '../../lib/parseVatSlots.js';
9
9
  import { insistVatID } from '../../lib/id.js';
@@ -45,8 +45,8 @@ export const DEFAULT_REAP_DIRT_THRESHOLD_KEY =
45
45
 
46
46
  const isBundleSource = source => {
47
47
  return (
48
- isObject(source) &&
49
- (isObject(source.bundle) ||
48
+ !isPrimitive(source) &&
49
+ (!isPrimitive(source.bundle) ||
50
50
  typeof source.bundleName === 'string' ||
51
51
  typeof source.bundleID === 'string')
52
52
  );
@@ -70,7 +70,7 @@ export function initializeVatState(
70
70
  ) {
71
71
  assert(isBundleSource(source), `vat ${vatID} source has wrong shape`);
72
72
  assert(
73
- isObject(options) && isObject(options.workerOptions),
73
+ !isPrimitive(options) && !isPrimitive(options.workerOptions),
74
74
  `vat ${vatID} options is missing workerOptions`,
75
75
  );
76
76
 
@@ -9,6 +9,10 @@ import {
9
9
  } from '@agoric/vat-data';
10
10
  import { Far, E } from '@endo/far';
11
11
 
12
+ /**
13
+ * @import {MapStore, SetStore} from '@agoric/store';
14
+ */
15
+
12
16
  // See ../../docs/delivery.md for a description of the architecture of the
13
17
  // comms system.
14
18