@agoric/vat-data 0.5.3-dev-f1638f9.0 → 0.5.3-dev-87eb568.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/vat-data",
|
|
3
|
-
"version": "0.5.3-dev-
|
|
3
|
+
"version": "0.5.3-dev-87eb568.0+87eb568",
|
|
4
4
|
"description": "Safe access to VatData global",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/Agoric/agoric-sdk",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"author": "Agoric",
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@agoric/assert": "0.6.1-dev-
|
|
23
|
-
"@agoric/base-zone": "0.1.1-dev-
|
|
24
|
-
"@agoric/internal": "0.3.3-dev-
|
|
25
|
-
"@agoric/store": "0.9.3-dev-
|
|
26
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
27
|
-
"@agoric/vow": "0.1.1-dev-
|
|
22
|
+
"@agoric/assert": "0.6.1-dev-87eb568.0+87eb568",
|
|
23
|
+
"@agoric/base-zone": "0.1.1-dev-87eb568.0+87eb568",
|
|
24
|
+
"@agoric/internal": "0.3.3-dev-87eb568.0+87eb568",
|
|
25
|
+
"@agoric/store": "0.9.3-dev-87eb568.0+87eb568",
|
|
26
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-87eb568.0+87eb568",
|
|
27
|
+
"@agoric/vow": "0.1.1-dev-87eb568.0+87eb568",
|
|
28
28
|
"@endo/exo": "^1.3.0",
|
|
29
29
|
"@endo/patterns": "^1.3.0"
|
|
30
30
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"typeCoverage": {
|
|
53
53
|
"atLeast": 98.74
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "87eb5684440adfffc7828c3169ba0aeaffb9a809"
|
|
56
56
|
}
|
package/src/exo-utils.js
CHANGED
|
@@ -94,7 +94,7 @@ export const makeExoUtils = VatData => {
|
|
|
94
94
|
* self: T,
|
|
95
95
|
* state: ReturnType<I>
|
|
96
96
|
* }>} [options]
|
|
97
|
-
* @returns {(...args: Parameters<I>) => import('@endo/exo
|
|
97
|
+
* @returns {(...args: Parameters<I>) => import('@endo/exo').Guarded<T>}
|
|
98
98
|
*/
|
|
99
99
|
const defineVirtualExoClass = (tag, interfaceGuard, init, methods, options) =>
|
|
100
100
|
// @ts-expect-error cast
|
|
@@ -112,14 +112,14 @@ export const makeExoUtils = VatData => {
|
|
|
112
112
|
* @param {InterfaceGuardKit | undefined} interfaceGuardKit
|
|
113
113
|
* @param {I} init
|
|
114
114
|
* @param {T & ThisType<{
|
|
115
|
-
* facets: import('@endo/exo
|
|
115
|
+
* facets: import('@endo/exo').GuardedKit<T>,
|
|
116
116
|
* state: ReturnType<I>
|
|
117
117
|
* }> } facets
|
|
118
118
|
* @param {DefineKindOptions<{
|
|
119
119
|
* facets: T,
|
|
120
120
|
* state: ReturnType<I>
|
|
121
121
|
* }>} [options]
|
|
122
|
-
* @returns {(...args: Parameters<I>) => import('@endo/exo
|
|
122
|
+
* @returns {(...args: Parameters<I>) => import('@endo/exo').GuardedKit<T>}
|
|
123
123
|
*/
|
|
124
124
|
const defineVirtualExoClassKit = (
|
|
125
125
|
tag,
|
|
@@ -150,7 +150,7 @@ export const makeExoUtils = VatData => {
|
|
|
150
150
|
* self: T,
|
|
151
151
|
* state: ReturnType<I>
|
|
152
152
|
* }>} [options]
|
|
153
|
-
* @returns {(...args: Parameters<I>) => import('@endo/exo
|
|
153
|
+
* @returns {(...args: Parameters<I>) => import('@endo/exo').Guarded<T>}
|
|
154
154
|
*/
|
|
155
155
|
const defineDurableExoClass = (
|
|
156
156
|
kindHandle,
|
|
@@ -174,14 +174,14 @@ export const makeExoUtils = VatData => {
|
|
|
174
174
|
* @param {InterfaceGuardKit | undefined} interfaceGuardKit
|
|
175
175
|
* @param {I} init
|
|
176
176
|
* @param {T & ThisType<{
|
|
177
|
-
* facets: import('@endo/exo
|
|
177
|
+
* facets: import('@endo/exo').GuardedKit<T>,
|
|
178
178
|
* state: ReturnType<I>
|
|
179
179
|
* }> } facets
|
|
180
180
|
* @param {DefineKindOptions<{
|
|
181
181
|
* facets: T,
|
|
182
182
|
* state: ReturnType<I>
|
|
183
183
|
* }>} [options]
|
|
184
|
-
* @returns {(...args: Parameters<I>) => import('@endo/exo
|
|
184
|
+
* @returns {(...args: Parameters<I>) => import('@endo/exo').GuardedKit<T>}
|
|
185
185
|
*/
|
|
186
186
|
const defineDurableExoClassKit = (
|
|
187
187
|
kindHandle,
|
|
@@ -213,7 +213,7 @@ export const makeExoUtils = VatData => {
|
|
|
213
213
|
* self: T,
|
|
214
214
|
* state: ReturnType<I>
|
|
215
215
|
* }>} [options]
|
|
216
|
-
* @returns {(...args: Parameters<I>) => import('@endo/exo
|
|
216
|
+
* @returns {(...args: Parameters<I>) => import('@endo/exo').Guarded<T>}
|
|
217
217
|
*/
|
|
218
218
|
const prepareExoClass = (
|
|
219
219
|
baggage,
|
|
@@ -240,14 +240,14 @@ export const makeExoUtils = VatData => {
|
|
|
240
240
|
* @param {InterfaceGuardKit | undefined} interfaceGuardKit
|
|
241
241
|
* @param {I} init
|
|
242
242
|
* @param {T & ThisType<{
|
|
243
|
-
* facets: import('@endo/exo
|
|
243
|
+
* facets: import('@endo/exo').GuardedKit<T>,
|
|
244
244
|
* state: ReturnType<I>
|
|
245
245
|
* }> } facets
|
|
246
246
|
* @param {DefineKindOptions<{
|
|
247
247
|
* facets: T,
|
|
248
248
|
* state: ReturnType<I>
|
|
249
249
|
* }>} [options]
|
|
250
|
-
* @returns {(...args: Parameters<I>) => import('@endo/exo
|
|
250
|
+
* @returns {(...args: Parameters<I>) => import('@endo/exo').GuardedKit<T>}
|
|
251
251
|
*/
|
|
252
252
|
const prepareExoClassKit = (
|
|
253
253
|
baggage,
|
|
@@ -273,7 +273,7 @@ export const makeExoUtils = VatData => {
|
|
|
273
273
|
* @param {InterfaceGuard | undefined} interfaceGuard
|
|
274
274
|
* @param {M} methods
|
|
275
275
|
* @param {DefineKindOptions<{ self: M }>} [options]
|
|
276
|
-
* @returns {import('@endo/exo
|
|
276
|
+
* @returns {import('@endo/exo').Guarded<M>}
|
|
277
277
|
*/
|
|
278
278
|
const prepareExo = (
|
|
279
279
|
baggage,
|
|
@@ -302,7 +302,7 @@ export const makeExoUtils = VatData => {
|
|
|
302
302
|
* @param {string} kindName
|
|
303
303
|
* @param {M} methods
|
|
304
304
|
* @param {DefineKindOptions<{ self: M }>} [options]
|
|
305
|
-
* @returns {import('@endo/exo
|
|
305
|
+
* @returns {import('@endo/exo').Guarded<M>}
|
|
306
306
|
*/
|
|
307
307
|
const prepareSingleton = (baggage, kindName, methods, options = undefined) =>
|
|
308
308
|
prepareExo(baggage, kindName, undefined, methods, options);
|
|
@@ -43,7 +43,7 @@ test('test amplify defineVirtualExoClass fails', t => {
|
|
|
43
43
|
});
|
|
44
44
|
|
|
45
45
|
test('test amplify defineVirtualExoClassKit', t => {
|
|
46
|
-
/** @type {import('@endo/exo
|
|
46
|
+
/** @type {import('@endo/exo').Amplify} */
|
|
47
47
|
let amp;
|
|
48
48
|
const makeCounterKit = defineVirtualExoClassKit(
|
|
49
49
|
'Counter',
|
|
@@ -18,7 +18,7 @@ const DownCounterI = M.interface('DownCounter', {
|
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
test('test isInstance defineVirtualExoClass', t => {
|
|
21
|
-
/** @type {import('@endo/exo
|
|
21
|
+
/** @type {import('@endo/exo').IsInstance} */
|
|
22
22
|
let isInstance;
|
|
23
23
|
const makeUpCounter = defineVirtualExoClass(
|
|
24
24
|
'UpCounter',
|
|
@@ -59,7 +59,7 @@ test('test isInstance defineVirtualExoClass', t => {
|
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
test('test isInstance defineVirtualExoClassKit', t => {
|
|
62
|
-
/** @type {import('@endo/exo
|
|
62
|
+
/** @type {import('@endo/exo').IsInstance} */
|
|
63
63
|
let isInstance;
|
|
64
64
|
const makeCounterKit = defineVirtualExoClassKit(
|
|
65
65
|
'Counter',
|