pmcf 4.6.0 → 4.6.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/base.mjs +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "4.6.0",
3
+ "version": "4.6.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/base.mjs CHANGED
@@ -365,9 +365,14 @@ export class Base {
365
365
  if (!seen.has(this)) {
366
366
  seen.add(this);
367
367
 
368
- const value = getAttribute(e, propertyName);
368
+ const value = getAttribute(this, propertyName);
369
369
  if (value !== undefined) {
370
370
  yield value;
371
+ } else {
372
+ const value = this._properties?.[propertyName];
373
+ if (value !== undefined) {
374
+ yield value;
375
+ }
371
376
  }
372
377
 
373
378
  for (const e of this.allExtends()) {