pmcf 2.46.1 → 2.46.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "2.46.1",
3
+ "version": "2.46.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -46,13 +46,13 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "ip-utilties": "^1.3.1",
49
- "npm-pkgbuild": "^18.1.1",
49
+ "npm-pkgbuild": "^18.1.2",
50
50
  "pacc": "^3.4.1",
51
51
  "pkg-dir": "^8.0.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "^22.15.3",
55
- "ava": "^6.2.0",
55
+ "ava": "^6.3.0",
56
56
  "c8": "^10.1.3",
57
57
  "documentation": "^14.0.3",
58
58
  "semantic-release": "^24.2.3",
@@ -161,7 +161,7 @@ export class BINDService extends ExtraSourceService {
161
161
  endpoints.push(new Endpoint(this, na, statisticsEndpoint));
162
162
  }
163
163
 
164
- return endpoints;
164
+ return filter ? endpoints.filter(filter) : endpoints;
165
165
  }
166
166
 
167
167
  get soaUpdates() {
@@ -264,7 +264,11 @@ export class BINDService extends ExtraSourceService {
264
264
  ].flat();
265
265
 
266
266
  if (acls.length) {
267
- await writeLines(join(configPackageDir, "etc/named"), `0-acl-${name}.conf`, acls);
267
+ await writeLines(
268
+ join(configPackageDir, "etc/named"),
269
+ `0-acl-${name}.conf`,
270
+ acls
271
+ );
268
272
  }
269
273
  if (forwarders.length || acls.length) {
270
274
  yield packageData;
@@ -306,7 +310,7 @@ export class BINDService extends ExtraSourceService {
306
310
  packageData.properties = {
307
311
  name: `named-zones-${name}-OUTFACING`,
308
312
  description: `outfacing zone definitions for ${names}`,
309
- replaces: [`named-foreign-zones-${name}`,`named-zones-${name}-FOREIGN`],
313
+ replaces: [`named-foreign-zones-${name}`, `named-zones-${name}-FOREIGN`],
310
314
  access: "private",
311
315
  hooks: {}
312
316
  };
@@ -536,11 +540,7 @@ export class BINDService extends ExtraSourceService {
536
540
  `(${[...this.soaUpdates].join(" ")})`
537
541
  );
538
542
 
539
- const NSRecord = DNSRecord(
540
- "@",
541
- "NS",
542
- dnsFullName(nameService.address())
543
- );
543
+ const NSRecord = DNSRecord("@", "NS", dnsFullName(nameService.address()));
544
544
 
545
545
  return [SOARecord, NSRecord];
546
546
  }
@@ -60,7 +60,7 @@ export class DHCPService extends Service {
60
60
  endpoints.push(new Endpoint(this, na, ddnsEndpoint));
61
61
  }
62
62
 
63
- return endpoints;
63
+ return filter ? endpoints.filter(filter) : endpoints;
64
64
  }
65
65
 
66
66
  async *preparePackages(dir) {