pmcf 6.40.3 → 6.40.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.40.3",
3
+ "version": "6.40.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/base.mjs CHANGED
@@ -208,15 +208,24 @@ export class base extends core {
208
208
  return this.constructor.name;
209
209
  }
210
210
 
211
- get packageData() {
212
- if (!this.content) {
211
+ set content(value) {
212
+ this._content = value;
213
+ }
214
+
215
+ get content() {
216
+ if (!this._content) {
213
217
  for (const e of this.walkDirections(["extends"])) {
214
- if (e.content) {
215
- this.content = e.content.forOwner(this);
218
+ if (e._content) {
219
+ this._content = e._content.forOwner(this);
216
220
  break;
217
221
  }
218
222
  }
219
223
  }
224
+
225
+ return this._content;
226
+ }
227
+
228
+ get packageData() {
220
229
  return this.content?.packageData();
221
230
  }
222
231
 
package/src/content.mjs CHANGED
@@ -154,14 +154,13 @@ export class content extends core {
154
154
 
155
155
  get packaging() {
156
156
  const all = this.unionFromDirections(["this", "extends"], "_packaging");
157
- if(all.size) {
158
- return all;
159
- }
160
-
161
- const content = this.host?.content;
162
- if(content && content !== this) {
163
- return content.packaging;
157
+ if (all.size === 0) {
158
+ const content = this.host.content;
159
+ if (content && content !== this) {
160
+ return content.packaging;
161
+ }
164
162
  }
163
+ return all;
165
164
  }
166
165
 
167
166
  get outputs() {