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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/base.mjs +4 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "2.62.2",
3
+ "version": "2.62.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/base.mjs CHANGED
@@ -459,12 +459,7 @@ export class Base {
459
459
  }
460
460
 
461
461
  property(name) {
462
- const value = this._properties?.[name];
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 object; // TODO
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) {