pmcf 6.39.8 → 6.39.10

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/README.md CHANGED
@@ -47,76 +47,75 @@ generates config packages for:
47
47
  * [templateContentAttributes](#templatecontentattributes)
48
48
  * [Parameters](#parameters)
49
49
  * [templateContent](#templatecontent)
50
- * [Parameters](#parameters-1)
51
50
  * [isTemplate](#istemplate)
52
51
  * [access](#access)
53
52
  * [loadHooks](#loadhooks)
54
- * [Parameters](#parameters-2)
53
+ * [Parameters](#parameters-1)
55
54
  * [serviceEndpoints](#serviceendpoints)
56
- * [Parameters](#parameters-3)
55
+ * [Parameters](#parameters-2)
57
56
  * [attributeIterator](#attributeiterator)
58
- * [Parameters](#parameters-4)
57
+ * [Parameters](#parameters-3)
59
58
  * [getAttributes](#getattributes)
60
- * [Parameters](#parameters-5)
59
+ * [Parameters](#parameters-4)
61
60
  * [property](#property)
62
- * [Parameters](#parameters-6)
61
+ * [Parameters](#parameters-5)
63
62
  * [attribute](#attribute)
64
- * [Parameters](#parameters-7)
63
+ * [Parameters](#parameters-6)
65
64
  * [walkDirections](#walkdirections)
66
- * [Parameters](#parameters-8)
65
+ * [Parameters](#parameters-7)
67
66
  * [mapFromDirections](#mapfromdirections)
68
- * [Parameters](#parameters-9)
67
+ * [Parameters](#parameters-8)
69
68
  * [unionFromDirections](#unionfromdirections)
70
- * [Parameters](#parameters-10)
69
+ * [Parameters](#parameters-9)
71
70
  * [expand](#expand)
72
- * [Parameters](#parameters-11)
71
+ * [Parameters](#parameters-10)
73
72
  * [expression](#expression)
74
- * [Parameters](#parameters-12)
73
+ * [Parameters](#parameters-11)
75
74
  * [isTemplate](#istemplate-1)
76
75
  * [PortEndpoint](#portendpoint)
77
- * [Parameters](#parameters-13)
76
+ * [Parameters](#parameters-12)
78
77
  * [port](#port)
79
78
  * [socketAddress](#socketaddress)
80
79
  * [HTTPEndpoint](#httpendpoint)
81
- * [Parameters](#parameters-14)
80
+ * [Parameters](#parameters-13)
82
81
  * [port](#port-1)
83
82
  * [domainNames](#domainnames)
84
83
  * [InitializationContext](#initializationcontext)
85
- * [Parameters](#parameters-15)
84
+ * [Parameters](#parameters-14)
86
85
  * [SkeletonNetworkInterface](#skeletonnetworkinterface)
87
86
  * [networkAddresses](#networkaddresses)
88
- * [Parameters](#parameters-16)
87
+ * [Parameters](#parameters-15)
89
88
  * [zones](#zones)
90
89
  * [addressesStatement](#addressesstatement)
91
- * [Parameters](#parameters-17)
90
+ * [Parameters](#parameters-16)
92
91
  * [SystemdJournalRemoteService](#systemdjournalremoteservice)
93
92
  * [Properties](#properties)
94
93
  * [systemdConfigs](#systemdconfigs)
95
- * [Parameters](#parameters-18)
94
+ * [Parameters](#parameters-17)
96
95
  * [SystemdJournalUploadService](#systemdjournaluploadservice)
97
96
  * [Properties](#properties-1)
98
97
  * [systemdConfigs](#systemdconfigs-1)
99
- * [Parameters](#parameters-19)
98
+ * [Parameters](#parameters-18)
100
99
  * [NetworkAddress](#networkaddress)
101
- * [Parameters](#parameters-20)
100
+ * [Parameters](#parameters-19)
102
101
  * [subnet](#subnet)
103
102
  * [networkInterface](#networkinterface)
104
103
  * [address](#address)
105
104
  * [addresses](#addresses)
106
- * [Parameters](#parameters-21)
105
+ * [Parameters](#parameters-20)
107
106
  * [cidrAddresses](#cidraddresses)
108
- * [Parameters](#parameters-22)
107
+ * [Parameters](#parameters-21)
109
108
  * [families](#families)
110
109
  * [secretName](#secretname)
111
110
  * [directHosts](#directhosts)
112
111
  * [subnetForAddress](#subnetforaddress)
113
- * [Parameters](#parameters-23)
112
+ * [Parameters](#parameters-22)
114
113
  * [domainName](#domainname)
115
- * [Parameters](#parameters-24)
114
+ * [Parameters](#parameters-23)
116
115
  * [domainFromDominName](#domainfromdominname)
117
- * [Parameters](#parameters-25)
116
+ * [Parameters](#parameters-24)
118
117
  * [sectionLines](#sectionlines)
119
- * [Parameters](#parameters-26)
118
+ * [Parameters](#parameters-25)
120
119
 
121
120
  ## base
122
121
 
@@ -143,11 +142,6 @@ Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
143
142
 
144
143
  ### templateContent
145
144
 
146
- #### Parameters
147
-
148
- * `entryProperties` **any** 
149
- * `directoryProperties` **any** 
150
-
151
145
  Returns **AsyncIterable\<ContentProvider>**&#x20;
152
146
 
153
147
  ### isTemplate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.39.8",
3
+ "version": "6.39.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -66,7 +66,7 @@
66
66
  "semantic-release": "^25.0.9"
67
67
  },
68
68
  "engines": {
69
- "node": ">=26.7.0"
69
+ "node": ">=26.8.1"
70
70
  },
71
71
  "repository": {
72
72
  "type": "git",
package/src/base.mjs CHANGED
@@ -217,10 +217,18 @@ export class base extends core {
217
217
  }
218
218
  }
219
219
  }
220
- return this.content?.packageData(this);
220
+ return this.content?.packageData();
221
221
  }
222
222
 
223
- async *preparePackages(stagingDir) {}
223
+ async *preparePackages(stagingDir) {
224
+ const pd = await this.packageData;
225
+
226
+ pd.sources.push(...(await Array.fromAsync(this.templateContent())));
227
+
228
+ if (pd.sources.length) {
229
+ yield pd;
230
+ }
231
+ }
224
232
 
225
233
  get templateTransformers() {
226
234
  return [
package/src/content.mjs CHANGED
@@ -97,8 +97,7 @@ export class content extends core {
97
97
  _hooks = new Set();
98
98
 
99
99
  value(name) {
100
- // console.log("CONTENT VALUE", this.name, this.owner.fullName, name, this.owner.name);
101
- return this.owner.value(name) ?? super.value(name);
100
+ return super.value(name) ?? this.owner.value(name);
102
101
  }
103
102
 
104
103
  get name() {
@@ -226,26 +225,7 @@ export class content extends core {
226
225
  }
227
226
 
228
227
  get permissions() {
229
- const p = this.mapFromDirections(["this", "extends"], "_permissions");
230
-
231
- return p;
232
-
233
- /*
234
- const owner = this.systemUserName;
235
- const group = this.systemGroupName;
236
- return [
237
- {
238
- mode: 0o644,
239
- owner,
240
- group
241
- },
242
- {
243
- mode: 0o755,
244
- owner,
245
- group
246
- }
247
- ];
248
- */
228
+ return this.mapFromDirections(["this", "extends"], "_permissions");
249
229
  }
250
230
 
251
231
  /**
@@ -270,18 +270,6 @@ export class CoreService extends base {
270
270
  );
271
271
  }
272
272
 
273
- async *preparePackages(dir) {
274
- const pd = await this.packageData;
275
-
276
- pd.sources = await Array.fromAsync(
277
- this.templateContent()
278
- );
279
-
280
- if (pd.sources.length) {
281
- yield pd;
282
- }
283
- }
284
-
285
273
  dnsRecordsForDomainName(domainName, hasSVRRecords) {
286
274
  const records = [];
287
275
 
@@ -809,7 +809,7 @@ export class bind extends CoreService {
809
809
 
810
810
  packageData.sources.push(new FileContentProvider({ dir: dir + "/" }));
811
811
 
812
- const outputControl = { packageData, dir, permissions };
812
+ const outputControl = { packageData, dir };
813
813
 
814
814
  for (const key of this.keys.values()) {
815
815
  await key.packageContent(outputControl);