pmcf 4.13.0 → 4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "4.13.0",
3
+ "version": "4.13.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/dns-utils.mjs CHANGED
@@ -20,7 +20,8 @@ export function sortZoneRecords(a, b) {
20
20
  return order;
21
21
  }
22
22
 
23
- const numSortable = (record) => record.type === "PTR" && record.key.indexOf(".arpa") > 0 && record.key.indexOf("zones") < 0;
23
+ const numSortable = record =>
24
+ record.type === "PTR" && record.key.indexOf(".arpa") > 0;
24
25
 
25
26
  if (numSortable(a) && numSortable(b)) {
26
27
  const toNum = key => {
@@ -565,7 +565,7 @@ export class BindService extends ExtraSourceService {
565
565
  file: `${directory}/catalog.${name}.zone`,
566
566
  records: new Set([
567
567
  ...this.defaultRecords,
568
- DNSRecord(dnsFullName(`version.catalog.${name}`), "TXT", '"2"')
568
+ DNSRecord("version", "TXT", '"2"')
569
569
  ])
570
570
  };
571
571
  outputControl.catalogs.set(directory, catalogZone);
@@ -582,7 +582,7 @@ export class BindService extends ExtraSourceService {
582
582
 
583
583
  const hash = createHmac("sha1", zone.id).digest("hex");
584
584
  catalogZone.records.add(
585
- DNSRecord(`${hash}.zones.${zone.id}.`, "PTR", dnsFullName(zone.id))
585
+ DNSRecord(`${hash}.zones`, "PTR", dnsFullName(zone.id))
586
586
  );
587
587
 
588
588
  return catalogZone;