@xyo-network/react-standard-node 2.57.7 → 2.58.0-rc.2

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.
@@ -5,7 +5,10 @@ import { MemorySentinel, SentinelConfig, SentinelParams } from '@xyo-network/sen
5
5
  export class SentinelBuilder {
6
6
  private _sentinel: MemorySentinel | undefined
7
7
 
8
- protected constructor(private config: SentinelConfig, private account: AccountInstance) {
8
+ protected constructor(
9
+ private config: SentinelConfig,
10
+ private account: AccountInstance,
11
+ ) {
9
12
  assertDefinedEx(config, 'config was not defined')
10
13
  }
11
14
 
@@ -1,6 +1,6 @@
1
1
  import { AccountInstance } from '@xyo-network/account-model'
2
2
  import { ArchivistModule, StorageArchivist, StorageArchivistConfig, StorageArchivistConfigSchema } from '@xyo-network/archivist'
3
- import { MemoryNode, NodeWrapper } from '@xyo-network/node'
3
+ import { asNodeInstance, MemoryNode } from '@xyo-network/node'
4
4
  import { assertDefinedEx } from '@xyo-network/react-shared'
5
5
 
6
6
  export interface ArchivistBuilderConfig {
@@ -11,7 +11,11 @@ export class StorageArchivistBuilder {
11
11
  private _archivist: StorageArchivist | undefined
12
12
  private remoteArchivist: ArchivistModule | undefined
13
13
 
14
- protected constructor(private config: ArchivistBuilderConfig, private account: AccountInstance, private node?: MemoryNode) {}
14
+ protected constructor(
15
+ private config: ArchivistBuilderConfig,
16
+ private account: AccountInstance,
17
+ private node?: MemoryNode,
18
+ ) {}
15
19
 
16
20
  get archivist() {
17
21
  return assertDefinedEx(this._archivist, 'archivist was not defined upon create')
@@ -44,8 +48,8 @@ export class StorageArchivistBuilder {
44
48
  }
45
49
 
46
50
  async findParentArchivist() {
47
- const wrappedNode = NodeWrapper.wrap(assertDefinedEx(this.node, 'node not defined'), this.account)
48
- const [bridge] = (await wrappedNode.resolve({ name: ['RemoteNodeBridge'] })) ?? []
51
+ const node = asNodeInstance(this.node, 'node not defined')
52
+ const [bridge] = (await node.resolve({ name: ['RemoteNodeBridge'] })) ?? []
49
53
  if (bridge) {
50
54
  try {
51
55
  const [archivist] = (await bridge.resolve({ name: ['Archivist'] })) ?? []