@agoric/swingset-vat 0.32.3-dev-84adeef.0 → 0.32.3-dev-280e215.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 +11 -11
- package/src/lib/capdata.js +4 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/swingset-vat",
|
|
3
|
-
"version": "0.32.3-dev-
|
|
3
|
+
"version": "0.32.3-dev-280e215.0+280e215",
|
|
4
4
|
"description": "Vat/Container Launcher",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"@types/yargs-parser": "^21.0.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@agoric/internal": "0.3.3-dev-
|
|
31
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
32
|
-
"@agoric/store": "0.9.3-dev-
|
|
33
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
34
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
35
|
-
"@agoric/swingset-xsnap-supervisor": "0.10.3-dev-
|
|
36
|
-
"@agoric/time": "0.3.3-dev-
|
|
37
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
38
|
-
"@agoric/xsnap-lockdown": "0.14.1-dev-
|
|
30
|
+
"@agoric/internal": "0.3.3-dev-280e215.0+280e215",
|
|
31
|
+
"@agoric/kmarshal": "0.1.1-dev-280e215.0+280e215",
|
|
32
|
+
"@agoric/store": "0.9.3-dev-280e215.0+280e215",
|
|
33
|
+
"@agoric/swing-store": "0.9.2-dev-280e215.0+280e215",
|
|
34
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-280e215.0+280e215",
|
|
35
|
+
"@agoric/swingset-xsnap-supervisor": "0.10.3-dev-280e215.0+280e215",
|
|
36
|
+
"@agoric/time": "0.3.3-dev-280e215.0+280e215",
|
|
37
|
+
"@agoric/vat-data": "0.5.3-dev-280e215.0+280e215",
|
|
38
|
+
"@agoric/xsnap-lockdown": "0.14.1-dev-280e215.0+280e215",
|
|
39
39
|
"@endo/base64": "^1.0.9",
|
|
40
40
|
"@endo/bundle-source": "^4.0.0",
|
|
41
41
|
"@endo/captp": "^4.4.5",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"typeCoverage": {
|
|
103
103
|
"atLeast": 76.25
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "280e2158e46e720ef538ed30d47bd2b1eb5e7660"
|
|
106
106
|
}
|
package/src/lib/capdata.js
CHANGED
|
@@ -1,24 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { krefOf, kunser } from '@agoric/kmarshal';
|
|
2
2
|
import { passStyleOf } from '@endo/far';
|
|
3
|
-
import { kunser, krefOf } from '@agoric/kmarshal';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
7
|
-
* actually is. A capdata object should have a .body property that's a string
|
|
8
|
-
* and a .slots property that's an array of strings.
|
|
9
|
-
*
|
|
10
|
-
* @param {any} capdata The object to be tested
|
|
11
|
-
* @throws {Error} if, upon inspection, the parameter does not satisfy the above
|
|
12
|
-
* criteria.
|
|
13
|
-
* @returns {asserts capdata is import('@endo/marshal').CapData<string>}
|
|
5
|
+
* @import {CapData} from '@endo/marshal';
|
|
14
6
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Fail`capdata has non-string .body ${capdata.body}`;
|
|
18
|
-
Array.isArray(capdata.slots) ||
|
|
19
|
-
Fail`capdata has non-Array slots ${capdata.slots}`;
|
|
20
|
-
// TODO check that the .slots array elements are actually strings
|
|
21
|
-
}
|
|
7
|
+
|
|
8
|
+
export { insistCapData } from '@agoric/swingset-liveslots/src/capdata.js';
|
|
22
9
|
|
|
23
10
|
/**
|
|
24
11
|
* Returns the slot of a presence if the provided capdata is composed
|