@agoric/network 0.1.1-dev-16095c5.0 → 0.1.1-dev-980ff41.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/network",
3
- "version": "0.1.1-dev-16095c5.0+16095c5",
3
+ "version": "0.1.1-dev-980ff41.0+980ff41",
4
4
  "description": "Agoric's network protocol API",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -21,36 +21,32 @@
21
21
  "author": "Agoric",
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@agoric/assert": "0.6.1-dev-16095c5.0+16095c5",
25
- "@agoric/internal": "0.3.3-dev-16095c5.0+16095c5",
26
- "@agoric/store": "0.9.3-dev-16095c5.0+16095c5",
27
- "@agoric/vat-data": "0.5.3-dev-16095c5.0+16095c5",
24
+ "@agoric/assert": "0.6.1-dev-980ff41.0+980ff41",
25
+ "@agoric/internal": "0.3.3-dev-980ff41.0+980ff41",
26
+ "@agoric/store": "0.9.3-dev-980ff41.0+980ff41",
27
+ "@agoric/vat-data": "0.5.3-dev-980ff41.0+980ff41",
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-16095c5.0+16095c5",
35
- "@agoric/swingset-vat": "0.32.3-dev-16095c5.0+16095c5",
36
- "@agoric/vow": "0.1.1-dev-16095c5.0+16095c5",
37
- "@agoric/zone": "0.2.3-dev-16095c5.0+16095c5",
34
+ "@agoric/swingset-liveslots": "0.10.3-dev-980ff41.0+980ff41",
35
+ "@agoric/swingset-vat": "0.32.3-dev-980ff41.0+980ff41",
36
+ "@agoric/vow": "0.1.1-dev-980ff41.0+980ff41",
37
+ "@agoric/zone": "0.2.3-dev-980ff41.0+980ff41",
38
38
  "@endo/bundle-source": "^3.2.3",
39
39
  "ava": "^5.3.0",
40
40
  "c8": "^9.1.0"
41
41
  },
42
42
  "exports": {
43
- ".": "./src/index.js",
44
- "./exported.js": "./exported.js"
43
+ ".": "./src/index.js"
45
44
  },
46
45
  "files": [
47
46
  "CHANGELOG.md",
48
47
  "src/",
49
48
  "scripts/",
50
- "tools/",
51
- "*.json",
52
- "globals.d.ts",
53
- "exported.js"
49
+ "tools/"
54
50
  ],
55
51
  "publishConfig": {
56
52
  "access": "public"
@@ -72,5 +68,5 @@
72
68
  "typeCoverage": {
73
69
  "atLeast": 89.39
74
70
  },
75
- "gitHead": "16095c5076043133aff0f25721131be2ca1ef5af"
71
+ "gitHead": "980ff41770a66215cd87f9ce6f12151fc4396fd6"
76
72
  }
@@ -1 +1 @@
1
- {"version":3,"file":"network.d.ts","sourceRoot":"","sources":["network.js"],"names":[],"mappings":"AAiCA;;;;GAIG;AACH,kCAFW,MAAM,YAahB;AA0tCD;;;;;GAKG;AACH,qDAHW,OAAO,mBAAmB,EAAE,IAAI,sBAChC,UAAU;;;uFApwCqH,CAAC;;;;EAowC/E;;;;IAmCpD;;;;;OAKG;;;;IAgEH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;GA8CV;AAh6CD;;GAEG;AAEH;;;GAGG;AACH,qCAAsC;AAG/B,0CADK,OAAO,aAWlB;AAyJM,0CARI,OAAO,cAAc,EAAE,IAAI,yMAKpB,cAAc,wFAgD/B;AAi7BM,6CAHI,OAAO,mBAAmB,EAAE,IAAI,UAChC,UAAU;;;;;;;EAAuC;;;;;gBAkC3D;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"}
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,yMAKpB,cAAc,wFAgD/B;AAi7BM,6CAHI,OAAO,mBAAmB,EAAE,IAAI,UAChC,UAAU;;;;;;;EAAuC;;;;;gBAkC3D;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
@@ -1,12 +1,13 @@
1
1
  // @ts-check
2
2
 
3
+ /// <reference types="@agoric/store/exported.js" />
4
+
3
5
  import { E } from '@endo/far';
4
6
  import { M } from '@endo/patterns';
5
7
  import { Fail } from '@agoric/assert';
6
8
  import { toBytes } from './bytes.js';
7
9
  import { Shape } from './shapes.js';
8
10
 
9
- import '@agoric/store/exported.js';
10
11
  /// <reference path="./types.js" />
11
12
  /**
12
13
  * @import {AttemptDescription, Bytes, Closable, CloseReason, Connection, ConnectionHandler, Endpoint, ListenHandler, Port, Protocol, ProtocolHandler, ProtocolImpl} from './types.js';
package/src/router.d.ts CHANGED
@@ -43,7 +43,22 @@ export function prepareRouterProtocol(zone: import("@agoric/base-zone").Zone, po
43
43
  readonly resolve: {
44
44
  (): Promise<void>;
45
45
  <T_2_1>(value: T_2_1): Promise<Awaited<T_2_1>>;
46
- <T_3_1>(value: T_3_1 | PromiseLike<T_3_1>): Promise<Awaited<T_3_1>>;
46
+ <T_3_1>(value: T_3_1 |
47
+ /**
48
+ * @import {AttemptDescription, Bytes, Closable, CloseReason, Connection, ConnectionHandler, Endpoint, ListenHandler, Port, Protocol, ProtocolHandler, ProtocolImpl} from './types.js';
49
+ * @import {PromiseVow, Remote, VowKit, VowResolver, VowTools} from '@agoric/vow';
50
+ */
51
+ /**
52
+ * @template T
53
+ * @typedef {object} Router A delimited string router implementation
54
+ * @property {(addr: string) => [string, T][]} getRoutes Return the match and
55
+ * route in order of preference
56
+ * @property {(prefix: string, route: T) => void} register Add a prefix->route
57
+ * to the database
58
+ * @property {(prefix: string, route: T) => void} unregister Remove a
59
+ * prefix->route from the database
60
+ */
61
+ PromiseLike<T_3_1>): Promise<Awaited<T_3_1>>;
47
62
  };
