pmcf 2.21.1 → 2.21.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "2.21.1",
3
+ "version": "2.21.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/service.mjs CHANGED
@@ -173,10 +173,6 @@ export class Service extends Base {
173
173
  this._ipAddresses = value;
174
174
  }
175
175
 
176
- get addresses() {
177
- return this.rawAddresses.map(a => `${a}:${this.port}`);
178
- }
179
-
180
176
  get networks() {
181
177
  return this.server.networks;
182
178
  }
@@ -328,12 +324,22 @@ export class Endpoint {
328
324
  return `${this.rawAddress}[${this.port}]`;
329
325
  }
330
326
 
327
+ get socketAddress()
328
+ {
329
+ return `${this.address}:${this.port}`;
330
+ }
331
+
331
332
  get hostName() {
332
333
  return this.networkInterface.hostName;
333
334
  }
334
335
 
335
336
  #rawAddress;
336
337
 
338
+ get address()
339
+ {
340
+ return this.#rawAddress ?? this.networkInterface.rawAddress;
341
+ }
342
+
337
343
  get rawAddress() {
338
344
  return this.#rawAddress ?? this.networkInterface.rawAddress;
339
345
  }
@@ -311,7 +311,6 @@ export class Service extends Base {
311
311
  get rawAddresses(): any;
312
312
  get rawAddress(): any;
313
313
  set ipAddresses(value: any);
314
- get addresses(): any;
315
314
  get networks(): any;
316
315
  get endpoints(): any[];
317
316
  findEndpoints(filter: any): Generator<any, void, any>;
@@ -336,7 +335,9 @@ export class Endpoint {
336
335
  service: any;
337
336
  networkInterface: any;
338
337
  toString(): string;
338
+ get socketAddress(): string;
339
339
  get hostName(): any;
340
+ get address(): any;
340
341
  set rawAddress(value: any);
341
342
  get rawAddress(): any;
342
343
  #private;