pmcf 6.27.1 → 6.27.3

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
@@ -75,34 +75,33 @@ generates config packages for:
75
75
  * [HTTPEndpoint](#httpendpoint)
76
76
  * [Parameters](#parameters-13)
77
77
  * [port](#port-1)
78
- * [id](#id)
79
78
  * [domainNames](#domainnames)
80
79
  * [InitializationContext](#initializationcontext)
81
80
  * [Parameters](#parameters-14)
82
- * [SkeletonNetworkInterface](#skeletonnetworkinterface)
83
- * [networkAddresses](#networkaddresses)
84
- * [Parameters](#parameters-15)
85
81
  * [zones](#zones)
86
82
  * [type](#type)
87
83
  * [addressesStatement](#addressesstatement)
88
- * [Parameters](#parameters-16)
84
+ * [Parameters](#parameters-15)
89
85
  * [SystemdJournalRemoteService](#systemdjournalremoteservice)
90
86
  * [Properties](#properties)
91
87
  * [systemdConfigs](#systemdconfigs)
92
- * [Parameters](#parameters-17)
88
+ * [Parameters](#parameters-16)
93
89
  * [SystemdJournalUploadService](#systemdjournaluploadservice)
94
90
  * [Properties](#properties-1)
95
91
  * [systemdConfigs](#systemdconfigs-1)
96
- * [Parameters](#parameters-18)
92
+ * [Parameters](#parameters-17)
97
93
  * [NetworkAddress](#networkaddress)
98
- * [Parameters](#parameters-19)
94
+ * [Parameters](#parameters-18)
99
95
  * [subnet](#subnet)
100
96
  * [networkInterface](#networkinterface)
101
97
  * [address](#address)
102
98
  * [addresses](#addresses)
103
- * [Parameters](#parameters-20)
99
+ * [Parameters](#parameters-19)
104
100
  * [cidrAddresses](#cidraddresses)
105
- * [Parameters](#parameters-21)
101
+ * [Parameters](#parameters-20)
102
+ * [SkeletonNetworkInterface](#skeletonnetworkinterface)
103
+ * [networkAddresses](#networkaddresses)
104
+ * [Parameters](#parameters-21)
106
105
  * [families](#families)
107
106
  * [secretName](#secretname)
108
107
  * [directHosts](#directhosts)
@@ -285,10 +284,6 @@ Endpoint based on http
285
284
 
286
285
  Returns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** 
287
286
 
288
- ## id
289
-
290
- Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
291
-
292
287
  ## domainNames
293
288
 
294
289
  Returns **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**&#x20;
@@ -301,18 +296,6 @@ Keeps track of all in flight object creations and loose ends during config initi
301
296
 
302
297
  * `directory` (optional, default `"/"`)
303
298
 
304
- ## SkeletonNetworkInterface
305
-
306
- **Extends ServiceOwner**
307
-
308
- ### networkAddresses
309
-
310
- #### Parameters
311
-
312
- * `filter` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `n=>true`)
313
-
314
- Returns **Iterable<[NetworkAddress](#networkaddress)>**&#x20;
315
-
316
299
  ## zones
317
300
 
318
301
  Type: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<bind\_zone>
@@ -409,6 +392,18 @@ Returns **Iterable<[string](https://developer.mozilla.org/docs/Web/JavaScript/Re
409
392
 
410
393
  Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**&#x20;
411
394
 
395
+ ## SkeletonNetworkInterface
396
+
397
+ **Extends ServiceOwner**
398
+
399
+ ### networkAddresses
400
+
401
+ #### Parameters
402
+
403
+ * `filter` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `n=>true`)
404
+
405
+ Returns **Iterable<[NetworkAddress](#networkaddress)>**&#x20;
406
+
412
407
  ## families
413
408
 
414
409
  Returns **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**&#x20;
package/bin/pmcf-info CHANGED
@@ -96,16 +96,20 @@ function show(value, indent = 0, options = { short: false, maxDepth: 5 }) {
96
96
  }
97
97
  }
98
98
  } else {
99
- const l = [...v];
99
+ try {
100
+ const l = [...v];
100
101
 
101
- if (l.length > 1) {
102
- console.log(name(attribute));
102
+ if (l.length > 1) {
103
+ console.log(name(attribute));
103
104
 
104
- for (const o of l) {
105
- console.log(prefix(indent + 2) + o.fullName);
105
+ for (const o of l) {
106
+ console.log(prefix(indent + 2) + o.fullName);
107
+ }
108
+ } else if (l.length === 1) {
109
+ console.log(name(attribute) + l[0].fullName);
106
110
  }
107
- } else if (l.length === 1) {
108
- console.log(name(attribute) + l[0].fullName);
111
+ } catch (e) {
112
+ console.log(name(attribute), v);
109
113
  }
110
114
  }
111
115
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.27.1",
3
+ "version": "6.27.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -53,8 +53,8 @@
53
53
  "aggregated-map": "^1.0.10",
54
54
  "content-entry-transform": "^1.7.0",
55
55
  "ip-utilties": "^3.12.0",
56
- "npm-pkgbuild": "^20.8.13",
57
- "pacc": "^11.2.0",
56
+ "npm-pkgbuild": "^20.8.14",
57
+ "pacc": "^11.2.1",
58
58
  "package-directory": "^8.2.0",
59
59
  "yaml": "^2.9.0"
60
60
  },
package/src/host.mjs CHANGED
@@ -40,7 +40,7 @@ export class Host extends ServiceOwner {
40
40
  name: "os",
41
41
  values: new Set(["osx", "windows", "linux"])
42
42
  },
43
- "machine-id": { ...string_attribute_writable, name: "machine-id" },
43
+ id: { ...string_attribute_writable, name: "id" },
44
44
  distribution: { ...string_attribute_writable, name: "distribution" },
45
45
  deployment: {
46
46
  ...string_attribute_writable,
@@ -136,13 +136,6 @@ export class Host extends ServiceOwner {
136
136
  return this.attribute("_vendor");
137
137
  }
138
138
 
139
- /**
140
- * @return {string}
141
- */
142
- get id() {
143
- return this["machine-id"];
144
- }
145
-
146
139
  set keymap(value) {
147
140
  this._keymap = value;
148
141
  }
@@ -42,7 +42,7 @@ export class SkeletonNetworkInterface extends ServiceOwner {
42
42
 
43
43
  get services() {
44
44
  return this.owner
45
- ? new AggregatedMap([super.services, this.owner.services])
45
+ ? new AggregatedMap([super.services, this.owner._services])
46
46
  : super.services;
47
47
  }
48
48
 
@@ -198,7 +198,8 @@ class bind_group extends Base {
198
198
  type: bindNetworkAddressTypes,
199
199
  name: "access",
200
200
  collection: true,
201
- writable: true
201
+ writable: true,
202
+ deferredExpression: true
202
203
  },
203
204
  entries: {
204
205
  ...default_collection_attribute_writable,
@@ -273,7 +274,6 @@ class bind_group extends Base {
273
274
  }
274
275
 
275
276
  foreignDomains = new Set();
276
- access = [];
277
277
  allowedUpdates = [];
278
278
  notify = true;
279
279
  hasCatalog = true;
@@ -369,6 +369,10 @@ class bind_group extends Base {
369
369
  const address = na.address;
370
370
  const host = na.host;
371
371
 
372
+ if (host === undefined) {
373
+ console.log("NO HOST", na);
374
+ }
375
+
372
376
  if (!addresses.has(address)) {
373
377
  addresses.add(address);
374
378