pmcf 2.62.2 → 2.62.4
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 +4 -7
package/package.json
CHANGED
package/src/base.mjs
CHANGED
|
@@ -459,12 +459,7 @@ export class Base {
|
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
property(name) {
|
|
462
|
-
|
|
463
|
-
if (value === undefined && this.owner) {
|
|
464
|
-
return this.owner.property(name);
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
return value;
|
|
462
|
+
return this._properties?.[name] ?? this.owner?.property(name);
|
|
468
463
|
}
|
|
469
464
|
|
|
470
465
|
expand(object) {
|
|
@@ -483,7 +478,9 @@ export class Base {
|
|
|
483
478
|
return object;
|
|
484
479
|
}
|
|
485
480
|
if (object instanceof Map) {
|
|
486
|
-
return
|
|
481
|
+
return new Map(
|
|
482
|
+
[...object].map(([k, v]) => [this.expand(k), this.expand(v)])
|
|
483
|
+
);
|
|
487
484
|
}
|
|
488
485
|
|
|
489
486
|
if (object instanceof Set) {
|