pmcf 6.21.4 → 6.21.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 +22 -3
- package/src/core-service.mjs +1 -1
package/package.json
CHANGED
package/src/base.mjs
CHANGED
|
@@ -112,14 +112,14 @@ export class Base {
|
|
|
112
112
|
this.constructor,
|
|
113
113
|
attribute => attribute.collection && !attribute.type.primitive
|
|
114
114
|
)) {
|
|
115
|
-
const collection = this[
|
|
115
|
+
const collection = this[attribute.name];
|
|
116
116
|
if (typeof collection?.get === "function") {
|
|
117
117
|
for (const [name, extending] of this.mapFromDirections(
|
|
118
118
|
["extends"],
|
|
119
|
-
|
|
119
|
+
attribute.name
|
|
120
120
|
)) {
|
|
121
121
|
const present = collection.get(extending.name);
|
|
122
|
-
|
|
122
|
+
//console.log("ME",this.fullName,attribute.name,extending.name);
|
|
123
123
|
if (present) {
|
|
124
124
|
present.extends.add(extending);
|
|
125
125
|
present.materializeExtends();
|
|
@@ -128,6 +128,25 @@ export class Base {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
+
/*
|
|
132
|
+
else {
|
|
133
|
+
if (collection instanceof Set) {
|
|
134
|
+
for (const all of this.unionFromDirections(["extends"], attribute.name)) {
|
|
135
|
+
if (all instanceof Set) {
|
|
136
|
+
const d = collection.difference(all);
|
|
137
|
+
|
|
138
|
+
// if (d.size) {
|
|
139
|
+
console.log("ME", this.fullName, attribute.name, d);
|
|
140
|
+
// }
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
// console.error("NO SET",this.fullName, attribute.name, typeof all, all.constructor.name);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
} else {
|
|
147
|
+
//console.log("NO MAP OR SET", this.fullName, name);
|
|
148
|
+
}
|
|
149
|
+
}*/
|
|
131
150
|
}
|
|
132
151
|
}
|
|
133
152
|
|
package/src/core-service.mjs
CHANGED