pmcf 4.29.6 → 4.30.1

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": "4.29.6",
3
+ "version": "4.30.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/host.mjs CHANGED
@@ -370,8 +370,8 @@ export class Host extends ServiceOwner {
370
370
  set networkInterfaces(networkInterface) {
371
371
  this._networkInterfaces.set(networkInterface.name, networkInterface);
372
372
 
373
- if (!this.isTemplate) {
374
- networkInterface.network?.addObject(this);
373
+ if (!this.isTemplate && networkInterface.network) {
374
+ networkInterface.network.hosts = this;
375
375
  }
376
376
  }
377
377
 
package/src/owner.mjs CHANGED
@@ -156,6 +156,10 @@ export class Owner extends Base {
156
156
  return hosts;
157
157
  }
158
158
 
159
+ set hosts(value) {
160
+ this.typeNamed("host").set(value.name, value);
161
+ }
162
+
159
163
  get hosts() {
160
164
  let hosts = this.directHosts();
161
165