@agoric/vat-data 0.5.3-dev-51399d1.0 → 0.5.3-dev-1b5e57f.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-51399d1.0+51399d1",
3
+ "version": "0.5.3-dev-1b5e57f.0+1b5e57f",
4
4
  "description": "Safe access to VatData global",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/Agoric/agoric-sdk",
@@ -19,10 +19,10 @@
19
19
  "author": "Agoric",
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@agoric/assert": "0.6.1-dev-51399d1.0+51399d1",
23
- "@agoric/internal": "0.3.3-dev-51399d1.0+51399d1",
24
- "@agoric/store": "0.9.3-dev-51399d1.0+51399d1",
25
- "@agoric/swingset-liveslots": "0.10.3-dev-51399d1.0+51399d1"
22
+ "@agoric/assert": "0.6.1-dev-1b5e57f.0+1b5e57f",
23
+ "@agoric/internal": "0.3.3-dev-1b5e57f.0+1b5e57f",
24
+ "@agoric/store": "0.9.3-dev-1b5e57f.0+1b5e57f",
25
+ "@agoric/swingset-liveslots": "0.10.3-dev-1b5e57f.0+1b5e57f"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@endo/init": "^0.5.59",
@@ -47,5 +47,5 @@
47
47
  "typeCoverage": {
48
48
  "atLeast": 98.23
49
49
  },
50
- "gitHead": "51399d19e8b32f794e2e0b6af990cc439d60dfaa"
50
+ "gitHead": "1b5e57f17a043a43171621bbe3ef68131954f714"
51
51
  }
@@ -13,6 +13,7 @@ import {
13
13
  makeKindHandle,
14
14
  defineDurableKind,
15
15
  partialAssign,
16
+ watchPromise,
16
17
  } from '.';
17
18
 
18
19
  // for use in assignments below
@@ -168,3 +169,22 @@ const vom: VirtualObjectManager = anyVal;
168
169
  vom.missingMethod;
169
170
  // @ts-expect-error Expected 0-4 arguments but got 5
170
171
  vom.defineDurableKind(anyVal, anyVal, anyVal, anyVal, 'extra');
172
+
173
+ const p: Promise<bigint> = anyVal;
174
+ watchPromise(
175
+ p,
176
+ {
177
+ onFulfilled(value, extra1, extra2) {
178
+ expectType<bigint>(value);
179
+ expectType<string>(extra1);
180
+ // @ts-expect-error str
181
+ expectType<number>(extra2);
182
+ },
183
+ onRejected(reason, extra1) {
184
+ expectType<unknown>(reason);
185
+ expectType<string>(extra1);
186
+ },
187
+ },
188
+ 'extraString',
189
+ 'alsoString',
190
+ );