pmcf 1.12.0 → 1.13.0
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/model.mjs +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"typescript": "^5.7.3"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
|
-
"node": ">=22.13.
|
|
51
|
+
"node": ">=22.13.1"
|
|
52
52
|
},
|
|
53
53
|
"repository": {
|
|
54
54
|
"type": "git",
|
package/src/model.mjs
CHANGED
|
@@ -430,7 +430,7 @@ class DNSService {
|
|
|
430
430
|
|
|
431
431
|
yield* this.owner.services(filter);
|
|
432
432
|
|
|
433
|
-
for (const s of this.forwardsTo) {
|
|
433
|
+
for (const s of asArray(this.forwardsTo)) {
|
|
434
434
|
const owner = await this.owner.world.load(s);
|
|
435
435
|
yield* owner.services(filter);
|
|
436
436
|
}
|
|
@@ -481,7 +481,6 @@ export class Location extends Owner {
|
|
|
481
481
|
return this.#dns;
|
|
482
482
|
}
|
|
483
483
|
|
|
484
|
-
|
|
485
484
|
async *networkAddresses() {
|
|
486
485
|
for await (const host of this.hosts()) {
|
|
487
486
|
for (const networkAddresses of host.networkAddresses()) {
|
|
@@ -592,7 +591,9 @@ export class Host extends Base {
|
|
|
592
591
|
}
|
|
593
592
|
|
|
594
593
|
if (data.extends) {
|
|
595
|
-
data.extends = await Promise.all(
|
|
594
|
+
data.extends = await Promise.all(
|
|
595
|
+
asArray(data.extends).map(e => world.host(e))
|
|
596
|
+
);
|
|
596
597
|
}
|
|
597
598
|
|
|
598
599
|
return this;
|
|
@@ -941,14 +942,13 @@ export class Service extends Base {
|
|
|
941
942
|
return this;
|
|
942
943
|
}
|
|
943
944
|
|
|
944
|
-
get protocol()
|
|
945
|
-
{
|
|
945
|
+
get protocol() {
|
|
946
946
|
return ServiceTypes[this.type]?.protocol;
|
|
947
947
|
}
|
|
948
|
-
|
|
948
|
+
|
|
949
949
|
get srvPrefix() {
|
|
950
950
|
const st = ServiceTypes[this.type];
|
|
951
|
-
if(st) {
|
|
951
|
+
if (st) {
|
|
952
952
|
return `_${this.type}._${st.protocol}`;
|
|
953
953
|
}
|
|
954
954
|
}
|