@olane/o-tool 0.4.1 → 0.4.2

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.
@@ -7,4 +7,5 @@ export * from './interfaces/tool-result.interface.js';
7
7
  export * from './tool.utils.js';
8
8
  export * from './virtual.tool.js';
9
9
  export * from './nodes/index.js';
10
+ export * from './server.tool.js';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
package/dist/src/index.js CHANGED
@@ -7,3 +7,4 @@ export * from './interfaces/tool-result.interface.js';
7
7
  export * from './tool.utils.js';
8
8
  export * from './virtual.tool.js';
9
9
  export * from './nodes/index.js';
10
+ export * from './server.tool.js';
@@ -5,7 +5,7 @@ export class oServerNode extends oNode {
5
5
  super({
6
6
  ...config,
7
7
  network: {
8
- listeners: [
8
+ listeners: config.network?.listeners || [
9
9
  '/ip4/0.0.0.0/tcp/0', // Plain TCP
10
10
  '/ip4/0.0.0.0/tcp/0/ws', // WebSockets over TCP
11
11
  '/ip6/::/tcp/0', // IPv6 TCP
@@ -5,7 +5,7 @@ export class oWebsocketNode extends oNode {
5
5
  super({
6
6
  ...config,
7
7
  network: {
8
- listeners: [
8
+ listeners: config.network?.listeners || [
9
9
  '/ip4/0.0.0.0/tcp/0/ws', // WebSockets over TCP
10
10
  '/ip6/::/tcp/0/ws', // IPv6 WebSockets
11
11
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"o-tool.d.ts","sourceRoot":"","sources":["../../src/o-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EAMV,MAAM,eAAe,CAAC;AASvB;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,SAAS,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAkV7E"}
1
+ {"version":3,"file":"o-tool.d.ts","sourceRoot":"","sources":["../../src/o-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EAMV,MAAM,eAAe,CAAC;AASvB;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,SAAS,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAiV7E"}
@@ -31,7 +31,6 @@ export function oTool(Base) {
31
31
  }
32
32
  async initialize() {
33
33
  await super.initialize();
34
- this.logger.debug('Handling protocol: ' + this.address.protocol);
35
34
  await this.handleProtocol(this.address);
36
35
  if (this.staticAddress &&
37
36
  this.staticAddress?.toString() !== this.address.toString()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-tool",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -34,9 +34,9 @@
34
34
  "devDependencies": {
35
35
  "@eslint/eslintrc": "^3.3.1",
36
36
  "@eslint/js": "^9.29.0",
37
- "@olane/o-config": "0.4.1",
38
- "@olane/o-core": "0.4.1",
39
- "@olane/o-protocol": "0.4.1",
37
+ "@olane/o-config": "0.4.2",
38
+ "@olane/o-core": "0.4.2",
39
+ "@olane/o-protocol": "0.4.2",
40
40
  "@tsconfig/node20": "^20.1.6",
41
41
  "@types/jest": "^30.0.0",
42
42
  "@types/uuid": "^10.0.0",
@@ -56,9 +56,9 @@
56
56
  "typescript": "^5.8.3"
57
57
  },
58
58
  "peerDependencies": {
59
- "@olane/o-config": "^0.4.1",
60
- "@olane/o-core": "^0.4.1",
61
- "@olane/o-protocol": "^0.4.1"
59
+ "@olane/o-config": "^0.4.2",
60
+ "@olane/o-core": "^0.4.2",
61
+ "@olane/o-protocol": "^0.4.2"
62
62
  },
63
63
  "dependencies": {
64
64
  "debug": "^4.4.1",