@agoric/async-flow 0.1.1-upgrade-16-dev-24665a9.0 → 0.1.1-upgrade-16-dev-d492653.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 +8 -8
- package/src/replay-membrane.d.ts +2 -34
- package/src/replay-membrane.d.ts.map +1 -1
- package/src/types.d.ts +1 -1
- package/src/types.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/async-flow",
|
|
3
|
-
"version": "0.1.1-upgrade-16-dev-
|
|
3
|
+
"version": "0.1.1-upgrade-16-dev-d492653.0+d492653",
|
|
4
4
|
"description": "Upgrade async functions at await points by replay",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/Agoric/agoric-sdk",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"author": "Agoric",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@agoric/base-zone": "0.1.1-upgrade-16-dev-
|
|
28
|
-
"@agoric/store": "0.9.3-upgrade-16-dev-
|
|
29
|
-
"@agoric/vow": "0.1.1-upgrade-16-dev-
|
|
27
|
+
"@agoric/base-zone": "0.1.1-upgrade-16-dev-d492653.0+d492653",
|
|
28
|
+
"@agoric/store": "0.9.3-upgrade-16-dev-d492653.0+d492653",
|
|
29
|
+
"@agoric/vow": "0.1.1-upgrade-16-dev-d492653.0+d492653",
|
|
30
30
|
"@endo/common": "^1.2.2",
|
|
31
31
|
"@endo/errors": "^1.2.2",
|
|
32
32
|
"@endo/eventual-send": "^1.2.2",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"@endo/promise-kit": "^1.1.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@agoric/internal": "0.3.3-upgrade-16-dev-
|
|
40
|
-
"@agoric/swingset-liveslots": "0.10.3-upgrade-16-dev-
|
|
41
|
-
"@agoric/zone": "0.2.3-upgrade-16-dev-
|
|
39
|
+
"@agoric/internal": "0.3.3-upgrade-16-dev-d492653.0+d492653",
|
|
40
|
+
"@agoric/swingset-liveslots": "0.10.3-upgrade-16-dev-d492653.0+d492653",
|
|
41
|
+
"@agoric/zone": "0.2.3-upgrade-16-dev-d492653.0+d492653",
|
|
42
42
|
"@endo/env-options": "^1.1.4",
|
|
43
43
|
"@endo/ses-ava": "^1.2.2",
|
|
44
44
|
"ava": "^5.3.0"
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"typeCoverage": {
|
|
63
63
|
"atLeast": 77.83
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "d49265372b3cdd681558791b0c780e1c3062bdcc"
|
|
66
66
|
}
|
package/src/replay-membrane.d.ts
CHANGED
|
@@ -18,24 +18,8 @@ export function makeReplayMembrane(log: import("@endo/exo").Guarded<{
|
|
|
18
18
|
guestToHost(g: any): any;
|
|
19
19
|
hostToGuest(h: any): any;
|
|
20
20
|
}>, vowTools: {
|
|
21
|
-
when: <T, TResult1 = import("@agoric/vow").
|
|
22
|
-
/**
|
|
23
|
-
* When replaying, this comes from interpreting the log.
|
|
24
|
-
* Otherwise, it is triggered by a watcher watching hostVow,
|
|
25
|
-
* that must also log it.
|
|
26
|
-
*
|
|
27
|
-
* @param {HostVow} hostVow
|
|
28
|
-
* @param {Host} hostFulfillment
|
|
29
|
-
*/
|
|
21
|
+
when: <T, TResult1 = import("@agoric/vow").Unwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").Unwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
|
|
30
22
|
watch: <T_1 = any, TResult1_1 = T_1, TResult2_1 = never, C = any>(specimenP: import("@agoric/vow").ERef<T_1 | Vow<T_1>>, watcher?: import("@agoric/vow").Watcher<T_1, TResult1_1, TResult2_1> | undefined, watcherContext?: C | undefined) => Vow<Exclude<TResult1_1, void> | Exclude<TResult2_1, void> extends never ? TResult1_1 : Exclude<TResult1_1, void> | Exclude<TResult2_1, void>>;
|
|
31
|
-
/**
|
|
32
|
-
* When replaying, this comes from interpreting the log.
|
|
33
|
-
* Otherwise, it is triggered by a watcher watching hostVow,
|
|
34
|
-
* that must also log it.
|
|
35
|
-
*
|
|
36
|
-
* @param {HostVow} hostVow
|
|
37
|
-
* @param {Host} hostFulfillment
|
|
38
|
-
*/
|
|
39
23
|
makeVowKit: <T_2>() => import("@agoric/vow").VowKit<T_2>;
|
|
40
24
|
allVows: (vows: unknown[]) => Vow<any[]>;
|
|
41
25
|
}, watchWake: (vowish: Promise<any> | Vow) => void, panic: (problem: Error) => never): {
|
|
@@ -69,24 +53,8 @@ export type ReplayMembrane = ReturnType<(log: import("@endo/exo").Guarded<{
|
|
|
69
53
|
guestToHost(g: any): any;
|
|
70
54
|
hostToGuest(h: any): any;
|
|
71
55
|
}>, vowTools: {
|
|
72
|
-
when: <T, TResult1 = import("@agoric/vow").
|
|
73
|
-
/**
|
|
74
|
-
* When replaying, this comes from interpreting the log.
|
|
75
|
-
* Otherwise, it is triggered by a watcher watching hostVow,
|
|
76
|
-
* that must also log it.
|
|
77
|
-
*
|
|
78
|
-
* @param {HostVow} hostVow
|
|
79
|
-
* @param {Host} hostFulfillment
|
|
80
|
-
*/
|
|
56
|
+
when: <T, TResult1 = import("@agoric/vow").Unwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").Unwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
|
|
81
57
|
watch: <T_1 = any, TResult1_1 = T_1, TResult2_1 = never, C = any>(specimenP: import("@agoric/vow").ERef<T_1 | Vow<T_1>>, watcher?: import("@agoric/vow").Watcher<T_1, TResult1_1, TResult2_1> | undefined, watcherContext?: C | undefined) => Vow<Exclude<TResult1_1, void> | Exclude<TResult2_1, void> extends never ? TResult1_1 : Exclude<TResult1_1, void> | Exclude<TResult2_1, void>>;
|
|
82
|
-
/**
|
|
83
|
-
* When replaying, this comes from interpreting the log.
|
|
84
|
-
* Otherwise, it is triggered by a watcher watching hostVow,
|
|
85
|
-
* that must also log it.
|
|
86
|
-
*
|
|
87
|
-
* @param {HostVow} hostVow
|
|
88
|
-
* @param {Host} hostFulfillment
|
|
89
|
-
*/
|
|
90
58
|
makeVowKit: <T_2>() => import("@agoric/vow").VowKit<T_2>;
|
|
91
59
|
allVows: (vows: unknown[]) => Vow<any[]>;
|
|
92
60
|
}, watchWake: (vowish: Promise<any> | Vow) => void, panic: (problem: Error) => never) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-membrane.d.ts","sourceRoot":"","sources":["replay-membrane.js"],"names":[],"mappings":"AAqBO;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"replay-membrane.d.ts","sourceRoot":"","sources":["replay-membrane.js"],"names":[],"mappings":"AAqBO;;;;;;;;;;;;;;;;;;;;uFAZuC,CAAC;;;oBAqBtC,SAAS;8CAZoB,IAAI,SAC/B,CAAC,OAAO,EAAE,KAAK,KAAK,KAAK;;;;;;;;;;GAqdnC;6BAGa,UAAU;;;;;;;;;;;;;;;;;;;;uFAlesB,CAAC;;;oBAqBtC,SAAS;2DAXP,CAAC,OAAO,EAAE,KAAK,KAAK,KAAK;;;;;;;;;;GAwdQ"}
|
package/src/types.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ type GuestAsyncFunc = (...activationArgs: Guest[]) => Guest<Promise<any>>;
|
|
|
12
12
|
type HostAsyncFuncWrapper = (...activationArgs: Host[]) => HostVow;
|
|
13
13
|
type PreparationOptions = {
|
|
14
14
|
vowTools?: {
|
|
15
|
-
when: <T, TResult1 = import("@agoric/vow").
|
|
15
|
+
when: <T, TResult1 = import("@agoric/vow").Unwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").Unwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
|
|
16
16
|
watch: <T_1 = any, TResult1_1 = T_1, TResult2_1 = never, C = any>(specimenP: import("@agoric/vow").ERef<T_1 | Vow<T_1>>, watcher?: import("@agoric/vow").Watcher<T_1, TResult1_1, TResult2_1> | undefined, watcherContext?: C | undefined) => Vow<Exclude<TResult1_1, void> | Exclude<TResult2_1, void> extends never ? TResult1_1 : Exclude<TResult1_1, void> | Exclude<TResult2_1, void>>;
|
|
17
17
|
makeVowKit: <T_2>() => import("@agoric/vow").VowKit<T_2>;
|
|
18
18
|
allVows: (vows: unknown[]) => Vow<any[]>;
|
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"iBAWa,SAAS,GACrB,UAAsB,GACtB,WAAuB,GACvB,QAAoB,GACpB,MAAkB;WAMN,CAAC,gCAAD,CAAC;UAKD,CAAC,gCAAD,CAAC;;;;;aAQQ,CAAC;;;sBAIV,CAAC,GAAG,cAAc,EAAE,KAAK,EAAE,KAAK,KAAK,cAAS;4BAI9C,CAAC,GAAG,cAAc,EAAE,IAAI,EAAE,KAAK,OAAO;;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"iBAWa,SAAS,GACrB,UAAsB,GACtB,WAAuB,GACvB,QAAoB,GACpB,MAAkB;WAMN,CAAC,gCAAD,CAAC;UAKD,CAAC,gCAAD,CAAC;;;;;aAQQ,CAAC;;;sBAIV,CAAC,GAAG,cAAc,EAAE,KAAK,EAAE,KAAK,KAAK,cAAS;4BAI9C,CAAC,GAAG,cAAc,EAAE,IAAI,EAAE,KAAK,OAAO;;;2FA7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