@olane/o-client-limited 0.7.12-alpha.66 → 0.7.12-alpha.68

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,6 +1,8 @@
1
1
  import { oNodeConnection, oNodeConnectionConfig } from '@olane/o-node';
2
2
  import { oLaneTool } from '@olane/o-lane';
3
+ import { oNodeConfig } from '@olane/o-node';
3
4
  export declare class oLimitedTool extends oLaneTool {
5
+ constructor(config: oNodeConfig);
4
6
  connect(config: oNodeConnectionConfig): Promise<oNodeConnection>;
5
7
  initConnectionManager(): Promise<void>;
6
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"o-limited.tool.d.ts","sourceRoot":"","sources":["../../src/o-limited.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,qBAAqB,EAEtB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,qBAAa,YAAa,SAAQ,SAAS;IACnC,OAAO,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,eAAe,CAAC;IAehE,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ7C"}
1
+ {"version":3,"file":"o-limited.tool.d.ts","sourceRoot":"","sources":["../../src/o-limited.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,qBAAqB,EAEtB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,YAAa,SAAQ,SAAS;gBAC7B,MAAM,EAAE,WAAW;IAUzB,OAAO,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,eAAe,CAAC;IAehE,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ7C"}
@@ -1,6 +1,15 @@
1
1
  import { oLimitedConnectionManager } from './connection/o-limited-connection-manager.js';
2
2
  import { oLaneTool } from '@olane/o-lane';
3
3
  export class oLimitedTool extends oLaneTool {
4
+ constructor(config) {
5
+ super({
6
+ ...config,
7
+ network: {
8
+ ...(config.network || {}),
9
+ listeners: config.network?.listeners || [], // default to no listeners
10
+ },
11
+ });
12
+ }
4
13
  async connect(config) {
5
14
  this.handleProtocol(config.nextHopAddress).catch((error) => {
6
15
  this.logger.error('Error handling protocol:', error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-client-limited",
3
- "version": "0.7.12-alpha.66",
3
+ "version": "0.7.12-alpha.68",
4
4
  "type": "module",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -53,14 +53,14 @@
53
53
  "typescript": "5.4.5"
54
54
  },
55
55
  "dependencies": {
56
- "@olane/o-config": "0.7.12-alpha.66",
57
- "@olane/o-core": "0.7.12-alpha.66",
58
- "@olane/o-lane": "0.7.12-alpha.66",
59
- "@olane/o-node": "0.7.12-alpha.66",
60
- "@olane/o-protocol": "0.7.12-alpha.66",
61
- "@olane/o-tool": "0.7.12-alpha.66",
56
+ "@olane/o-config": "0.7.12-alpha.68",
57
+ "@olane/o-core": "0.7.12-alpha.68",
58
+ "@olane/o-lane": "0.7.12-alpha.68",
59
+ "@olane/o-node": "0.7.12-alpha.68",
60
+ "@olane/o-protocol": "0.7.12-alpha.68",
61
+ "@olane/o-tool": "0.7.12-alpha.68",
62
62
  "debug": "^4.4.1",
63
63
  "dotenv": "^16.5.0"
64
64
  },
65
- "gitHead": "879cb37d1e93b54a1e5d804987daf478fcc2722f"
65
+ "gitHead": "3ffe39de1430bed3673c13adc1b144f9016967dc"
66
66
  }