@olane/o-client-limited 0.7.33 → 0.7.35

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.
@@ -1,11 +1,10 @@
1
- import { oNodeConnectionManager } from '@olane/o-node';
2
- import { oConnectionConfig } from '@olane/o-core';
1
+ import { oNodeConnectionConfig, oNodeConnectionManager } from '@olane/o-node';
3
2
  import { oLimitedConnection } from './o-limited-connection.js';
4
3
  export declare class oLimitedConnectionManager extends oNodeConnectionManager {
5
4
  private readonly _token?;
6
5
  /**
7
6
  * Override connect to return oPrivateConnection with _token injected
8
7
  */
9
- connect(config: oConnectionConfig): Promise<oLimitedConnection>;
8
+ connect(config: oNodeConnectionConfig): Promise<oLimitedConnection>;
10
9
  }
11
10
  //# sourceMappingURL=o-limited-connection-manager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"o-limited-connection-manager.d.ts","sourceRoot":"","sources":["../../../src/connection/o-limited-connection-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,qBAAa,yBAA0B,SAAQ,sBAAsB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAS;IAEjC;;OAEG;IACG,OAAO,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA6BtE"}
1
+ {"version":3,"file":"o-limited-connection-manager.d.ts","sourceRoot":"","sources":["../../../src/connection/o-limited-connection-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,qBAAa,yBAA0B,SAAQ,sBAAsB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAS;IAEjC;;OAEG;IACG,OAAO,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA6B1E"}
@@ -14,7 +14,7 @@ export class oLimitedConnectionManager extends oNodeConnectionManager {
14
14
  address: address,
15
15
  p2pConnection: p2pConnection,
16
16
  callerAddress: callerAddress,
17
- runOnLimitedConnection: this.config.runOnLimitedConnection ?? false,
17
+ runOnLimitedConnection: this.config.runOnLimitedConnection ?? true,
18
18
  requestHandler: config.requestHandler,
19
19
  });
20
20
  return connection;
@@ -11,7 +11,7 @@ export class oLimitedConnection extends oNodeConnection {
11
11
  maxOutboundStreams: process.env.MAX_OUTBOUND_STREAMS
12
12
  ? parseInt(process.env.MAX_OUTBOUND_STREAMS)
13
13
  : 1000,
14
- runOnLimitedConnection: this.config.runOnLimitedConnection ?? false,
14
+ runOnLimitedConnection: this.config.runOnLimitedConnection ?? true,
15
15
  reusePolicy: 'reuse', // Enable stream reuse
16
16
  drainTimeoutMs: this.config.drainTimeoutMs,
17
17
  };
@@ -27,7 +27,7 @@ export class oLimitedTool extends oNodeTool {
27
27
  p2pNode: this.p2pNode,
28
28
  defaultReadTimeoutMs: this.config.connectionTimeouts?.readTimeoutMs,
29
29
  defaultDrainTimeoutMs: this.config.connectionTimeouts?.drainTimeoutMs,
30
- runOnLimitedConnection: this.config.runOnLimitedConnection ?? false,
30
+ runOnLimitedConnection: true,
31
31
  });
32
32
  }
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-client-limited",
3
- "version": "0.7.33",
3
+ "version": "0.7.35",
4
4
  "type": "module",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -53,13 +53,13 @@
53
53
  "typescript": "5.4.5"
54
54
  },
55
55
  "dependencies": {
56
- "@olane/o-config": "0.7.33",
57
- "@olane/o-core": "0.7.33",
58
- "@olane/o-node": "0.7.33",
59
- "@olane/o-protocol": "0.7.33",
60
- "@olane/o-tool": "0.7.33",
56
+ "@olane/o-config": "0.7.35",
57
+ "@olane/o-core": "0.7.35",
58
+ "@olane/o-node": "0.7.35",
59
+ "@olane/o-protocol": "0.7.35",
60
+ "@olane/o-tool": "0.7.35",
61
61
  "debug": "^4.4.1",
62
62
  "dotenv": "^16.5.0"
63
63
  },
64
- "gitHead": "a1a218ce3cb7ffca90b442b07baff4ef15844318"
64
+ "gitHead": "4969788a907bb3a8705c84d42f461403a0194283"
65
65
  }