pmcf 6.2.4 → 6.2.6
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
|
@@ -188,7 +188,7 @@ export class InitializationContext {
|
|
|
188
188
|
return assign(attribute, owner, this.read(object, data));
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
this.error(`No attribute to assign ${type.name} to ${owner.fullName}`);
|
|
191
|
+
this.error(`No attribute to assign ${type.name} to ${owner.fullName}(${owner.typeName})`);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
async loadAll() {
|
package/src/service-owner.mjs
CHANGED
|
@@ -21,8 +21,8 @@ export class ServiceOwner extends Base {
|
|
|
21
21
|
|
|
22
22
|
_services = new Map();
|
|
23
23
|
|
|
24
|
-
set services(
|
|
25
|
-
this._services
|
|
24
|
+
set services(value) {
|
|
25
|
+
this._services = value;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
get services() {
|
|
@@ -34,15 +34,16 @@ export class ServiceOwner extends Base {
|
|
|
34
34
|
|
|
35
35
|
for (const [name, service] of this.mapFromDirections(
|
|
36
36
|
["extends"],
|
|
37
|
-
"
|
|
37
|
+
"services"
|
|
38
38
|
)) {
|
|
39
|
-
const present = this.
|
|
39
|
+
const present = this.services.get(service.name);
|
|
40
40
|
|
|
41
41
|
if (present) {
|
|
42
42
|
present.extends.add(service);
|
|
43
43
|
present.materializeExtends();
|
|
44
44
|
} else {
|
|
45
|
-
|
|
45
|
+
const so = service.forOwner(this);
|
|
46
|
+
this.services.set(so.name, so);
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
}
|