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 +1 -1
- package/src/base.mjs +13 -4
- package/src/content.mjs +6 -7
package/package.json
CHANGED
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
|
-
|
|
212
|
-
|
|
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.
|
|
215
|
-
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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() {
|