@xyo-network/node-abstract 2.75.6 → 2.75.8

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.
@@ -71,8 +71,8 @@ export abstract class AbstractNode<TParams extends NodeParams = NodeParams, TEve
71
71
  return (await (this.resolve(undefined, { direction: 'down', maxDepth: 2 }) ?? [])).filter((module) => module.address !== this.address)
72
72
  }
73
73
 
74
- override async manifest(ignoreAddresses?: string[]): Promise<NodeManifestPayload> {
75
- return await this.manifestHandler(ignoreAddresses)
74
+ override async manifest(maxDepth?: number, ignoreAddresses?: string[]): Promise<NodeManifestPayload> {
75
+ return await this.manifestHandler(maxDepth, ignoreAddresses)
76
76
  }
77
77
 
78
78
  register(_module: ModuleInstance): Promisable<void> {
@@ -135,20 +135,20 @@ export abstract class AbstractNode<TParams extends NodeParams = NodeParams, TEve
135
135
  return [...(await super.discoverHandler()), ...childModAddresses]
136
136
  }
137
137
 
138
- protected override async manifestHandler(ignoreAddresses: string[] = []): Promise<NodeManifestPayload> {
138
+ protected override async manifestHandler(maxDepth?: number, ignoreAddresses: string[] = []): Promise<NodeManifestPayload> {
139
139
  const manifest: NodeManifestPayload = { ...(await super.manifestHandler()), schema: NodeManifestPayloadSchema }
140
140
  const newIgnoreAddresses = [...ignoreAddresses, this.address]
141
141
 
142
142
  const notThisModule = (module: ModuleInstance) => module.address !== this.address && !ignoreAddresses.includes(module.address)
143
143
  const toManifest = (module: ModuleInstance) => module.manifest(newIgnoreAddresses)
144
144
 
145
- const privateModules = await Promise.all((await this.privateResolver.resolve()).filter(notThisModule).map(toManifest))
145
+ /*const privateModules = await Promise.all((await this.privateResolver.resolve()).filter(notThisModule).map(toManifest))
146
146
  if (privateModules.length > 0) {
147
147
  manifest.modules = manifest.modules ?? {}
148
148
  manifest.modules.private = privateModules
149
- }
149
+ }*/
150
150
 
151
- const publicModules = await Promise.all((await this.resolve()).filter(notThisModule).map(toManifest))
151
+ const publicModules = await Promise.all((await this.resolve(undefined, { direction: 'down', maxDepth })).filter(notThisModule).map(toManifest))
152
152
  if (publicModules.length > 0) {
153
153
  manifest.modules = manifest.modules ?? {}
154
154
  manifest.modules.public = publicModules