pmcf 2.62.3 → 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 +2 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "2.62.3",
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) {
@@ -484,10 +479,7 @@ export class Base {
484
479
  }
485
480
  if (object instanceof Map) {
486
481
  return new Map(
487
- [...object].map(([k, v]) => [
488
- this.expand(k),
489
- this.expand(v)
490
- ])
482
+ [...object].map(([k, v]) => [this.expand(k), this.expand(v)])
491
483
  );
492
484
  }
493
485