@agoric/network 0.1.1-dev-f6d77a3.0 → 0.1.1-upgrade-16-dev-8879538.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 +11 -11
- package/src/network.d.ts +4 -29
- package/src/network.d.ts.map +1 -1
- package/src/network.js +0 -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-upgrade-16-dev-8879538.0+8879538",
|
|
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-upgrade-16-dev-8879538.0+8879538",
|
|
25
|
+
"@agoric/internal": "0.3.3-upgrade-16-dev-8879538.0+8879538",
|
|
26
|
+
"@agoric/store": "0.9.3-upgrade-16-dev-8879538.0+8879538",
|
|
27
|
+
"@agoric/vat-data": "0.5.3-upgrade-16-dev-8879538.0+8879538",
|
|
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-upgrade-16-dev-8879538.0+8879538",
|
|
35
|
+
"@agoric/swingset-vat": "0.32.3-upgrade-16-dev-8879538.0+8879538",
|
|
36
|
+
"@agoric/vow": "0.1.1-upgrade-16-dev-8879538.0+8879538",
|
|
37
|
+
"@agoric/zone": "0.2.3-upgrade-16-dev-8879538.0+8879538",
|
|
38
38
|
"@endo/bundle-source": "^3.2.3",
|
|
39
39
|
"ava": "^5.3.0",
|
|
40
40
|
"c8": "^9.1.0"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"workerThreads": false
|
|
66
66
|
},
|
|
67
67
|
"typeCoverage": {
|
|
68
|
-
"atLeast": 89.
|
|
68
|
+
"atLeast": 89.39
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "8879538cd1d125a08346f02dd5701d0d70c90bb8"
|
|
71
71
|
}
|
package/src/network.d.ts
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* @param {string} addr
|
|
5
5
|
*/
|
|
6
6
|
export function getPrefixes(addr: string): string[];
|
|
7
|
-
/** @typedef {ReturnType<typeof prepareEchoConnectionKit>} MakeEchoConnectionKit */
|
|
8
7
|
/**
|
|
9
8
|
* Create a protocol handler that just connects to itself.
|
|
10
9
|
*
|
|
@@ -37,25 +36,7 @@ export function prepareLoopbackProtocolHandler(zone: import("@agoric/base-zone")
|
|
|
37
36
|
* @param {import('@agoric/vow').Remote<ListenHandler>} listenHandler
|
|
38
37
|
* @param {*} _protocolHandler
|
|
39
38
|
*/
|
|
40
|
-
onListenRemove(port: import("@agoric/vow").Remote<Port,
|
|
41
|
-
/**
|
|
42
|
-
* The listener has been registered
|
|
43
|
-
*/
|
|
44
|
-
onListen?: undefined;
|
|
45
|
-
/**
|
|
46
|
-
* The connection was rejected
|
|
47
|
-
*/
|
|
48
|
-
onReject?: undefined;
|
|
49
|
-
/**
|
|
50
|
-
* There was an error while listening
|
|
51
|
-
*/
|
|
52
|
-
onError?: undefined;
|
|
53
|
-
/**
|
|
54
|
-
* The
|
|
55
|
-
* listener has been removed
|
|
56
|
-
*/
|
|
57
|
-
onRemove?: undefined;
|
|
58
|
-
}>, _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>;
|
|
59
40
|
onRevoke(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
|
|
60
41
|
}>;
|
|
61
42
|
/**
|
|
@@ -67,7 +48,7 @@ export function prepareLoopbackProtocolHandler(zone: import("@agoric/base-zone")
|
|
|
67
48
|
*/
|
|
68
49
|
export const ENDPOINT_SEPARATOR: "/";
|
|
69
50
|
export function rethrowUnlessMissing(err: unknown): undefined;
|
|
70
|
-
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[];
|
|
71
52
|
export function prepareNetworkProtocol(zone: import("@agoric/base-zone").Zone, powers: ReturnType<(zone: import("@agoric/base-zone").Zone, powers?: {
|
|
72
53
|
isRetryableReason?: ((reason: any) => boolean) | undefined;
|
|
73
54
|
} | undefined) => {
|
|
@@ -75,12 +56,7 @@ export function prepareNetworkProtocol(zone: import("@agoric/base-zone").Zone, p
|
|
|
75
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>;
|
|
76
57
|
makeVowKit: <T_2>() => import("@agoric/vow").VowKit<T_2>;
|
|
77
58
|
allVows: (vows: any) => import("@agoric/vow").Vow<any>;
|
|
78
|
-
}>): (protocolHandler: import("@agoric/vow").Remote<ProtocolHandler,
|
|
79
|
-
/**
|
|
80
|
-
* Return unique suffix for local address
|
|
81
|
-
*/
|
|
82
|
-
onInstantiate?: undefined;
|
|
83
|
-
}>) => Protocol;
|
|
59
|
+
}>): (protocolHandler: import("@agoric/vow").Remote<ProtocolHandler, never>) => Protocol;
|
|
84
60
|
export function prepareEchoConnectionKit(zone: import("@agoric/base-zone").Zone): () => import("@endo/exo").GuardedKit<{
|
|
85
61
|
handler: {
|
|
86
62
|
/**
|
|
@@ -127,10 +103,9 @@ export function preparePortAllocator(zone: import("@agoric/base-zone").Zone, { w
|
|
|
127
103
|
allocateICQControllerPort(): import("@agoric/vow").Vow<any>;
|
|
128
104
|
allocateCustomLocalPort(specifiedName?: string): import("@agoric/vow").Vow<any>;
|
|
129
105
|
}>;
|
|
130
|
-
export type MakeEchoConnectionKit = ReturnType<typeof prepareEchoConnectionKit>;
|
|
131
106
|
export type ConnectionOpts = {
|
|
132
107
|
addrs: string[];
|
|
133
|
-
handlers: import("@agoric/vow").Remote<Required<ConnectionHandler>,
|
|
108
|
+
handlers: import("@agoric/vow").Remote<Required<ConnectionHandler>, never>[];
|
|
134
109
|
conns: globalThis.MapStore<number, Connection>;
|
|
135
110
|
current: globalThis.WeakSetStore<Closable>;
|
|
136
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;
|
|
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"}
|
package/src/network.js
CHANGED
|
@@ -1289,7 +1289,6 @@ export const prepareEchoConnectionKit = zone => {
|
|
|
1289
1289
|
|
|
1290
1290
|
return makeEchoConnectionKit;
|
|
1291
1291
|
};
|
|
1292
|
-
/** @typedef {ReturnType<typeof prepareEchoConnectionKit>} MakeEchoConnectionKit */
|
|
1293
1292
|
|
|
1294
1293
|
/**
|
|
1295
1294
|
* Create a protocol handler that just connects to itself.
|