pmcf 1.94.1 → 1.94.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 +1 -1
- package/src/base.mjs +10 -8
package/package.json
CHANGED
package/src/base.mjs
CHANGED
|
@@ -15,7 +15,7 @@ const BaseTypeDefinition = {
|
|
|
15
15
|
identifier: true,
|
|
16
16
|
writeable: true
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
/* fullName: {
|
|
19
19
|
type: "string",
|
|
20
20
|
collection: false,
|
|
21
21
|
identifier: true,
|
|
@@ -198,9 +198,13 @@ export class Base {
|
|
|
198
198
|
instantiateAndAssign(property, v);
|
|
199
199
|
}
|
|
200
200
|
} else {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
201
|
+
if (value instanceof Base) {
|
|
202
|
+
assign(property, value);
|
|
203
|
+
} else {
|
|
204
|
+
for (const [objectName, objectData] of Object.entries(value)) {
|
|
205
|
+
objectData[type.identifier.name] = objectName;
|
|
206
|
+
instantiateAndAssign(property, objectData);
|
|
207
|
+
}
|
|
204
208
|
}
|
|
205
209
|
}
|
|
206
210
|
continue;
|
|
@@ -370,13 +374,11 @@ export class Base {
|
|
|
370
374
|
};
|
|
371
375
|
}
|
|
372
376
|
|
|
373
|
-
get tags()
|
|
374
|
-
{
|
|
377
|
+
get tags() {
|
|
375
378
|
return this.#tags;
|
|
376
379
|
}
|
|
377
380
|
|
|
378
|
-
set tags(value)
|
|
379
|
-
{
|
|
381
|
+
set tags(value) {
|
|
380
382
|
if (value instanceof Set) {
|
|
381
383
|
this.#tags = this.#tags.union(value);
|
|
382
384
|
} else {
|