@toa.io/core 1.0.0-alpha.306 → 1.0.0-alpha.308
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 +2 -2
- package/transpiled/composition.d.ts +1 -1
- package/transpiled/composition.js +1 -4
- package/transpiled/composition.js.map +1 -1
- package/transpiled/contract/component.d.ts +24 -0
- package/transpiled/contract/component.js +48 -0
- package/transpiled/contract/component.js.map +1 -0
- package/transpiled/contract/index.d.ts +1 -0
- package/transpiled/contract/index.js +1 -0
- package/transpiled/contract/index.js.map +1 -1
- package/transpiled/exceptions.d.ts +3 -0
- package/transpiled/exceptions.js +7 -2
- package/transpiled/exceptions.js.map +1 -1
- package/transpiled/index.d.ts +1 -2
- package/transpiled/index.js +0 -2
- package/transpiled/index.js.map +1 -1
- package/transpiled/types/extensions.d.ts +4 -3
- package/transpiled/discovery.d.ts +0 -23
- package/transpiled/discovery.js +0 -62
- package/transpiled/discovery.js.map +0 -1
- package/transpiled/exposition.d.ts +0 -18
- package/transpiled/exposition.js +0 -18
- package/transpiled/exposition.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/core",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.308",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Toa Core",
|
|
6
6
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"openspan": "1.0.0-alpha.305",
|
|
46
46
|
"uuid": "14.0.2"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "66eb0d54032f60e6ead9e13fd9e21fb60c611277"
|
|
49
49
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Connector } from './connector.ts';
|
|
2
2
|
export declare class Composition extends Connector {
|
|
3
|
-
constructor(
|
|
3
|
+
constructor(producers: Connector[], receivers: Connector[], tenants: Connector[]);
|
|
4
4
|
protected open(): Promise<void>;
|
|
5
5
|
protected dispose(): Promise<void>;
|
|
6
6
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { console } from 'openspan';
|
|
2
2
|
import { Connector } from './connector.js';
|
|
3
3
|
export class Composition extends Connector {
|
|
4
|
-
|
|
5
|
-
constructor(expositions, producers, receivers, tenants) {
|
|
4
|
+
constructor(producers, receivers, tenants) {
|
|
6
5
|
super();
|
|
7
|
-
if (expositions.length > 0)
|
|
8
|
-
this.depends(expositions);
|
|
9
6
|
if (producers.length > 0)
|
|
10
7
|
this.depends(producers);
|
|
11
8
|
if (receivers.length > 0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composition.js","sourceRoot":"","sources":["../source/composition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,OAAO,WAAY,SAAQ,SAAS;IACxC,
|
|
1
|
+
{"version":3,"file":"composition.js","sourceRoot":"","sources":["../source/composition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,OAAO,WAAY,SAAQ,SAAS;IACxC,YACE,SAAsB,EACtB,SAAsB,EACtB,OAAoB;QAEpB,KAAK,EAAE,CAAA;QAEP,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC;YAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;QACjD,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC;YAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;QACjD,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC;YAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;IAC/C,CAAC;IAEkB,KAAK,CAAC,IAAI;QAC3B,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAA;IACtC,CAAC;IAEkB,KAAK,CAAC,OAAO;QAC9B,OAAO,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAA;IAC/C,CAAC;CACF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Definition, Entity } from './request.ts';
|
|
2
|
+
/** What a caller is given in order to call a component: what a map states of it. */
|
|
3
|
+
export interface Contract {
|
|
4
|
+
/** the version of the component this describes */
|
|
5
|
+
version?: string;
|
|
6
|
+
entity?: Entity;
|
|
7
|
+
operations?: Record<string, Operation>;
|
|
8
|
+
events?: Record<string, Event>;
|
|
9
|
+
}
|
|
10
|
+
export interface Operation extends Definition {
|
|
11
|
+
bindings?: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface Event {
|
|
14
|
+
binding: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* What a caller is given of a component, of what its normalised manifest holds.
|
|
18
|
+
*
|
|
19
|
+
* What a component states about serving a call rather than about making one is its own: an
|
|
20
|
+
* operation's concurrency, the bridge that runs it and what it forwards to, and the entity's
|
|
21
|
+
* storage, its blank and its migrations. An event's `path` is a path in the process that
|
|
22
|
+
* normalised the manifest, and names nothing in any other.
|
|
23
|
+
*/
|
|
24
|
+
export declare function component(manifest: Contract): Contract;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a caller is given of a component, of what its normalised manifest holds.
|
|
3
|
+
*
|
|
4
|
+
* What a component states about serving a call rather than about making one is its own: an
|
|
5
|
+
* operation's concurrency, the bridge that runs it and what it forwards to, and the entity's
|
|
6
|
+
* storage, its blank and its migrations. An event's `path` is a path in the process that
|
|
7
|
+
* normalised the manifest, and names nothing in any other.
|
|
8
|
+
*/
|
|
9
|
+
export function component(manifest) {
|
|
10
|
+
const contract = { version: manifest.version };
|
|
11
|
+
if (manifest.entity !== undefined)
|
|
12
|
+
contract.entity = {
|
|
13
|
+
properties: manifest.entity.properties,
|
|
14
|
+
required: manifest.entity.required
|
|
15
|
+
};
|
|
16
|
+
if (manifest.operations !== undefined) {
|
|
17
|
+
contract.operations = {};
|
|
18
|
+
for (const [endpoint, definition] of Object.entries(manifest.operations))
|
|
19
|
+
contract.operations[endpoint] = operation(definition);
|
|
20
|
+
}
|
|
21
|
+
if (manifest.events !== undefined) {
|
|
22
|
+
contract.events = {};
|
|
23
|
+
for (const [event, definition] of Object.entries(manifest.events))
|
|
24
|
+
contract.events[event] = { binding: definition.binding };
|
|
25
|
+
}
|
|
26
|
+
return contract;
|
|
27
|
+
}
|
|
28
|
+
function operation(definition) {
|
|
29
|
+
const operation = {};
|
|
30
|
+
for (const key of KEYS)
|
|
31
|
+
if (definition[key] !== undefined)
|
|
32
|
+
operation[key] = definition[key];
|
|
33
|
+
return operation;
|
|
34
|
+
}
|
|
35
|
+
/** What a call to an operation is addressed by, carries, answers and refuses with. */
|
|
36
|
+
const KEYS = [
|
|
37
|
+
'type',
|
|
38
|
+
'scope',
|
|
39
|
+
'query',
|
|
40
|
+
'once',
|
|
41
|
+
'stateful',
|
|
42
|
+
'bindings',
|
|
43
|
+
'description',
|
|
44
|
+
'input',
|
|
45
|
+
'output',
|
|
46
|
+
'errors'
|
|
47
|
+
];
|
|
48
|
+
//# sourceMappingURL=component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../source/contract/component.ts"],"names":[],"mappings":"AAmBA;;;;;;;GAOG;AACH,MAAM,UAAU,SAAS,CAAC,QAAkB;IAC1C,MAAM,QAAQ,GAAa,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAA;IAExD,IAAI,QAAQ,CAAC,MAAM,KAAK,SAAS;QAC/B,QAAQ,CAAC,MAAM,GAAG;YAChB,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU;YACtC,QAAQ,EAAE,QA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,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/contract/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -34,6 +34,8 @@ export declare const codes: {
|
|
|
34
34
|
Misuse: number;
|
|
35
35
|
/** a run command pauses what nothing takes again: `pause` with no `resume` */
|
|
36
36
|
Irresumable: number;
|
|
37
|
+
/** a call to a component nothing this process was given states */
|
|
38
|
+
Unstated: number;
|
|
37
39
|
};
|
|
38
40
|
export declare class Exception {
|
|
39
41
|
readonly code: number;
|
|
@@ -91,6 +93,7 @@ export declare const DisposedException: Derived;
|
|
|
91
93
|
export declare const SafetyException: Derived;
|
|
92
94
|
export declare const MisuseException: Derived;
|
|
93
95
|
export declare const IrresumableException: Derived;
|
|
96
|
+
export declare const UnstatedException: Derived;
|
|
94
97
|
export declare const names: Record<string, string>;
|
|
95
98
|
/**
|
|
96
99
|
* Takes `unknown` because a caller has caught something rather than been handed an `Exception`.
|
package/transpiled/exceptions.js
CHANGED
|
@@ -33,7 +33,9 @@ export const codes = {
|
|
|
33
33
|
/** a component asked for something its manifest does not declare */
|
|
34
34
|
Misuse: 600,
|
|
35
35
|
/** a run command pauses what nothing takes again: `pause` with no `resume` */
|
|
36
|
-
Irresumable: 601
|
|
36
|
+
Irresumable: 601,
|
|
37
|
+
/** a call to a component nothing this process was given states */
|
|
38
|
+
Unstated: 602
|
|
37
39
|
};
|
|
38
40
|
export class Exception {
|
|
39
41
|
code;
|
|
@@ -131,6 +133,7 @@ export const DisposedException = derive('Disposed');
|
|
|
131
133
|
export const SafetyException = derive('Safety');
|
|
132
134
|
export const MisuseException = derive('Misuse');
|
|
133
135
|
export const IrresumableException = derive('Irresumable');
|
|
136
|
+
export const UnstatedException = derive('Unstated');
|
|
134
137
|
export const names = swap(codes);
|
|
135
138
|
// #endregion
|
|
136
139
|
/**
|
|
@@ -183,7 +186,9 @@ const OUTCOME = {
|
|
|
183
186
|
// what a component did not declare, it does not declare on the next attempt either
|
|
184
187
|
Misuse: 'permanent',
|
|
185
188
|
// the component is refused at start, so nothing reaches it to be attempted twice
|
|
186
|
-
Irresumable: 'permanent'
|
|
189
|
+
Irresumable: 'permanent',
|
|
190
|
+
// a remote is built once and held, so what this process was not given, it is not given later
|
|
191
|
+
Unstated: 'permanent'
|
|
187
192
|
};
|
|
188
193
|
const PERMANENT = new Set(Object.entries(OUTCOME)
|
|
189
194
|
.filter(([, outcome]) => outcome === 'permanent')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exceptions.js","sourceRoot":"","sources":["../source/exceptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAGtC,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,MAAM,EAAE,CAAC;IAET,QAAQ,EAAE,GAAG;IACb,aAAa,EAAE,GAAG;IAClB,eAAe,EAAE,GAAG;IACpB,eAAe,EAAE,GAAG;IACpB,gBAAgB,EAAE,GAAG;IACrB,cAAc,EAAE,GAAG;IACnB,WAAW,EAAE,GAAG;IAChB,WAAW,EAAE,GAAG;IAEhB,KAAK,EAAE,GAAG;IACV,aAAa,EAAE,GAAG;IAClB,iBAAiB,EAAE,GAAG;IACtB,gBAAgB,EAAE,GAAG;IACrB,mBAAmB,EAAE,GAAG;IACxB,SAAS,EAAE,GAAG;IACd,8DAA8D;IAC9D,aAAa,EAAE,GAAG;IAElB,aAAa,EAAE,GAAG;IAClB,YAAY,EAAE,GAAG;IACjB,QAAQ,EAAE,GAAG;IACb,oDAAoD;IACpD,SAAS,EAAE,GAAG;IACd,mEAAmE;IACnE,SAAS,EAAE,GAAG;IACd,qFA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WAAW;CACtB,CAAA;AAED,MAAM,SAAS,GAAG,IAAI,GAAG,CACvB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;KACpB,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,KAAK,WAAW,CAAC;KAChD,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,IAA0B,CAAC,CAAC,CACtD,CAAA;AAED;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,SAAkB;IAC1C,MAAM,IAAI,GAAI,SAAmC,EAAE,IAAI,CAAA;IAEvD,OAAO,IAAI,KAAK,SAAS,IAAI,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;AAClD,CAAC"}
|
package/transpiled/index.d.ts
CHANGED
|
@@ -5,13 +5,11 @@ export { Component } from './component.ts';
|
|
|
5
5
|
export { Composition } from './composition.ts';
|
|
6
6
|
export { Connector } from './connector.ts';
|
|
7
7
|
export { Context } from './context.ts';
|
|
8
|
-
export { Discovery } from './discovery.ts';
|
|
9
8
|
export { Encoded } from './encoded.ts';
|
|
10
9
|
export { Effect } from './effect.ts';
|
|
11
10
|
export { Emission } from './emission.ts';
|
|
12
11
|
export { Event } from './event.ts';
|
|
13
12
|
export { Gate } from './gate.ts';
|
|
14
|
-
export { Exposition } from './exposition.ts';
|
|
15
13
|
export { Locator } from './locator.ts';
|
|
16
14
|
export { Observation } from './observation.ts';
|
|
17
15
|
export { Outbox } from './outbox.ts';
|
|
@@ -39,4 +37,5 @@ export type { Explicable } from './remote.ts';
|
|
|
39
37
|
export type { Scoped, Store } from './operation.ts';
|
|
40
38
|
export type { Source as ReflectionSource } from './reflection.ts';
|
|
41
39
|
export type { Explanation } from './contract/request.ts';
|
|
40
|
+
export type { Contract } from './contract/component.ts';
|
|
42
41
|
export type { JSONSchema } from './contract/schemas.ts';
|
package/transpiled/index.js
CHANGED
|
@@ -5,13 +5,11 @@ export { Component } from './component.js';
|
|
|
5
5
|
export { Composition } from './composition.js';
|
|
6
6
|
export { Connector } from './connector.js';
|
|
7
7
|
export { Context } from './context.js';
|
|
8
|
-
export { Discovery } from './discovery.js';
|
|
9
8
|
export { Encoded } from './encoded.js';
|
|
10
9
|
export { Effect } from './effect.js';
|
|
11
10
|
export { Emission } from './emission.js';
|
|
12
11
|
export { Event } from './event.js';
|
|
13
12
|
export { Gate } from './gate.js';
|
|
14
|
-
export { Exposition } from './exposition.js';
|
|
15
13
|
export { Locator } from './locator.js';
|
|
16
14
|
export { Observation } from './observation.js';
|
|
17
15
|
export { Outbox } from './outbox.js';
|
package/transpiled/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAA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OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAA"}
|
|
@@ -2,6 +2,7 @@ import type { Connector } from '../connector.ts';
|
|
|
2
2
|
import type { Gate } from '../gate.ts';
|
|
3
3
|
import type { Locator } from '../locator.ts';
|
|
4
4
|
import type { Component } from '../component.ts';
|
|
5
|
+
import type { Contract } from '../contract/component.ts';
|
|
5
6
|
import type { Remote } from '../remote.ts';
|
|
6
7
|
import type { Receiver } from './receiver.ts';
|
|
7
8
|
import type { Context } from '../context.ts';
|
|
@@ -17,10 +18,10 @@ import type { Destination } from './outbox.ts';
|
|
|
17
18
|
export interface Host {
|
|
18
19
|
/** a component of the context, by locator */
|
|
19
20
|
/**
|
|
20
|
-
* @param
|
|
21
|
-
* process's map
|
|
21
|
+
* @param contract what the component provides, where the caller has it; absent, what the
|
|
22
|
+
* process's map states.
|
|
22
23
|
*/
|
|
23
|
-
remote(locator: Locator, source?: Source,
|
|
24
|
+
remote(locator: Locator, source?: Source, contract?: Contract): Promise<Remote>;
|
|
24
25
|
/** a channel of the messaging binding */
|
|
25
26
|
broadcast<L extends string = string>(channel: string, group?: string): Promise<Broadcast<L>>;
|
|
26
27
|
/** components to run inside the extension's own process */
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Connector } from './connector.ts';
|
|
2
|
-
import type { Locator } from './locator.ts';
|
|
3
|
-
interface Lookup extends Connector {
|
|
4
|
-
invoke: () => Promise<any>;
|
|
5
|
-
}
|
|
6
|
-
export declare class Discovery extends Connector {
|
|
7
|
-
#private;
|
|
8
|
-
constructor(lookup: (locator: Locator, version?: string) => Promise<Lookup>);
|
|
9
|
-
protected open(): Promise<void>;
|
|
10
|
-
/**
|
|
11
|
-
* A lookup is unbounded, so one in flight when this goes away never settles and would go on
|
|
12
|
-
* saying it is waiting for the life of the process. Which nothing noticed while a
|
|
13
|
-
* disconnected discovery meant a process on its way out — a halt takes one down and builds
|
|
14
|
-
* another, and every cycle would leave a voice behind.
|
|
15
|
-
*/
|
|
16
|
-
protected close(): Promise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* @param locator the component asked
|
|
19
|
-
* @param version which of its versions answers; absent, whichever of them takes the message
|
|
20
|
-
*/
|
|
21
|
-
lookup(locator: Locator, version?: string): Promise<any>;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
package/transpiled/discovery.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { console } from 'openspan';
|
|
2
|
-
import { Connector } from './connector.js';
|
|
3
|
-
export class Discovery extends Connector {
|
|
4
|
-
#lookup;
|
|
5
|
-
#lookups = {};
|
|
6
|
-
/** What is still saying it is waiting, so that a discovery going away can stop it. */
|
|
7
|
-
#waiting = new Set();
|
|
8
|
-
constructor(lookup) {
|
|
9
|
-
super();
|
|
10
|
-
this.#lookup = lookup;
|
|
11
|
-
}
|
|
12
|
-
async open() {
|
|
13
|
-
this.#lookups = {};
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A lookup is unbounded, so one in flight when this goes away never settles and would go on
|
|
17
|
-
* saying it is waiting for the life of the process. Which nothing noticed while a
|
|
18
|
-
* disconnected discovery meant a process on its way out — a halt takes one down and builds
|
|
19
|
-
* another, and every cycle would leave a voice behind.
|
|
20
|
-
*/
|
|
21
|
-
async close() {
|
|
22
|
-
for (const warning of this.#waiting)
|
|
23
|
-
clearInterval(warning);
|
|
24
|
-
this.#waiting.clear();
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @param locator the component asked
|
|
28
|
-
* @param version which of its versions answers; absent, whichever of them takes the message
|
|
29
|
-
*/
|
|
30
|
-
async lookup(locator, version) {
|
|
31
|
-
const id = locator.id;
|
|
32
|
-
// one per version: two of them answer under names of their own, and a process that has
|
|
33
|
-
// asked one may go on to ask the other
|
|
34
|
-
const key = version === undefined ? id : id + ':' + version;
|
|
35
|
-
if (this.#lookups[key] === undefined) {
|
|
36
|
-
const lookup = await this.#lookup(locator, version);
|
|
37
|
-
this.#lookups[key] = Promise.resolve(lookup);
|
|
38
|
-
this.depends(lookup);
|
|
39
|
-
}
|
|
40
|
-
const since = Date.now();
|
|
41
|
-
// a lookup with no version is one made outside a deployment, and saying so every five
|
|
42
|
-
// seconds would say nothing
|
|
43
|
-
const asked = version === undefined ? { component: id } : { component: id, version };
|
|
44
|
-
// the wait is unbounded by design, as a dependency may still be starting,
|
|
45
|
-
// so repeating is the only way a component stuck on one stays visible
|
|
46
|
-
const warning = setInterval(() => {
|
|
47
|
-
const waiting = Math.round((Date.now() - since) / 1000);
|
|
48
|
-
console.warn('Waiting for lookup response', { ...asked, waiting });
|
|
49
|
-
}, INTERVAL);
|
|
50
|
-
warning.unref();
|
|
51
|
-
this.#waiting.add(warning);
|
|
52
|
-
try {
|
|
53
|
-
return await (await this.#lookups[key]).invoke();
|
|
54
|
-
}
|
|
55
|
-
finally {
|
|
56
|
-
clearInterval(warning);
|
|
57
|
-
this.#waiting.delete(warning);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
const INTERVAL = 5000;
|
|
62
|
-
//# sourceMappingURL=discovery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.js","sourceRoot":"","sources":["../source/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAO1C,MAAM,OAAO,SAAU,SAAQ,SAAS;IAC7B,OAAO,CAAyD;IACzE,QAAQ,GAAoC,EAAE,CAAA;IAE9C,sFAAsF;IAC7E,QAAQ,GAAG,IAAI,GAAG,EAAkB,CAAA;IAE7C,YAAmB,MAA+D;QAChF,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;IACvB,CAAC;IAEkB,KAAK,CAAC,IAAI;QAC3B,IAAI,CAAC,QAAQ,GAAG,EA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O,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,CAAC,CAAA;QACpE,CAAC,EAAE,QAAQ,CAAC,CAAA;QAEZ,OAAO,CAAC,KAAK,EAAE,CAAA;QACf,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;QAE1B,IAAI,CAAC;YACH,OAAO,MAAM,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,CAAA;QAClD,CAAC;gBAAS,CAAC;YACT,aAAa,CAAC,OAAO,CAAC,CAAA;YACtB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QAC/B,CAAC;IACH,CAAC;CACF;AAED,MAAM,QAAQ,GAAG,IAAI,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Connector } from './connector.ts';
|
|
2
|
-
import type { Locator } from './locator.ts';
|
|
3
|
-
interface Manifest {
|
|
4
|
-
namespace: string;
|
|
5
|
-
name: string;
|
|
6
|
-
entity?: object;
|
|
7
|
-
operations?: object;
|
|
8
|
-
events?: object;
|
|
9
|
-
}
|
|
10
|
-
export declare class Exposition extends Connector {
|
|
11
|
-
#private;
|
|
12
|
-
readonly locator: Locator;
|
|
13
|
-
constructor(locator: Locator, manifest: Manifest);
|
|
14
|
-
invoke(): Promise<{
|
|
15
|
-
output: Partial<Manifest>;
|
|
16
|
-
}>;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
package/transpiled/exposition.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Connector } from './connector.js';
|
|
2
|
-
export class Exposition extends Connector {
|
|
3
|
-
locator;
|
|
4
|
-
#exposition;
|
|
5
|
-
constructor(locator, manifest) {
|
|
6
|
-
super();
|
|
7
|
-
this.locator = locator;
|
|
8
|
-
this.#exposition = expose(manifest);
|
|
9
|
-
}
|
|
10
|
-
async invoke() {
|
|
11
|
-
return { output: this.#exposition };
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
function expose(manifest) {
|
|
15
|
-
const { namespace, name, entity, operations, events } = manifest;
|
|
16
|
-
return { namespace, name, entity, operations, events };
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=exposition.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exposition.js","sourceRoot":"","sources":["../source/exposition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAW1C,MAAM,OAAO,UAAW,SAAQ,SAAS;IACvB,OAAO,CAAS;IAEvB,WAAW,CAAmB;IAEvC,YAAmB,OAAgB,EAAE,QAAkB;QACrD,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IACrC,CAAC;IAEM,KAAK,CAAC,MAAM;QACjB,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,CAAA;IACrC,CAAC;CACF;AAED,SAAS,MAAM,CAAC,QAAkB;IAChC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAA;IAEhE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;AACxD,CAAC"}
|