@olane/o-node 0.7.42 → 0.7.43
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.
|
@@ -25,13 +25,13 @@ export class ConnectionUtils extends oObject {
|
|
|
25
25
|
throw new Error('Failed to extract remote address, could not find o-protocol in peer protocols.');
|
|
26
26
|
}
|
|
27
27
|
const address = oNodeAddress.fromProtocol(oProtocol);
|
|
28
|
-
if (remotePeer
|
|
29
|
-
address
|
|
28
|
+
if (remotePeer?.addresses?.length === 0 &&
|
|
29
|
+
address?.value === currentNode?.leader?.value) {
|
|
30
30
|
// leader - use known address
|
|
31
31
|
return currentNode.leader;
|
|
32
32
|
}
|
|
33
|
-
if (remotePeer
|
|
34
|
-
address
|
|
33
|
+
if (remotePeer?.addresses?.length === 0 &&
|
|
34
|
+
address?.value === currentNode?.parent?.value) {
|
|
35
35
|
// leader - use known address
|
|
36
36
|
return currentNode.parent;
|
|
37
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/o-node",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.43",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@eslint/eslintrc": "^3.3.1",
|
|
42
42
|
"@eslint/js": "^9.29.0",
|
|
43
|
-
"@olane/o-test": "0.7.
|
|
43
|
+
"@olane/o-test": "0.7.43",
|
|
44
44
|
"@tsconfig/node20": "^20.1.6",
|
|
45
45
|
"@types/jest": "^30.0.0",
|
|
46
46
|
"@types/json5": "^2.2.0",
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
"typescript": "5.4.5"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@olane/o-config": "0.7.
|
|
64
|
-
"@olane/o-core": "0.7.
|
|
65
|
-
"@olane/o-protocol": "0.7.
|
|
66
|
-
"@olane/o-tool": "0.7.
|
|
63
|
+
"@olane/o-config": "0.7.43",
|
|
64
|
+
"@olane/o-core": "0.7.43",
|
|
65
|
+
"@olane/o-protocol": "0.7.43",
|
|
66
|
+
"@olane/o-tool": "0.7.43",
|
|
67
67
|
"debug": "^4.4.1",
|
|
68
68
|
"dotenv": "^16.5.0",
|
|
69
69
|
"json5": "^2.2.3"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "12e63fad2b09173fbcf455d881276b7ca7b3344d"
|
|
72
72
|
}
|