pmcf 6.13.0 → 6.13.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.
package/README.md CHANGED
@@ -80,6 +80,7 @@ generates config packages for:
80
80
  * [SkeletonNetworkInterface](#skeletonnetworkinterface)
81
81
  * [networkAddresses](#networkaddresses)
82
82
  * [Parameters](#parameters-14)
83
+ * [type](#type)
83
84
  * [SystemdJournalRemoteService](#systemdjournalremoteservice)
84
85
  * [Properties](#properties)
85
86
  * [systemdConfigs](#systemdconfigs)
@@ -298,6 +299,12 @@ Keeps track of all in flight object creations and loose ends during config initi
298
299
 
299
300
  Returns **Iterable<[NetworkAddress](#networkaddress)>**&#x20;
300
301
 
302
+ ## type
303
+
304
+ Type of the group.
305
+
306
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** view | unknown
307
+
301
308
  ## SystemdJournalRemoteService
302
309
 
303
310
  **Extends CoreService**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.13.0",
3
+ "version": "6.13.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -167,13 +167,14 @@ class bind_group extends Base {
167
167
 
168
168
  async packageContent(outputControl) {
169
169
  outputControl.packageData.sources.push(
170
- ...(await Array.fromAsync(this.templateContent(...outputControl.permissions)))
170
+ ...(await Array.fromAsync(
171
+ this.templateContent(...outputControl.permissions)
172
+ ))
171
173
  );
172
174
 
173
175
  return (
174
176
  await Promise.all([
175
177
  this.generateACLs(outputControl),
176
- this.generateTypeDefinition(outputControl),
177
178
  this.generateZoneDefs(outputControl, this.entries)
178
179
  ])
179
180
  ).find(r => r)
@@ -181,20 +182,6 @@ class bind_group extends Base {
181
182
  : false;
182
183
  }
183
184
 
184
- async generateTypeDefinition(outputControl) {
185
- if (this.type === "view") {
186
- await writeLines(
187
- join(outputControl.dir, "etc/named/views"),
188
- `gen-${this.name}.conf`,
189
- [
190
- `view ${this.name} {`,
191
- `include "/etc/named/views/${this.name}/*.conf";`,
192
- "};"
193
- ]
194
- );
195
- }
196
- }
197
-
198
185
  async generateACLs(outputControl) {
199
186
  const acls = addressesStatement(
200
187
  `acl ${this.name}`,
@@ -643,5 +630,5 @@ export class bind extends ExtraSourceService {
643
630
  }
644
631
 
645
632
  function newOutputControl(packageData, dir, permissions) {
646
- return { configs: [], catalogs: new Map(), packageData, dir, permissions};
633
+ return { configs: [], catalogs: new Map(), packageData, dir, permissions };
647
634
  }