@agoric/vow 0.1.1-dev-aa68d8f.0 → 0.1.1-dev-96c9ff5.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 +13 -12
- package/src/types.d.ts +6 -7
- package/src/types.d.ts.map +1 -1
- package/src/types.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/vow",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-96c9ff5.0+96c9ff5",
|
|
4
4
|
"description": "Remote (shortening and disconnection-tolerant) Promise-likes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -20,17 +20,18 @@
|
|
|
20
20
|
"lint:types": "tsc"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@agoric/base-zone": "0.1.1-dev-
|
|
24
|
-
"@agoric/internal": "0.3.3-dev-
|
|
25
|
-
"@endo/env-options": "^1.1.
|
|
26
|
-
"@endo/eventual-send": "^1.2.
|
|
27
|
-
"@endo/pass-style": "^1.
|
|
28
|
-
"@endo/patterns": "^1.
|
|
29
|
-
"@endo/promise-kit": "^1.1.
|
|
23
|
+
"@agoric/base-zone": "0.1.1-dev-96c9ff5.0+96c9ff5",
|
|
24
|
+
"@agoric/internal": "0.3.3-dev-96c9ff5.0+96c9ff5",
|
|
25
|
+
"@endo/env-options": "^1.1.4",
|
|
26
|
+
"@endo/eventual-send": "^1.2.2",
|
|
27
|
+
"@endo/pass-style": "^1.4.0",
|
|
28
|
+
"@endo/patterns": "^1.4.0",
|
|
29
|
+
"@endo/promise-kit": "^1.1.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@
|
|
33
|
-
"@endo/
|
|
32
|
+
"@agoric/internal": "^0.3.2",
|
|
33
|
+
"@endo/far": "^1.1.2",
|
|
34
|
+
"@endo/init": "^1.1.2",
|
|
34
35
|
"ava": "^5.3.0"
|
|
35
36
|
},
|
|
36
37
|
"ava": {
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
"access": "public"
|
|
48
49
|
},
|
|
49
50
|
"typeCoverage": {
|
|
50
|
-
"atLeast": 89.
|
|
51
|
+
"atLeast": 89.38
|
|
51
52
|
},
|
|
52
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "96c9ff577fe14cebeb5a38543ba7f8598ffcd0c7"
|
|
53
54
|
}
|
package/src/types.d.ts
CHANGED
|
@@ -40,12 +40,10 @@ export type VowV0<T = any> = {
|
|
|
40
40
|
shorten: () => Promise<T>;
|
|
41
41
|
};
|
|
42
42
|
export type VowPayload<T = any> = {
|
|
43
|
-
vowV0: Remote<VowV0<T>>;
|
|
43
|
+
vowV0: RemotableObject & Remote<VowV0<T>>;
|
|
44
44
|
};
|
|
45
|
-
export type Vow<T = any> = {
|
|
46
|
-
[passStyle: symbol]: string;
|
|
45
|
+
export type Vow<T = any> = import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
47
46
|
payload: VowPayload<T>;
|
|
48
|
-
[Symbol.toStringTag]: "Vow";
|
|
49
47
|
};
|
|
50
48
|
export type VowKit<T = any> = {
|
|
51
49
|
vow: Vow<T>;
|
|
@@ -57,12 +55,12 @@ export type VowPromiseKit<T = any> = {
|
|
|
57
55
|
promise: Promise<T>;
|
|
58
56
|
};
|
|
59
57
|
export type VowResolver<T = any> = {
|
|
60
|
-
resolve(value?: T | PromiseVow<T>): void;
|
|
58
|
+
resolve(value?: T | PromiseVow<T> | undefined): void;
|
|
61
59
|
reject(reason?: any): void;
|
|
62
60
|
};
|
|
63
61
|
export type Watcher<T = any, TResult1 = T, TResult2 = T, C = any> = {
|
|
64
|
-
onFulfilled?: ((value: T, context?: C) => Vow<TResult1> | PromiseVow<TResult1>
|
|
65
|
-
onRejected?: ((reason: any) => Vow<TResult2> | PromiseVow<TResult2>
|
|
62
|
+
onFulfilled?: ((value: T, context?: C) => TResult1 | Vow<TResult1> | PromiseVow<TResult1>) | undefined;
|
|
63
|
+
onRejected?: ((reason: any) => TResult2 | Vow<TResult2> | PromiseVow<TResult2>) | undefined;
|
|
66
64
|
};
|
|
67
65
|
export type Specimen<T = any> = ERef<T | Vow<T>>;
|
|
68
66
|
export type VowTools = {
|
|
@@ -72,4 +70,5 @@ export type VowTools = {
|
|
|
72
70
|
allVows: (vows: any) => Vow<any>;
|
|
73
71
|
};
|
|
74
72
|
import type { RemotableBrand } from '@endo/eventual-send';
|
|
73
|
+
import type { RemotableObject } from '@endo/pass-style';
|
|
75
74
|
//# sourceMappingURL=types.d.ts.map
|
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"uBAUc,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG;;;;;uBAIR,CAAC,IAAjB,OAAO,CAAS,CAAC,AAAR,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;iBAMH,CAAC,IAAD,CAAC,AAAhB,GAAG,WAAW,CAAC,CAAC,CAAC;;;;wBAY9B,CAAK,IAPO,CAOZ,CAAK,AANA,SAAS,MAAM,GAAG,IAAI,GAM3B,CAAK,AALA,SAAS,OAAO,GAAG,IAAI,GAK5B,CAAK,AAJA,SAAS,IAAI,GAAG,IAAI,GAIzB,CAAK,AAHA,SAAS,MAAM,GAAG,IAAI,GAG3B,CAAK,AAFA,SAAS,MAAM,GAAG,IAAI,GAE3B,CAAK,AADA,SAAS,MAAM,GAAG,IAAI,GAC3B,CAAK,SAAS,SAAS,GAAG,IAAI,GAC9B,KAAS,CACN;;;;qBAQiE,CAAC,IAHzD,CACZ,WAAe,CAEqD,CAAC,AAFpD,CAAC,SAAS,IAAI,GAEqC,CAAC,AAFlC,GAEiC,CAAC,AADhE,SAAS,QAAQ,GAAG,KAAK,GAC9B,GAAO,CAAC,IAAI,MAAwD,CAAC,AAAlD,IAAiD,CAAC,AAA7C,CAA8C,CAAC,AAA7C,CAAC,SAAS,QAAQ,GAAG,KAAK,GAAkB,CAAC,AAAf,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAE,CACxE;;;;;mBAYH,CAAK;;;;;;mBASuC,OAAO,EAAd,KAAK;;;;;;;kBAYf,CAAC;;;;;;;aAAf,MAAM,OAAO,CAAC,CAAC,CAAC;;uBASe,CAAC;;;gBAKJ,CAAC;;;mBAOhB,CAAC,UAFf;IACZ,GAAO,EAAE,GAAG,CACc,CAAC,AADb,CAAC,CAAC;IAChB,QAAY,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;CAC1B;0BAQkB,CAAC,UAHV;IACZ,GAAO,EAAE,GAAG,CAES,CAAC,AAFR,CAAC,CAAC;IAChB,QAAY,EAAE,WAAW,CACJ,CAAC,AADK,CAAC,CAAC;IAC7B,OAAW,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;CACpB;wBAK0C,CAAC;oDAAI,IAAI;oBAAkB,GAAG,GAAG,IAAI;;oBAS7D,CAAC,QAAyD,QAAQ,MAClB,QAAQ,MAD3C,CAAC;2BAAd,CAAC,YAAY,CAAC;2BACb,GAAG;;qBAKA,CAAC,UAAd,IAAI,CAAS,CAAC,AAAR,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;;iEAjHqB,CAAC;;;;;oCAVlB,qBAAqB;qCAEpB,kBAAkB"}
|
package/src/types.js
CHANGED
|
@@ -4,9 +4,10 @@ export {};
|
|
|
4
4
|
/**
|
|
5
5
|
* @import {RemotableBrand} from '@endo/eventual-send'
|
|
6
6
|
* @import {CopyTagged} from '@endo/pass-style'
|
|
7
|
+
* @import {RemotableObject} from '@endo/pass-style';
|
|
8
|
+
* @import {PromiseVow, Remote} from '@agoric/vow';
|
|
7
9
|
* @import {prepareVowTools} from './tools.js'
|
|
8
10
|
*/
|
|
9
|
-
|
|
10
11
|
/** @typedef {(...args: any[]) => any} Callable */
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -82,7 +83,7 @@ export {};
|
|
|
82
83
|
/**
|
|
83
84
|
* @template [T=any]
|
|
84
85
|
* @typedef {object} VowPayload
|
|
85
|
-
* @property {Remote<VowV0<T>>} vowV0
|
|
86
|
+
* @property {RemotableObject & Remote<VowV0<T>>} vowV0
|
|
86
87
|
*/
|
|
87
88
|
|
|
88
89
|
/**
|