pmcf 4.27.1 → 4.27.2

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.27.1",
3
+ "version": "4.27.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/host.mjs CHANGED
@@ -109,10 +109,9 @@ export class Host extends ServiceOwner {
109
109
  const present = this._networkInterfaces.get(ni.name);
110
110
 
111
111
  if (present) {
112
- //console.log("LINK", present.fullName, ni.fullName,present.extends);
113
112
  present.extends.add(ni);
114
113
  } else {
115
- this._networkInterfaces.set(ni.name, ni.forOwner(this));
114
+ this.networkInterfaces = ni.forOwner(this);
116
115
  }
117
116
  }
118
117
  }
@@ -1,7 +1,4 @@
1
- import {
2
- default_attribute_writable,
3
- addType
4
- } from "pacc";
1
+ import { default_attribute_writable, addType } from "pacc";
5
2
  import { Base, Service } from "pmcf";
6
3
 
7
4
  export class ServiceOwner extends Base {
@@ -35,9 +32,9 @@ export class ServiceOwner extends Base {
35
32
  addObject(object) {
36
33
  if (object instanceof Service) {
37
34
  this._services.set(object.name, object);
35
+ } else {
36
+ super.addObject(object);
38
37
  }
39
-
40
- super.addObject(object);
41
38
  }
42
39
 
43
40
  materializeExtends() {
@@ -55,27 +52,6 @@ export class ServiceOwner extends Base {
55
52
  this.services = service.forOwner(this);
56
53
  }
57
54
  }
58
-
59
- /*
60
- if (this.fullName === "/SW/mini1") {
61
- const myServiceNames = new Set([...this.services.keys()]);
62
- const extendingSericeNames = new Set([
63
- ...this.mapFromDirections(["extends"], "_services").keys()
64
- ]);
65
-
66
- console.log("XXX",this.fullName, [...this.extends].map(n=>n.fullName), myServiceNames, extendingSericeNames);
67
-
68
- if (!extendingSericeNames.isSubsetOf(myServiceNames)) {
69
- // const diff = myServiceNames.difference(extendingSericeNames);
70
- console.log(
71
- "DIFF",
72
- this.fullName,
73
- myServiceNames,
74
- extendingSericeNames
75
- );
76
- }
77
- }
78
- */
79
55
  }
80
56
 
81
57
  _traverse(...args) {