pmcf 2.39.1 → 2.39.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.39.1",
3
+ "version": "2.39.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,7 +44,7 @@
44
44
  "pkg-dir": "^8.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@types/node": "^22.14.1",
47
+ "@types/node": "^22.15.0",
48
48
  "ava": "^6.2.0",
49
49
  "c8": "^10.1.3",
50
50
  "documentation": "^14.0.3",
package/src/module.mjs CHANGED
@@ -17,7 +17,7 @@ export * from "./host.mjs";
17
17
  export * from "./service.mjs";
18
18
  export * from "./extra-source-service.mjs";
19
19
  export * from "./endpoint.mjs";
20
- export * from "./services/dns.mjs";
20
+ export * from "./services/bind.mjs";
21
21
  export * from "./services/ntp.mjs";
22
22
  export * from "./services/dhcp.mjs";
23
23
  export * from "./services/systemd-journal.mjs";
package/src/service.mjs CHANGED
@@ -14,6 +14,7 @@ const ServiceTypes = {
14
14
  extends: ["https"]
15
15
  },
16
16
  ntp: { endpoints: [{ protocol: "udp", port: 123, tls: false }] },
17
+ //bind: { extends: ["dns"] },
17
18
  dns: { endpoints: [{ protocol: "udp", port: 53, tls: false }] },
18
19
  ldap: { endpoints: [{ protocol: "tcp", port: 389, tls: false }] },
19
20
  ldaps: { endpoints: [{ protocol: "tcp", port: 636, tls: true }] },
@@ -22,7 +22,7 @@ import { addHook } from "../hooks.mjs";
22
22
 
23
23
  const address_types = ["network", "host", "network_interface"];
24
24
 
25
- const DNSServiceTypeDefinition = {
25
+ const BINDServiceTypeDefinition = {
26
26
  name: "dns",
27
27
  specializationOf: ServiceTypeDefinition,
28
28
  owners: ServiceTypeDefinition.owners,
@@ -107,7 +107,7 @@ function addressesStatement(prefix, objects, generateEmpty = false) {
107
107
  return [];
108
108
  }
109
109
 
110
- export class DNSService extends ExtraSourceService {
110
+ export class BINDService extends ExtraSourceService {
111
111
  allowedUpdates = [];
112
112
  recordTTL = "1W";
113
113
  hasSVRRecords = true;
@@ -132,23 +132,23 @@ export class DNSService extends ExtraSourceService {
132
132
  }
133
133
 
134
134
  static get typeDefinition() {
135
- return DNSServiceTypeDefinition;
135
+ return BINDServiceTypeDefinition;
136
136
  }
137
137
 
138
138
  constructor(owner, data) {
139
139
  super(owner, data);
140
- this.read(data, DNSServiceTypeDefinition);
140
+ this.read(data, BINDServiceTypeDefinition);
141
141
  }
142
142
 
143
143
  get type() {
144
- return DNSServiceTypeDefinition.name;
144
+ return BINDServiceTypeDefinition.name;
145
145
  }
146
146
 
147
147
  endpoints(filter) {
148
148
  const endpoints = super.endpoints(filter);
149
149
 
150
150
  for (const na of this.owner.networkAddresses(
151
- na => na.networkInterface.kind === "localhost"
151
+ na => na.networkInterface.kind === "loopback"
152
152
  )) {
153
153
  endpoints.push(new Endpoint(this, na, rdncEndpoint));
154
154
  endpoints.push(new Endpoint(this, na, statisticsEndpoint));
@@ -17,7 +17,7 @@ export * from "./host.mjs";
17
17
  export * from "./service.mjs";
18
18
  export * from "./extra-source-service.mjs";
19
19
  export * from "./endpoint.mjs";
20
- export * from "./services/dns.mjs";
20
+ export * from "./services/bind.mjs";
21
21
  export * from "./services/ntp.mjs";
22
22
  export * from "./services/dhcp.mjs";
23
23
  export * from "./services/systemd-journal.mjs";
@@ -1,4 +1,4 @@
1
- export class DNSService extends ExtraSourceService {
1
+ export class BINDService extends ExtraSourceService {
2
2
  static get typeDefinition(): {
3
3
  name: string;
4
4
  specializationOf: {