@spider-mesh/core 2.0.145 → 2.0.146
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/README.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -217,7 +217,7 @@ Public methods:
|
|
|
217
217
|
- `removePeer(nodeId)`
|
|
218
218
|
- `listPeers(service?)`
|
|
219
219
|
- `watch(service?)`
|
|
220
|
-
- `pickRpcNode(service, { node_id? })`
|
|
220
|
+
- `pickRpcNode(service, { node_id?, filter? })` — round-robin; `filter(node)` lets a transport exclude peers it cannot route to yet (e.g. a provider whose RPC endpoint port isn't advertised)
|
|
221
221
|
- `getRpcTransporterName(service)`
|
|
222
222
|
- `listTopicNodes(topic)`
|
|
223
223
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spider-mesh/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.146",
|
|
5
5
|
"description": "Lightweight microservice framework for typescript, auto discovery, load-balancing, fault-torrent, multiple transporters",
|
|
6
6
|
"main": "./build/src/index.js",
|
|
7
7
|
"types": "./build/src/index.d.ts",
|