@xyo-network/bridge-abstract 2.103.8 → 2.104.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
@@ -10,36 +10,36 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/assert": "^3.5.0",
14
- "@xylabs/exists": "^3.5.0",
15
- "@xylabs/forget": "^3.5.0",
16
- "@xylabs/hex": "^3.5.0",
17
- "@xylabs/lodash": "^3.5.0",
18
- "@xylabs/object": "^3.5.0",
19
- "@xylabs/promise": "^3.5.0",
20
- "@xyo-network/account": "~2.103.8",
21
- "@xyo-network/account-model": "~2.103.8",
22
- "@xyo-network/archivist-model": "~2.103.8",
23
- "@xyo-network/archivist-wrapper": "~2.103.8",
24
- "@xyo-network/boundwitness-model": "~2.103.8",
25
- "@xyo-network/boundwitness-wrapper": "~2.103.8",
26
- "@xyo-network/bridge-model": "~2.103.8",
27
- "@xyo-network/diviner-model": "~2.103.8",
28
- "@xyo-network/diviner-wrapper": "~2.103.8",
29
- "@xyo-network/manifest-model": "~2.103.8",
30
- "@xyo-network/module-abstract": "~2.103.8",
31
- "@xyo-network/module-model": "~2.103.8",
32
- "@xyo-network/module-resolver": "~2.103.8",
33
- "@xyo-network/module-wrapper": "~2.103.8",
34
- "@xyo-network/node-model": "~2.103.8",
35
- "@xyo-network/node-wrapper": "~2.103.8",
36
- "@xyo-network/payload-builder": "~2.103.8",
37
- "@xyo-network/payload-model": "~2.103.8",
38
- "@xyo-network/query-payload-plugin": "~2.103.8",
39
- "@xyo-network/sentinel-model": "~2.103.8",
40
- "@xyo-network/sentinel-wrapper": "~2.103.8",
41
- "@xyo-network/witness-model": "~2.103.8",
42
- "@xyo-network/witness-wrapper": "~2.103.8",
13
+ "@xylabs/assert": "^3.5.1",
14
+ "@xylabs/exists": "^3.5.1",
15
+ "@xylabs/forget": "^3.5.1",
16
+ "@xylabs/hex": "^3.5.1",
17
+ "@xylabs/lodash": "^3.5.1",
18
+ "@xylabs/object": "^3.5.1",
19
+ "@xylabs/promise": "^3.5.1",
20
+ "@xyo-network/account": "~2.104.0",
21
+ "@xyo-network/account-model": "~2.104.0",
22
+ "@xyo-network/archivist-model": "~2.104.0",
23
+ "@xyo-network/archivist-wrapper": "~2.104.0",
24
+ "@xyo-network/boundwitness-model": "~2.104.0",
25
+ "@xyo-network/boundwitness-wrapper": "~2.104.0",
26
+ "@xyo-network/bridge-model": "~2.104.0",
27
+ "@xyo-network/diviner-model": "~2.104.0",
28
+ "@xyo-network/diviner-wrapper": "~2.104.0",
29
+ "@xyo-network/manifest-model": "~2.104.0",
30
+ "@xyo-network/module-abstract": "~2.104.0",
31
+ "@xyo-network/module-model": "~2.104.0",
32
+ "@xyo-network/module-resolver": "~2.104.0",
33
+ "@xyo-network/module-wrapper": "~2.104.0",
34
+ "@xyo-network/node-model": "~2.104.0",
35
+ "@xyo-network/node-wrapper": "~2.104.0",
36
+ "@xyo-network/payload-builder": "~2.104.0",
37
+ "@xyo-network/payload-model": "~2.104.0",
38
+ "@xyo-network/query-payload-plugin": "~2.104.0",
39
+ "@xyo-network/sentinel-model": "~2.104.0",
40
+ "@xyo-network/sentinel-wrapper": "~2.104.0",
41
+ "@xyo-network/witness-model": "~2.104.0",
42
+ "@xyo-network/witness-wrapper": "~2.104.0",
43
43
  "lru-cache": "^10.2.2"
44
44
  },
45
45
  "devDependencies": {
@@ -86,6 +86,6 @@
86
86
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
87
87
  },
88
88
  "sideEffects": false,
89
- "version": "2.103.8",
89
+ "version": "2.104.0",
90
90
  "type": "module"
91
91
  }
@@ -55,6 +55,10 @@ export abstract class AbstractBridge<TParams extends BridgeParams = BridgeParams
55
55
  return this.params.allowNameResolution ?? true
56
56
  }
57
57
 
58
+ get discoverRoots() {
59
+ return this.config.client?.discoverRoots ?? this.config.discoverRoots ?? (this.config.client === undefined ? false : 'start')
60
+ }
61
+
58
62
  override get queries(): string[] {
59
63
  return [BridgeConnectQuerySchema, BridgeDisconnectQuerySchema, BridgeExposeQuerySchema, BridgeUnexposeQuerySchema, ...super.queries]
60
64
  }
@@ -138,10 +142,9 @@ export abstract class AbstractBridge<TParams extends BridgeParams = BridgeParams
138
142
  }
139
143
 
140
144
  override async startHandler(): Promise<boolean> {
141
- const { discoverRoots } = this.config
142
- if (discoverRoots === 'lazy') {
145
+ if (this.discoverRoots === 'lazy') {
143
146
  forget(this.getRoots())
144
- } else {
147
+ } else if (this.discoverRoots === 'start') {
145
148
  await this.getRoots()
146
149
  }
147
150
  return true