pmcf 1.64.4 → 1.64.5
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 +1 -1
- package/src/base.mjs +4 -0
- package/src/cluster.mjs +1 -1
- package/src/owner.mjs +8 -4
- package/types/base.d.mts +1 -0
package/package.json
CHANGED
package/src/base.mjs
CHANGED
package/src/cluster.mjs
CHANGED
package/src/owner.mjs
CHANGED
|
@@ -146,9 +146,9 @@ export class Owner extends Base {
|
|
|
146
146
|
return this.typeNamed("host", name);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
*
|
|
150
|
-
yield
|
|
151
|
-
yield
|
|
149
|
+
*hosts() {
|
|
150
|
+
yield* this.typeList("host");
|
|
151
|
+
yield* this.typeList("cluster");
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
networkNamed(name) {
|
|
@@ -225,7 +225,10 @@ export class Owner extends Base {
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
for (const nameOrNetwork of asIterator(destinationNetworks)) {
|
|
228
|
-
const other =
|
|
228
|
+
const other =
|
|
229
|
+
nameOrNetwork instanceof Owner
|
|
230
|
+
? nameOrNetwork
|
|
231
|
+
: this.networkNamed(nameOrNetwork);
|
|
229
232
|
if (other) {
|
|
230
233
|
if (!bridge.has(other)) {
|
|
231
234
|
bridge.add(other);
|
|
@@ -360,4 +363,5 @@ export class Owner extends Base {
|
|
|
360
363
|
yield location.domain;
|
|
361
364
|
}
|
|
362
365
|
}
|
|
366
|
+
|
|
363
367
|
}
|
package/types/base.d.mts
CHANGED