pmcf 2.39.2 → 2.39.4
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 +2 -2
- package/src/service.mjs +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "2.39.
|
|
3
|
+
"version": "2.39.4",
|
|
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.
|
|
47
|
+
"@types/node": "^22.15.0",
|
|
48
48
|
"ava": "^6.2.0",
|
|
49
49
|
"c8": "^10.1.3",
|
|
50
50
|
"documentation": "^14.0.3",
|
package/src/service.mjs
CHANGED
|
@@ -255,6 +255,10 @@ 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 {
|
|
258
262
|
records.push(
|
|
259
263
|
DNSRecord(
|
|
260
264
|
dnsFullName(`_${this.type}._${ep.protocol}.${domainName}`),
|
|
@@ -265,6 +269,7 @@ export class Service extends Base {
|
|
|
265
269
|
dnsFullName(this.domainName)
|
|
266
270
|
)
|
|
267
271
|
);
|
|
272
|
+
}
|
|
268
273
|
}
|
|
269
274
|
}
|
|
270
275
|
|