@xyo-network/os-runtime 5.0.12 → 5.0.13
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/dist/neutral/index.mjs +8 -8
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/node/index.mjs +8 -8
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/scripts/xyos/index.mjs +8 -8
- package/dist/node/scripts/xyos/index.mjs.map +1 -1
- package/dist/types/XyOsBase.d.ts +2 -2
- package/dist/types/XyOsBase.d.ts.map +1 -1
- package/dist/types/adapter/Base.d.ts +2 -2
- package/dist/types/adapter/Base.d.ts.map +1 -1
- package/dist/types/event/bus/Connection.d.ts +2 -2
- package/dist/types/event/bus/Connection.d.ts.map +1 -1
- package/dist/types/stack/Base.d.ts +2 -2
- package/dist/types/stack/Base.d.ts.map +1 -1
- package/package.json +50 -52
- package/src/XyOsBase.ts +2 -2
- package/src/adapter/Base.ts +2 -2
- package/src/event/bus/Connection.ts +2 -2
- package/src/stack/Base.ts +2 -2
package/dist/types/XyOsBase.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { BaseParams } from '@xylabs/base';
|
|
2
|
+
import { BaseEmitter } from '@xylabs/events';
|
|
2
3
|
import type { JsonObject } from '@xylabs/object';
|
|
3
4
|
import type { Promisable } from '@xylabs/promise';
|
|
4
5
|
import type { KernelExternal } from '@xyo-network/kernel-model';
|
|
5
6
|
import type { PackageManifest } from '@xyo-network/manifest';
|
|
6
|
-
import { ModuleBaseEmitter } from '@xyo-network/module-event-emitter';
|
|
7
7
|
import { ModuleFactoryLocator } from '@xyo-network/module-factory-locator';
|
|
8
8
|
import type { NodeInstance } from '@xyo-network/node-model';
|
|
9
9
|
import type { DappId, DappPackageManifestPayload, DappParams, EventBusInterface, OsUser, StackInitializer, WalletKindSignerPaths, XyOsContext, XyOsDappContext } from '@xyo-network/os-model';
|
|
@@ -16,7 +16,7 @@ export interface XyOsContextParams<TManifest extends PackageManifest = PackageMa
|
|
|
16
16
|
platformLocator?: ModuleFactoryLocator;
|
|
17
17
|
signerPaths?: WalletKindSignerPaths;
|
|
18
18
|
}
|
|
19
|
-
export declare class XyOsContextBase<TParams extends XyOsContextParams | void = void> extends
|
|
19
|
+
export declare class XyOsContextBase<TParams extends XyOsContextParams | void = void> extends BaseEmitter<TParams extends XyOsContextParams ? TParams : XyOsContextParams> {
|
|
20
20
|
protected _bootMutex: Mutex;
|
|
21
21
|
protected _platformLocator: ModuleFactoryLocator | undefined;
|
|
22
22
|
protected _root: NodeInstance | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyOsBase.d.ts","sourceRoot":"","sources":["../../src/XyOsBase.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"XyOsBase.d.ts","sourceRoot":"","sources":["../../src/XyOsBase.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BaseParams } from '@xylabs/base';
|
|
2
|
+
import { BaseEmitter } from '@xylabs/events';
|
|
2
3
|
import type { KernelExternal } from '@xyo-network/kernel-model';
|
|
3
|
-
import { ModuleBaseEmitter } from '@xyo-network/module-event-emitter';
|
|
4
4
|
import type { NodeAdapter, NodeAdapterBaseEvents } from '@xyo-network/os-model';
|
|
5
|
-
export declare class NodeAdapterBase extends
|
|
5
|
+
export declare class NodeAdapterBase extends BaseEmitter<BaseParams, NodeAdapterBaseEvents> implements NodeAdapter {
|
|
6
6
|
private kernel;
|
|
7
7
|
private driverName;
|
|
8
8
|
initialized: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../src/adapter/Base.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../src/adapter/Base.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAI5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAU/E,qBAAa,eAAgB,SAAQ,WAAW,CAAC,UAAU,EAAE,qBAAqB,CAAE,YAAW,WAAW;IAMtG,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,UAAU;IANpB,WAAW,UAAQ;IAEnB,OAAO,CAAC,GAAG,CAAa;gBAGd,MAAM,EAAE,cAAc,EACtB,UAAU,EAAE,MAAM;IAM5B,IAAI,EAAE,WAEL;IAEK,KAAK;;;;;;;;;IAoCX,OAAO,CAAC,uBAAuB;YAOjB,kBAAkB;IAKhC,OAAO,CAAC,uBAAuB;CAgBhC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { BaseParams } from '@xylabs/base';
|
|
2
2
|
import type { EventData } from '@xylabs/events';
|
|
3
|
-
import {
|
|
3
|
+
import { BaseEmitter } from '@xylabs/events';
|
|
4
4
|
import type { EventBusConnectionInterface, EventBusConnectionRequest, EventBusConnectionType } from '@xyo-network/os-model';
|
|
5
5
|
/**
|
|
6
6
|
* A Generic Connection to add to an EventBus
|
|
7
7
|
* @param {EventBusConnectionRequest} request
|
|
8
8
|
*/
|
|
9
|
-
export declare class EventBusConnection<TEventData extends EventData = EventData> extends
|
|
9
|
+
export declare class EventBusConnection<TEventData extends EventData = EventData> extends BaseEmitter<BaseParams, TEventData> implements EventBusConnectionInterface<TEventData> {
|
|
10
10
|
_id?: string;
|
|
11
11
|
description?: string;
|
|
12
12
|
type: EventBusConnectionType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Connection.d.ts","sourceRoot":"","sources":["../../../../src/event/bus/Connection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Connection.d.ts","sourceRoot":"","sources":["../../../../src/event/bus/Connection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,KAAK,EACV,2BAA2B,EAAE,yBAAyB,EAAE,sBAAsB,EAC/E,MAAM,uBAAuB,CAAA;AAE9B;;;GAGG;AACH,qBAAa,kBAAkB,CAAC,UAAU,SAAS,SAAS,GAAG,SAAS,CACtE,SAAQ,WAAW,CAAC,UAAU,EAAE,UAAU,CAC1C,YAAW,2BAA2B,CAAC,UAAU,CAAC;IAClD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,sBAAsB,CAAA;gBAEhB,OAAO,EAAE,yBAAyB;IAM9C,IAAI,EAAE,WAEL;IAED,eAAe,CAAC,EAAE,EAAE,MAAM;CAG3B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseParams } from '@xylabs/base';
|
|
2
|
-
import {
|
|
2
|
+
import { BaseEmitter } from '@xylabs/events';
|
|
3
3
|
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
4
4
|
import type { AttachableNodeInstance } from '@xyo-network/node-model';
|
|
5
5
|
import type { AdapterSetCreator, NodeAdapter, StackBaseEvents, StackInitializer, XyOsContext } from '@xyo-network/os-model';
|
|
@@ -8,7 +8,7 @@ import type { AdapterSetCreator, NodeAdapter, StackBaseEvents, StackInitializer,
|
|
|
8
8
|
*
|
|
9
9
|
* Listens for changes in adapter connections, update the stack node, and emits events when the stack is ready
|
|
10
10
|
*/
|
|
11
|
-
export declare class StackBase extends
|
|
11
|
+
export declare class StackBase extends BaseEmitter<BaseParams, StackBaseEvents> implements StackInitializer {
|
|
12
12
|
initialized: boolean;
|
|
13
13
|
private _adapterSet;
|
|
14
14
|
private _context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../src/stack/Base.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../src/stack/Base.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAG5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAEjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAErE,OAAO,KAAK,EACV,iBAAiB,EAAE,WAAW,EAAyB,eAAe,EAAE,gBAAgB,EAAE,WAAW,EACtG,MAAM,uBAAuB,CAAA;AAE9B;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,WAAW,CAAC,UAAU,EAAE,eAAe,CAAE,YAAW,gBAAgB;IAEjG,WAAW,UAAQ;IAGnB,OAAO,CAAC,WAAW,CAAe;IAElC,OAAO,CAAC,QAAQ,CAAa;IAG7B,OAAO,CAAC,MAAM,CAAoC;IAGlD,OAAO,CAAC,kBAAkB,CAAkB;IAG5C,OAAO,CAAC,gBAAgB,CAA+B;IAIvD,OAAO,CAAC,SAAS,CAKT;gBAEI,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,gBAAgB;IAOpG,IAAI,UAAU,IAAI,WAAW,EAAE,CAE9B;IAED,IAAI,OAAO,IAAI,WAAW,CAEzB;IAED,IAAI,KAAK,IAAI,sBAAsB,CAElC;IAED,IAAI,iBAAiB,IAAI,gBAAgB,CAExC;IAED,UAAU;IA2BV;;OAEG;IACH,IAAI;IASJ;;;;;OAKG;YACW,kBAAkB;IAahC,OAAO,CAAC,WAAW;YAQL,YAAY;YAKZ,iBAAiB;YAcjB,yBAAyB;CAYxC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/os-runtime",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.13",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -35,66 +35,64 @@
|
|
|
35
35
|
"xyos": "./scripts/xyos.mjs"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@xylabs/array": "^4.
|
|
39
|
-
"@xylabs/assert": "^4.
|
|
40
|
-
"@xylabs/base": "^4.
|
|
41
|
-
"@xylabs/events": "^4.
|
|
42
|
-
"@xylabs/forget": "^4.
|
|
43
|
-
"@xylabs/hex": "^4.
|
|
44
|
-
"@xylabs/object": "^4.
|
|
45
|
-
"@xylabs/promise": "^4.
|
|
46
|
-
"@xyo-network/account-model": "^3.
|
|
47
|
-
"@xyo-network/archivist": "^3.
|
|
48
|
-
"@xyo-network/archivist-indexeddb": "^3.
|
|
49
|
-
"@xyo-network/archivist-memory": "^3.
|
|
50
|
-
"@xyo-network/archivist-model": "^3.
|
|
51
|
-
"@xyo-network/bios": "^5.0.
|
|
52
|
-
"@xyo-network/bridge-model": "^3.
|
|
53
|
-
"@xyo-network/diviner-abstract": "^3.
|
|
54
|
-
"@xyo-network/diviner-model": "^3.
|
|
55
|
-
"@xyo-network/diviner-payload-generic": "^3.
|
|
56
|
-
"@xyo-network/diviner-payload-indexeddb": "^3.
|
|
57
|
-
"@xyo-network/diviner-payload-model": "^3.
|
|
58
|
-
"@xyo-network/diviner-temporal-indexing-model": "^3.
|
|
59
|
-
"@xyo-network/kernel": "^5.0.
|
|
60
|
-
"@xyo-network/kernel-model": "^5.0.
|
|
61
|
-
"@xyo-network/manifest": "^3.
|
|
62
|
-
"@xyo-network/manifest-wrapper": "^3.
|
|
63
|
-
"@xyo-network/module-
|
|
64
|
-
"@xyo-network/module-
|
|
65
|
-
"@xyo-network/module-
|
|
66
|
-
"@xyo-network/
|
|
67
|
-
"@xyo-network/
|
|
68
|
-
"@xyo-network/
|
|
69
|
-
"@xyo-network/
|
|
70
|
-
"@xyo-network/
|
|
71
|
-
"@xyo-network/
|
|
72
|
-
"@xyo-network/
|
|
73
|
-
"@xyo-network/wallet": "^3.15.10",
|
|
74
|
-
"@xyo-network/wallet-model": "^3.15.10",
|
|
38
|
+
"@xylabs/array": "^4.11.10",
|
|
39
|
+
"@xylabs/assert": "^4.11.10",
|
|
40
|
+
"@xylabs/base": "^4.11.10",
|
|
41
|
+
"@xylabs/events": "^4.11.10",
|
|
42
|
+
"@xylabs/forget": "^4.11.10",
|
|
43
|
+
"@xylabs/hex": "^4.11.10",
|
|
44
|
+
"@xylabs/object": "^4.11.10",
|
|
45
|
+
"@xylabs/promise": "^4.11.10",
|
|
46
|
+
"@xyo-network/account-model": "^3.18.2",
|
|
47
|
+
"@xyo-network/archivist": "^3.18.2",
|
|
48
|
+
"@xyo-network/archivist-indexeddb": "^3.18.2",
|
|
49
|
+
"@xyo-network/archivist-memory": "^3.18.2",
|
|
50
|
+
"@xyo-network/archivist-model": "^3.18.2",
|
|
51
|
+
"@xyo-network/bios": "^5.0.13",
|
|
52
|
+
"@xyo-network/bridge-model": "^3.18.2",
|
|
53
|
+
"@xyo-network/diviner-abstract": "^3.18.2",
|
|
54
|
+
"@xyo-network/diviner-model": "^3.18.2",
|
|
55
|
+
"@xyo-network/diviner-payload-generic": "^3.18.2",
|
|
56
|
+
"@xyo-network/diviner-payload-indexeddb": "^3.18.2",
|
|
57
|
+
"@xyo-network/diviner-payload-model": "^3.18.2",
|
|
58
|
+
"@xyo-network/diviner-temporal-indexing-model": "^3.18.2",
|
|
59
|
+
"@xyo-network/kernel": "^5.0.13",
|
|
60
|
+
"@xyo-network/kernel-model": "^5.0.13",
|
|
61
|
+
"@xyo-network/manifest": "^3.18.2",
|
|
62
|
+
"@xyo-network/manifest-wrapper": "^3.18.2",
|
|
63
|
+
"@xyo-network/module-factory-locator": "^3.18.2",
|
|
64
|
+
"@xyo-network/module-model": "^3.18.2",
|
|
65
|
+
"@xyo-network/module-resolver": "^3.18.2",
|
|
66
|
+
"@xyo-network/node-model": "^3.18.2",
|
|
67
|
+
"@xyo-network/os-model": "^5.0.13",
|
|
68
|
+
"@xyo-network/payload-builder": "^3.18.2",
|
|
69
|
+
"@xyo-network/payload-model": "^3.18.2",
|
|
70
|
+
"@xyo-network/storage-model": "^5.0.13",
|
|
71
|
+
"@xyo-network/wallet": "^3.18.2",
|
|
72
|
+
"@xyo-network/wallet-model": "^3.18.2",
|
|
75
73
|
"async-mutex": "^0.5.0",
|
|
76
|
-
"
|
|
74
|
+
"chalk": "^5.4.1",
|
|
75
|
+
"cosmiconfig": "^9.0.0",
|
|
76
|
+
"cosmiconfig-typescript-loader": "^6.1.0",
|
|
77
|
+
"ethers": "^6.14.3",
|
|
77
78
|
"semver": "^7.7.2",
|
|
78
|
-
"
|
|
79
|
+
"terminal-kit": "^3.1.2",
|
|
80
|
+
"uuid": "^11.1.0",
|
|
81
|
+
"yargs": "^18.0.0"
|
|
79
82
|
},
|
|
80
83
|
"devDependencies": {
|
|
81
|
-
"@types/node": "^22.15.
|
|
84
|
+
"@types/node": "^22.15.29",
|
|
82
85
|
"@types/semver": "^7.7.0",
|
|
83
86
|
"@types/terminal-kit": "^2.5.7",
|
|
84
87
|
"@types/uuid": "^10.0.0",
|
|
85
88
|
"@types/yargs": "^17.0.33",
|
|
86
|
-
"@xylabs/ts-scripts-yarn3": "^6.5.
|
|
87
|
-
"@xylabs/tsconfig": "^6.5.
|
|
88
|
-
"@xyo-network/archivist-memory": "^3.
|
|
89
|
-
"@xyo-network/bios-model": "^5.0.
|
|
90
|
-
"@xyo-network/bios-nodejs": "^5.0.
|
|
91
|
-
"chalk": "^5.4.1",
|
|
92
|
-
"cosmiconfig": "^9.0.0",
|
|
93
|
-
"cosmiconfig-typescript-loader": "^6.1.0",
|
|
94
|
-
"terminal-kit": "^3.1.2",
|
|
89
|
+
"@xylabs/ts-scripts-yarn3": "^6.5.7",
|
|
90
|
+
"@xylabs/tsconfig": "^6.5.7",
|
|
91
|
+
"@xyo-network/archivist-memory": "^3.18.2",
|
|
92
|
+
"@xyo-network/bios-model": "^5.0.13",
|
|
93
|
+
"@xyo-network/bios-nodejs": "^5.0.13",
|
|
95
94
|
"typescript": "^5.8.3",
|
|
96
|
-
"vitest": "^3.1
|
|
97
|
-
"yargs": "^17.7.2"
|
|
95
|
+
"vitest": "^3.2.1"
|
|
98
96
|
},
|
|
99
97
|
"publishConfig": {
|
|
100
98
|
"access": "public"
|
package/src/XyOsBase.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
2
|
import type { BaseParams } from '@xylabs/base'
|
|
3
|
+
import { BaseEmitter } from '@xylabs/events'
|
|
3
4
|
import type { JsonObject } from '@xylabs/object'
|
|
4
5
|
import type { Promisable } from '@xylabs/promise'
|
|
5
6
|
import type { KernelExternal } from '@xyo-network/kernel-model'
|
|
6
7
|
import type { PackageManifest } from '@xyo-network/manifest'
|
|
7
|
-
import { ModuleBaseEmitter } from '@xyo-network/module-event-emitter'
|
|
8
8
|
import { ModuleFactoryLocator } from '@xyo-network/module-factory-locator'
|
|
9
9
|
import type { NodeInstance } from '@xyo-network/node-model'
|
|
10
10
|
import type {
|
|
@@ -22,7 +22,7 @@ export interface XyOsContextParams<TManifest extends PackageManifest = PackageMa
|
|
|
22
22
|
signerPaths?: WalletKindSignerPaths
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export class XyOsContextBase<TParams extends XyOsContextParams | void = void> extends
|
|
25
|
+
export class XyOsContextBase<TParams extends XyOsContextParams | void = void> extends BaseEmitter<
|
|
26
26
|
TParams extends XyOsContextParams ? TParams : XyOsContextParams
|
|
27
27
|
> {
|
|
28
28
|
protected _bootMutex = new Mutex()
|
package/src/adapter/Base.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
2
|
import type { BaseParams } from '@xylabs/base'
|
|
3
|
+
import { BaseEmitter } from '@xylabs/events'
|
|
3
4
|
import { forget } from '@xylabs/forget'
|
|
4
5
|
import type { ArchivistModuleEventData } from '@xyo-network/archivist'
|
|
5
6
|
import { asArchivistInstance } from '@xyo-network/archivist'
|
|
6
7
|
import type { KernelExternal } from '@xyo-network/kernel-model'
|
|
7
|
-
import { ModuleBaseEmitter } from '@xyo-network/module-event-emitter'
|
|
8
8
|
import { asAttachableNodeInstance } from '@xyo-network/node-model'
|
|
9
9
|
import type { NodeAdapter, NodeAdapterBaseEvents } from '@xyo-network/os-model'
|
|
10
10
|
import type { Payload } from '@xyo-network/payload-model'
|
|
@@ -16,7 +16,7 @@ type ModuleEventPayload = {
|
|
|
16
16
|
schema: 'network.xyo.kernel.module.event'
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export class NodeAdapterBase extends
|
|
19
|
+
export class NodeAdapterBase extends BaseEmitter<BaseParams, NodeAdapterBaseEvents> implements NodeAdapter {
|
|
20
20
|
initialized = false
|
|
21
21
|
|
|
22
22
|
private _id: string = ''
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
2
|
import type { BaseParams } from '@xylabs/base'
|
|
3
3
|
import type { EventData } from '@xylabs/events'
|
|
4
|
-
import {
|
|
4
|
+
import { BaseEmitter } from '@xylabs/events'
|
|
5
5
|
import type {
|
|
6
6
|
EventBusConnectionInterface, EventBusConnectionRequest, EventBusConnectionType,
|
|
7
7
|
} from '@xyo-network/os-model'
|
|
@@ -11,7 +11,7 @@ import type {
|
|
|
11
11
|
* @param {EventBusConnectionRequest} request
|
|
12
12
|
*/
|
|
13
13
|
export class EventBusConnection<TEventData extends EventData = EventData>
|
|
14
|
-
extends
|
|
14
|
+
extends BaseEmitter<BaseParams, TEventData>
|
|
15
15
|
implements EventBusConnectionInterface<TEventData> {
|
|
16
16
|
_id?: string
|
|
17
17
|
description?: string
|
package/src/stack/Base.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
2
|
import type { BaseParams } from '@xylabs/base'
|
|
3
|
+
import { BaseEmitter } from '@xylabs/events'
|
|
3
4
|
import { forget } from '@xylabs/forget'
|
|
4
5
|
import type { Promisable } from '@xylabs/promise'
|
|
5
|
-
import { ModuleBaseEmitter } from '@xyo-network/module-event-emitter'
|
|
6
6
|
import type { ModuleIdentifier } from '@xyo-network/module-model'
|
|
7
7
|
import { isModuleInstance } from '@xyo-network/module-model'
|
|
8
8
|
import type { AttachableNodeInstance } from '@xyo-network/node-model'
|
|
@@ -16,7 +16,7 @@ import type {
|
|
|
16
16
|
*
|
|
17
17
|
* Listens for changes in adapter connections, update the stack node, and emits events when the stack is ready
|
|
18
18
|
*/
|
|
19
|
-
export class StackBase extends
|
|
19
|
+
export class StackBase extends BaseEmitter<BaseParams, StackBaseEvents> implements StackInitializer {
|
|
20
20
|
// flag to check that all adapters are initialized
|
|
21
21
|
initialized = false
|
|
22
22
|
|