pmcf 6.39.21 → 6.40.1

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/content.mjs +12 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.39.21",
3
+ "version": "6.40.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/content.mjs CHANGED
@@ -96,6 +96,10 @@ export class content extends core {
96
96
  _groups = new Set();
97
97
  _hooks = new Set();
98
98
 
99
+ get host() {
100
+ return this.owner.host;
101
+ }
102
+
99
103
  value(name) {
100
104
  return super.value(name) ?? this.owner.value(name);
101
105
  }
@@ -149,7 +153,14 @@ export class content extends core {
149
153
  }
150
154
 
151
155
  get packaging() {
152
- return this.unionFromDirections(["this", "extends"], "_packaging");
156
+ const all = this.unionFromDirections(["this", "extends"], "_packaging");
157
+ if(all.size) {
158
+ return all;
159
+ }
160
+ const content = this.host.content;
161
+ if(content && content !== this) {
162
+ return content.packaging;
163
+ }
153
164
  }
154
165
 
155
166
  get outputs() {