@agoric/network 0.1.1-dev-60cffcf.0 → 0.1.1-dev-cc2bf0b.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 +10 -10
- package/src/network.d.ts +4 -27
- package/src/network.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/network",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-cc2bf0b.0+cc2bf0b",
|
|
4
4
|
"description": "Agoric's network protocol API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"author": "Agoric",
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@agoric/assert": "0.6.1-dev-
|
|
25
|
-
"@agoric/internal": "0.3.3-dev-
|
|
26
|
-
"@agoric/store": "0.9.3-dev-
|
|
27
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
24
|
+
"@agoric/assert": "0.6.1-dev-cc2bf0b.0+cc2bf0b",
|
|
25
|
+
"@agoric/internal": "0.3.3-dev-cc2bf0b.0+cc2bf0b",
|
|
26
|
+
"@agoric/store": "0.9.3-dev-cc2bf0b.0+cc2bf0b",
|
|
27
|
+
"@agoric/vat-data": "0.5.3-dev-cc2bf0b.0+cc2bf0b",
|
|
28
28
|
"@endo/base64": "^1.0.5",
|
|
29
29
|
"@endo/far": "^1.1.2",
|
|
30
30
|
"@endo/patterns": "^1.4.0",
|
|
31
31
|
"@endo/promise-kit": "^1.1.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
35
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
36
|
-
"@agoric/vow": "0.1.1-dev-
|
|
37
|
-
"@agoric/zone": "0.2.3-dev-
|
|
34
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-cc2bf0b.0+cc2bf0b",
|
|
35
|
+
"@agoric/swingset-vat": "0.32.3-dev-cc2bf0b.0+cc2bf0b",
|
|
36
|
+
"@agoric/vow": "0.1.1-dev-cc2bf0b.0+cc2bf0b",
|
|
37
|
+
"@agoric/zone": "0.2.3-dev-cc2bf0b.0+cc2bf0b",
|
|
38
38
|
"@endo/bundle-source": "^3.2.3",
|
|
39
39
|
"ava": "^5.3.0",
|
|
40
40
|
"c8": "^9.1.0"
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"typeCoverage": {
|
|
69
69
|
"atLeast": 89.39
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "cc2bf0bb431aa64c601628f53cf191fcc84c5750"
|
|
72
72
|
}
|
package/src/network.d.ts
CHANGED
|
@@ -36,25 +36,7 @@ export function prepareLoopbackProtocolHandler(zone: import("@agoric/base-zone")
|
|
|
36
36
|
* @param {import('@agoric/vow').Remote<ListenHandler>} listenHandler
|
|
37
37
|
* @param {*} _protocolHandler
|
|
38
38
|
*/
|
|
39
|
-
onListenRemove(port: import("@agoric/vow").Remote<Port,
|
|
40
|
-
/**
|
|
41
|
-
* The listener has been registered
|
|
42
|
-
*/
|
|
43
|
-
onListen?: undefined;
|
|
44
|
-
/**
|
|
45
|
-
* The connection was rejected
|
|
46
|
-
*/
|
|
47
|
-
onReject?: undefined;
|
|
48
|
-
/**
|
|
49
|
-
* There was an error while listening
|
|
50
|
-
*/
|
|
51
|
-
onError?: undefined;
|
|
52
|
-
/**
|
|
53
|
-
* The
|
|
54
|
-
* listener has been removed
|
|
55
|
-
*/
|
|
56
|
-
onRemove?: undefined;
|
|
57
|
-
}>, _protocolHandler: any): Promise<void>;
|
|
39
|
+
onListenRemove(port: import("@agoric/vow").Remote<Port, never>, localAddr: string, listenHandler: import("@agoric/vow").Remote<ListenHandler, never>, _protocolHandler: any): Promise<void>;
|
|
58
40
|
onRevoke(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
|
|
59
41
|
}>;
|
|
60
42
|
/**
|
|
@@ -66,7 +48,7 @@ export function prepareLoopbackProtocolHandler(zone: import("@agoric/base-zone")
|
|
|
66
48
|
*/
|
|
67
49
|
export const ENDPOINT_SEPARATOR: "/";
|
|
68
50
|
export function rethrowUnlessMissing(err: unknown): undefined;
|
|
69
|
-
export function crossoverConnection(zone: import("@agoric/zone").Zone, handler0: import("@agoric/vow").Remote<Required<ConnectionHandler>,
|
|
51
|
+
export function crossoverConnection(zone: import("@agoric/zone").Zone, handler0: import("@agoric/vow").Remote<Required<ConnectionHandler>, never>, addr0: string, handler1: import("@agoric/vow").Remote<Required<ConnectionHandler>, never>, addr1: string, makeConnection: (opts: ConnectionOpts) => Connection, current?: globalThis.WeakSetStore<Closable> | undefined): Connection[];
|
|
70
52
|
export function prepareNetworkProtocol(zone: import("@agoric/base-zone").Zone, powers: ReturnType<(zone: import("@agoric/base-zone").Zone, powers?: {
|
|
71
53
|
isRetryableReason?: ((reason: any) => boolean) | undefined;
|
|
72
54
|
} | undefined) => {
|
|
@@ -74,12 +56,7 @@ export function prepareNetworkProtocol(zone: import("@agoric/base-zone").Zone, p
|
|
|
74
56
|
watch: <T_1 = unknown, TResult1_1 = T_1, TResult2_1 = T_1, C = unknown>(specimenP: import("@agoric/vow").ERef<T_1 | import("@agoric/vow").Vow<T_1>>, watcher?: import("@agoric/vow").Watcher<T_1, TResult1_1, TResult2_1> | undefined, watcherContext?: C | undefined) => import("@agoric/vow").Vow<TResult1_1 | TResult2_1>;
|
|
75
57
|
makeVowKit: <T_2>() => import("@agoric/vow").VowKit<T_2>;
|
|
76
58
|
allVows: (vows: any) => import("@agoric/vow").Vow<any>;
|
|
77
|
-
}>): (protocolHandler: import("@agoric/vow").Remote<ProtocolHandler,
|
|
78
|
-
/**
|
|
79
|
-
* Return unique suffix for local address
|
|
80
|
-
*/
|
|
81
|
-
onInstantiate?: undefined;
|
|
82
|
-
}>) => Protocol;
|
|
59
|
+
}>): (protocolHandler: import("@agoric/vow").Remote<ProtocolHandler, never>) => Protocol;
|
|
83
60
|
export function prepareEchoConnectionKit(zone: import("@agoric/base-zone").Zone): () => import("@endo/exo").GuardedKit<{
|
|
84
61
|
handler: {
|
|
85
62
|
/**
|
|
@@ -128,7 +105,7 @@ export function preparePortAllocator(zone: import("@agoric/base-zone").Zone, { w
|
|
|
128
105
|
}>;
|
|
129
106
|
export type ConnectionOpts = {
|
|
130
107
|
addrs: string[];
|
|
131
|
-
handlers: import("@agoric/vow").Remote<Required<ConnectionHandler>,
|
|
108
|
+
handlers: import("@agoric/vow").Remote<Required<ConnectionHandler>, never>[];
|
|
132
109
|
conns: globalThis.MapStore<number, Connection>;
|
|
133
110
|
current: globalThis.WeakSetStore<Closable>;
|
|
134
111
|
l: 0 | 1;
|
package/src/network.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["network.js"],"names":[],"mappings":"AAkCA;;;;GAIG;AACH,kCAFW,MAAM,YAahB;AA0tCD;;;;;GAKG;AACH,qDAHW,OAAO,mBAAmB,EAAE,IAAI,sBAChC,UAAU;;;uFApwCoG,CAAC;;;;EAowC9D;;;;IAmCpD;;;;;OAKG;;;;IAgEH;;;;;OAKG
|
|
1
|
+
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["network.js"],"names":[],"mappings":"AAkCA;;;;GAIG;AACH,kCAFW,MAAM,YAahB;AA0tCD;;;;;GAKG;AACH,qDAHW,OAAO,mBAAmB,EAAE,IAAI,sBAChC,UAAU;;;uFApwCoG,CAAC;;;;EAowC9D;;;;IAmCpD;;;;;OAKG;;;;IAgEH;;;;;OAKG;;;GA8CV;AAh6CD;;GAEG;AAEH;;;GAGG;AACH,qCAAsC;AAG/B,0CADK,OAAO,aAWlB;AAyJM,0CARI,OAAO,cAAc,EAAE,IAAI,+MAKpB,cAAc,wFAgD/B;AAi7BM,6CAHI,OAAO,mBAAmB,EAAE,IAAI,UAChC,UAAU;;;;;;;EAAuC,uFAkC3D;AAOM,+CAFI,OAAO,mBAAmB,EAAE,IAAI;;QAsCnC;;;;WAIG;;QASH;;;;WAIG;;;;;YAjBH;;;;eAIG;;YASH;;;;eAIG;;;;;GAuBV;AAwKM,2CAHI,OAAO,mBAAmB,EAAE,IAAI,aAChC,UAAU;;;;;;;EAAuC;;;;;GA+DzD;;;;;;OAv6CW,CAAC,GAAC,CAAC;OACH,CAAC,GAAC,CAAC;;wCA7DyJ,YAAY;0BAAZ,YAAY;mCAAZ,YAAY;uCAAZ,YAAY;gCAAZ,YAAY;8BAAZ,YAAY;qCAAZ,YAAY;8BAAZ,YAAY"}
|