sen-ether-client 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/lib/client.js +3 -0
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -237,6 +237,9 @@ export class EtherClient extends EventEmitter {
237
237
  busMulticastRange: DEFAULT_MULTICAST_RANGE,
238
238
  ...options
239
239
  };
240
+ this.options.discoveryPort ??= discoveryPortFromEnv() ?? DEFAULT_DISCOVERY_PORT;
241
+ this.options.busMulticastPort ??= DEFAULT_BUS_MULTICAST_PORT;
242
+ this.options.busMulticastRange ??= DEFAULT_MULTICAST_RANGE;
240
243
  this.processInfo = createProcessInfo(this.options);
241
244
  this.interfaceAddress = resolveInterfaceAddress(this.options.interfaceAddress);
242
245
  this.busMulticastRange = normalizeMulticastRange(this.options.busMulticastRange);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sen-ether-client",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Pure JavaScript SEN client for existing kernels over ether",
5
5
  "senCompatibility": {
6
6
  "kernelProtocolVersion": 9,