pmcf 2.39.4 → 2.39.6

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.39.4",
3
+ "version": "2.39.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,7 +44,7 @@
44
44
  "pkg-dir": "^8.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@types/node": "^22.15.0",
47
+ "@types/node": "^22.15.2",
48
48
  "ava": "^6.2.0",
49
49
  "c8": "^10.1.3",
50
50
  "documentation": "^14.0.3",
@@ -39,6 +39,10 @@ export class LoopbackNetworkInterface extends SkeletonNetworkInterface {
39
39
  return "host";
40
40
  }
41
41
 
42
+ get localDomains() {
43
+ return new Set(["localhost"]);
44
+ }
45
+
42
46
  get hostName() {
43
47
  return "localhost";
44
48
  }
package/src/service.mjs CHANGED
@@ -255,20 +255,19 @@ export class Service extends Base {
255
255
  for (const ep of this.endpoints(
256
256
  e => e.protocol && e.networkInterface.kind !== "loopback"
257
257
  )) {
258
- if(ep.port === undefined) {
259
- console.error("endpoint without port",ep.toString());
260
- }
261
- else {
262
- records.push(
263
- DNSRecord(
264
- dnsFullName(`_${this.type}._${ep.protocol}.${domainName}`),
265
- "SRV",
266
- this.priority ?? 10,
267
- this.weight,
268
- ep.port,
269
- dnsFullName(this.domainName)
270
- )
271
- );
258
+ if (ep.port === undefined) {
259
+ console.error("Endpoint without port", ep.toString());
260
+ } else {
261
+ records.push(
262
+ DNSRecord(
263
+ dnsFullName(`_${this.type}._${ep.protocol}.${domainName}`),
264
+ "SRV",
265
+ this.priority ?? 10,
266
+ this.weight,
267
+ ep.port,
268
+ dnsFullName(this.domainName)
269
+ )
270
+ );
272
271
  }
273
272
  }
274
273
  }
@@ -323,6 +323,7 @@ export class LoopbackNetworkInterface extends SkeletonNetworkInterface {
323
323
  };
324
324
  get kind(): string;
325
325
  get scope(): string;
326
+ get localDomains(): Set<string>;
326
327
  get hostName(): string;
327
328
  get ipAddresses(): Map<string, import("pmcf").Subnet>;
328
329
  }