@agoric/vats 0.15.2-dev-66bf702.0 → 0.15.2-dev-76f3e6f.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 +16 -16
- package/src/types.d.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/vats",
|
|
3
|
-
"version": "0.15.2-dev-
|
|
3
|
+
"version": "0.15.2-dev-76f3e6f.0+76f3e6f",
|
|
4
4
|
"description": "Agoric's Vat library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
26
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
27
|
-
"@agoric/governance": "0.10.4-dev-
|
|
28
|
-
"@agoric/internal": "0.3.3-dev-
|
|
29
|
-
"@agoric/network": "0.1.1-dev-
|
|
30
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
31
|
-
"@agoric/store": "0.9.3-dev-
|
|
32
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
33
|
-
"@agoric/time": "0.3.3-dev-
|
|
34
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
35
|
-
"@agoric/vow": "0.1.1-dev-
|
|
36
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
37
|
-
"@agoric/zone": "0.2.3-dev-
|
|
25
|
+
"@agoric/cosmic-proto": "0.4.1-dev-76f3e6f.0+76f3e6f",
|
|
26
|
+
"@agoric/ertp": "0.16.3-dev-76f3e6f.0+76f3e6f",
|
|
27
|
+
"@agoric/governance": "0.10.4-dev-76f3e6f.0+76f3e6f",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-76f3e6f.0+76f3e6f",
|
|
29
|
+
"@agoric/network": "0.1.1-dev-76f3e6f.0+76f3e6f",
|
|
30
|
+
"@agoric/notifier": "0.6.3-dev-76f3e6f.0+76f3e6f",
|
|
31
|
+
"@agoric/store": "0.9.3-dev-76f3e6f.0+76f3e6f",
|
|
32
|
+
"@agoric/swingset-vat": "0.32.3-dev-76f3e6f.0+76f3e6f",
|
|
33
|
+
"@agoric/time": "0.3.3-dev-76f3e6f.0+76f3e6f",
|
|
34
|
+
"@agoric/vat-data": "0.5.3-dev-76f3e6f.0+76f3e6f",
|
|
35
|
+
"@agoric/vow": "0.1.1-dev-76f3e6f.0+76f3e6f",
|
|
36
|
+
"@agoric/zoe": "0.26.3-dev-76f3e6f.0+76f3e6f",
|
|
37
|
+
"@agoric/zone": "0.2.3-dev-76f3e6f.0+76f3e6f",
|
|
38
38
|
"@endo/errors": "^1.2.2",
|
|
39
39
|
"@endo/far": "^1.1.2",
|
|
40
40
|
"@endo/import-bundle": "^1.1.2",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"jessie.js": "^0.3.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
49
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-76f3e6f.0+76f3e6f",
|
|
50
50
|
"@endo/bundle-source": "^3.2.3",
|
|
51
51
|
"@endo/init": "^1.1.2",
|
|
52
52
|
"ava": "^5.3.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"typeCoverage": {
|
|
79
79
|
"atLeast": 91.41
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "76f3e6f282aff177b906d23b036c7ca9d22e0ed1"
|
|
82
82
|
}
|
package/src/types.d.ts
CHANGED
|
@@ -59,10 +59,16 @@ export type NameAdmin = {
|
|
|
59
59
|
delete: (key: string) => void;
|
|
60
60
|
/** get the NameHub corresponding to the current NameAdmin */
|
|
61
61
|
readonly: () => NameHub;
|
|
62
|
+
/**
|
|
63
|
+
* Set a function to be called whenever an update or deletion is made, with all the entries as of that point.
|
|
64
|
+
*
|
|
65
|
+
* Note: can be called at most once.
|
|
66
|
+
*/
|
|
62
67
|
onUpdate: (fn: undefined | NameHubUpdateHandler) => void;
|
|
63
68
|
};
|
|
64
69
|
|
|
65
70
|
export type NameHubUpdateHandler = {
|
|
71
|
+
/** Called when an update or deletion is made, with all entries as of that point. */
|
|
66
72
|
write: (entries: [string, any][]) => void;
|
|
67
73
|
};
|
|
68
74
|
|