@olane/o-node 0.7.27 → 0.7.29
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/dist/src/connection/o-node-connection.js +3 -3
- package/dist/src/connection/o-node-connection.manager.d.ts.map +1 -1
- package/dist/src/connection/o-node-connection.manager.js +3 -3
- package/dist/src/connection/stream-handler.d.ts.map +1 -1
- package/dist/src/connection/stream-handler.js +0 -1
- package/package.json +7 -7
|
@@ -33,9 +33,9 @@ export class oNodeConnection extends oConnection {
|
|
|
33
33
|
}
|
|
34
34
|
async transmit(request) {
|
|
35
35
|
try {
|
|
36
|
-
if (this.config.runOnLimitedConnection) {
|
|
37
|
-
|
|
38
|
-
}
|
|
36
|
+
// if (this.config.runOnLimitedConnection) {
|
|
37
|
+
// this.logger.debug('Running on limited connection...');
|
|
38
|
+
// }
|
|
39
39
|
const stream = await this.getOrCreateStream();
|
|
40
40
|
this.validate(stream);
|
|
41
41
|
const streamConfig = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o-node-connection.manager.d.ts","sourceRoot":"","sources":["../../../src/connection/o-node-connection.manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,UAAU,EAAU,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAEhG,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,qBAAa,sBAAuB,SAAQ,kBAAkB;
|
|
1
|
+
{"version":3,"file":"o-node-connection.manager.d.ts","sourceRoot":"","sources":["../../../src/connection/o-node-connection.manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,UAAU,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ection) {
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
|
-
for (const [transportKey, cachedConnection] of this.connectionsByTransportKey.entries()) {
|
|
25
|
+
for (const [transportKey, cachedConnection,] of this.connectionsByTransportKey.entries()) {
|
|
26
26
|
if (cachedConnection === connection) {
|
|
27
27
|
this.logger.debug('Connection closed, removing from cache for transport key:', transportKey);
|
|
28
28
|
this.connectionsByTransportKey.delete(transportKey);
|
|
@@ -83,7 +83,7 @@ export class oNodeConnectionManager extends oConnectionManager {
|
|
|
83
83
|
// Check if we have a cached connection by transport key
|
|
84
84
|
const cachedConnection = this.connectionsByTransportKey.get(transportKey);
|
|
85
85
|
if (cachedConnection && cachedConnection.status === 'open') {
|
|
86
|
-
this.logger.debug('Reusing cached connection for transports:', nextHopAddress);
|
|
86
|
+
this.logger.debug('Reusing cached connection for transports:', nextHopAddress?.value);
|
|
87
87
|
return cachedConnection;
|
|
88
88
|
}
|
|
89
89
|
// Clean up stale connection if it exists but is not open
|
|
@@ -249,7 +249,7 @@ export class oNodeConnectionManager extends oConnectionManager {
|
|
|
249
249
|
*/
|
|
250
250
|
cleanupStaleConnections() {
|
|
251
251
|
let removed = 0;
|
|
252
|
-
for (const [transportKey, connection] of this.connectionsByTransportKey.entries()) {
|
|
252
|
+
for (const [transportKey, connection,] of this.connectionsByTransportKey.entries()) {
|
|
253
253
|
if (connection.status !== 'open') {
|
|
254
254
|
this.connectionsByTransportKey.delete(transportKey);
|
|
255
255
|
removed++;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-handler.d.ts","sourceRoot":"","sources":["../../../src/connection/stream-handler.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EACL,QAAQ,EACR,SAAS,EAIT,MAAM,EAEP,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,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AAC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,CAAC,EAC1E,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAC1B,OAAO,CAAC,SAAS,CAAC;IA8GrB;;;;;;;OAOG;IACG,cAAc,CAClB,OAAO,EAAE,cAAc,EACvB,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,GAChD,OAAO,CAAC,IAAI,CAAC;CAyBjB"}
|
|
@@ -98,7 +98,6 @@ export class StreamHandler {
|
|
|
98
98
|
try {
|
|
99
99
|
// force the close for now until we can implement a proper close
|
|
100
100
|
await stream.abort(new Error('Stream closed'));
|
|
101
|
-
this.logger.debug('Stream closed successfully');
|
|
102
101
|
}
|
|
103
102
|
catch (error) {
|
|
104
103
|
this.logger.debug('Error closing stream:', error.message);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/o-node",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.29",
|
|
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.29",
|
|
44
44
|
"@tsconfig/node20": "^20.1.6",
|
|
45
45
|
"@types/jest": "^30.0.0",
|
|
46
46
|
"@typescript-eslint/eslint-plugin": "^8.34.1",
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"typescript": "5.4.5"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@olane/o-config": "0.7.
|
|
63
|
-
"@olane/o-core": "0.7.
|
|
64
|
-
"@olane/o-protocol": "0.7.
|
|
65
|
-
"@olane/o-tool": "0.7.
|
|
62
|
+
"@olane/o-config": "0.7.29",
|
|
63
|
+
"@olane/o-core": "0.7.29",
|
|
64
|
+
"@olane/o-protocol": "0.7.29",
|
|
65
|
+
"@olane/o-tool": "0.7.29",
|
|
66
66
|
"debug": "^4.4.1",
|
|
67
67
|
"dotenv": "^16.5.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "3aaf809d720ac59971d636d3dbdf6c4eadd83bca"
|
|
70
70
|
}
|