@agoric/swingset-vat 0.33.0-u21.0 → 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",
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,6 +22,7 @@
22
22
  "lint:eslint": "yarn run -T eslint ."
23
23
  },
24
24
  "devDependencies": {
25
+ "@agoric/xsnap": "0.15.0-u22.0",
25
26
  "@types/better-sqlite3": "^7.6.13",
26
27
  "@types/microtime": "^2.1.0",
27
28
  "@types/tmp": "^0.2.0",
@@ -29,33 +30,33 @@
29
30
  "ava": "^5.3.0"
30
31
  },
31
32
  "dependencies": {
32
- "@agoric/internal": "workspace:*",
33
- "@agoric/kmarshal": "workspace:*",
34
- "@agoric/store": "workspace:*",
35
- "@agoric/swing-store": "workspace:*",
36
- "@agoric/swingset-liveslots": "workspace:*",
37
- "@agoric/swingset-xsnap-supervisor": "workspace:*",
38
- "@agoric/time": "workspace:*",
39
- "@agoric/vat-data": "workspace:*",
40
- "@agoric/xsnap-lockdown": "workspace:*",
41
- "@endo/base64": "^1.0.9",
42
- "@endo/bundle-source": "^4.0.0",
43
- "@endo/captp": "^4.4.5",
44
- "@endo/check-bundle": "^1.0.14",
45
- "@endo/compartment-mapper": "^1.6.0",
46
- "@endo/errors": "^1.2.10",
47
- "@endo/eventual-send": "^1.3.1",
48
- "@endo/far": "^1.1.11",
49
- "@endo/import-bundle": "^1.4.0",
50
- "@endo/init": "^1.1.9",
51
- "@endo/marshal": "^1.6.4",
52
- "@endo/nat": "^5.1.0",
53
- "@endo/pass-style": "^1.5.0",
54
- "@endo/patterns": "^1.5.0",
55
- "@endo/promise-kit": "^1.1.10",
56
- "@endo/ses-ava": "^1.2.10",
57
- "@endo/stream": "^1.2.10",
58
- "@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",
59
60
  "ansi-styles": "^6.2.1",
60
61
  "anylogger": "^0.21.0",
61
62
  "better-sqlite3": "^10.1.0",
@@ -66,7 +67,7 @@
66
67
  "yargs-parser": "^21.1.1"
67
68
  },
68
69
  "peerDependencies": {
69
- "@agoric/xsnap": "workspace:*",
70
+ "@agoric/xsnap": "*",
70
71
  "ava": "^5.3.0"
71
72
  },
72
73
  "files": [
@@ -102,7 +103,7 @@
102
103
  "access": "public"
103
104
  },
104
105
  "typeCoverage": {
105
- "atLeast": 76.47
106
+ "atLeast": 76.59
106
107
  },
107
- "gitHead": "e4dd46857133403d584bcf822a81817b355532f9"
108
+ "gitHead": "dbf78c32d14bf4a38bfd7a10d061011a0ff368e6"
108
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