48
63
  readonly sendOnly: <T_4>(x: T_4) => import("../../../node_modules/@endo/eventual-send/src/E.js").ESendOnlyCallableOrMethods<import("@endo/eventual-send").RemoteFunctions<T_4>>;
49
64
  readonly when: <T_5, U = T_5>(x: T_5 | PromiseLike<T_5>, onfulfilled?: ((value: T_5) => import("../../../node_modules/@endo/eventual-send/src/E.js").ERef<U>) | undefined, onrejected?: ((reason: any) => import("../../../node_modules/@endo/eventual-send/src/E.js").ERef<U>) | undefined) => Promise<U>;
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["router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;;;GAIG;AAMI,8BAiDU,CAAC,QAnDP,OAAO,mBAAmB,EAAE,IAAI;IAiBrC,6BAA6B;;IAyB7B;;;OAGG;qBAFQ,MAAM,SAQN,CAAC,AAPA;IAKZ;;;OAGG;uBAFQ,MAAM,SACN,CAAC;GAWjB;AAgBM,4CAJI,OAAO,mBAAmB,EAAE,IAAI,UAChC,UAAU;;;uFAlGmD,CAAC;;;;EAkGb,iBA5GnD,GAAE;6BAGoB,KAAI;;;uBAGoB,KAAI;uBAC7B,KAAI;QAElC;;;WAGG;QAEH;;;;;;;;;WASG;QAEH,YAfO,KAAG,CAAC;;gCAAgE,GAAI;qCAC3D,GAAI,GAAE,YAAc,GAAE,CAAC,gBAAe,CAAE,CAAC,OAAO,GAAG,KAAI,OAC1E,oDAEE,EACF,IAAI,CAAC,CAAC,CAAC,CAAC,YACH,eAAe,CAAC,CAAC,WAAW,KAAI,OAAS,oDAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,YACzD;;IA+HD;;;OAGG;mCAFQ,MAAM,EAAE;IAanB;;;OAGG;sCAFQ,MAAM;IAejB,kCAAkC;;GAUvC;;;;mBAnKqC,CAAC;;;;;eAJzB,CAAC,IAAI,EAAE,MAAM,KAAK,CAAC,MAAM,EAID,CAAC,AAJG,CAAC,EAAE;;;;;cAE/B,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAEE,CAAC,AAFA,KAAK,IAAI;;;;;gBAElC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,KAAK,IAAI;;;uBA8EzB,MAAM;qCACP,MAAM,EAAE,uCAAuC,IAAI;wCAClD,MAAM,uCAAuC,IAAI;;4BA1FJ,aAAa;qCADyF,YAAY;4BAClH,aAAa;0BADyF,YAAY;gCAClH,aAAa"}
package/src/router.js CHANGED
@@ -1,13 +1,14 @@
1
1
  // @ts-check
2
+
3
+ /// <reference types="@agoric/store/exported.js" />
4
+ /// <reference path="./types.js" />
5
+
2
6
  import { E as defaultE } from '@endo/far';
3
7
  import { M } from '@endo/patterns';
4
8
  import { Fail } from '@agoric/assert';
5
9
  import { ENDPOINT_SEPARATOR, prepareNetworkProtocol } from './network.js';
6
10
  import { Shape } from './shapes.js';
7
11
 
8
- // XXX ambient types runtime imports until https://github.com/Agoric/agoric-sdk/issues/6512
9
- import '@agoric/store/exported.js';
10
- /// <reference path="./types.js" />
11
12
  /**
12
13
  * @import {AttemptDescription, Bytes, Closable, CloseReason, Connection, ConnectionHandler, Endpoint, ListenHandler, Port, Protocol, ProtocolHandler, ProtocolImpl} from './types.js';
13
14
  * @import {PromiseVow, Remote, VowKit, VowResolver, VowTools} from '@agoric/vow';
package/exported.js DELETED
@@ -1 +0,0 @@
1
- import './src/types.js';
@@ -1,6 +0,0 @@
1
- {
2
- "extends": [
3
- "./tsconfig.json",
4
- "../../tsconfig-build-options.json"
5
- ]
6
- }
package/tsconfig.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "checkJs": false,
5
- "maxNodeModuleJsDepth": 1,
6
- },
7
- "include": [
8
- "*.js",
9
- "scripts/**/*.js",
10
- "src/**/*.js",
11
- "test/**/*.js",
12
- "tools/**/*.js",
13
- ],
14
- }
package/typedoc.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "extends": [
3
- "../../typedoc.base.json"
4
- ],
5
- "entryPoints": [
6
- "./src/index.js",
7
- "./src/types.js",
8
- ]
9
- }