@olane/o-client-limited 0.7.47 → 0.7.49

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 +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,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"}
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;CAmC1E"}
@@ -8,7 +8,11 @@ export class oLimitedConnectionManager extends oNodeConnectionManager {
8
8
  const { address, nextHopAddress, callerAddress } = config;
9
9
  // First time setup connection
10
10
  try {
11
- const p2pConnection = await this.getOrCreateConnection(nextHopAddress, address);
11
+ const addressKey = this.getAddressKey(nextHopAddress);
12
+ if (!addressKey) {
13
+ throw new Error(`Unable to extract address key from address: ${nextHopAddress.toString()}`);
14
+ }
15
+ const p2pConnection = await this.getOrCreateP2pConnection(nextHopAddress, addressKey);
12
16
  const connection = new oLimitedConnection({
13
17
  nextHopAddress: nextHopAddress,
14
18
  address: address,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-client-limited",
3
- "version": "0.7.47",
3
+ "version": "0.7.49",
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.47",
57
- "@olane/o-core": "0.7.47",
58
- "@olane/o-node": "0.7.47",
59
- "@olane/o-protocol": "0.7.47",
60
- "@olane/o-tool": "0.7.47",
56
+ "@olane/o-config": "0.7.49",
57
+ "@olane/o-core": "0.7.49",
58
+ "@olane/o-node": "0.7.49",
59
+ "@olane/o-protocol": "0.7.49",
60
+ "@olane/o-tool": "0.7.49",
61
61
  "debug": "^4.4.1",
62
62
  "dotenv": "^16.5.0"
63
63
  },
64
- "gitHead": "2730d1ccdfb58549ebd253ded9479156086cc066"
64
+ "gitHead": "710399363610686d2c245af0ac6773fb794add25"
65
65
  }