pmcf 2.35.3 → 2.35.4
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
package/src/service.mjs
CHANGED
|
@@ -316,7 +316,7 @@ export function serviceEndpoints(sources, options = {}) {
|
|
|
316
316
|
.map(service => service.endpoints(options.endpoints))
|
|
317
317
|
.flat();
|
|
318
318
|
|
|
319
|
-
const res = new Set(options.select ? all.map(options.select) : all);
|
|
319
|
+
const res = [...new Set(options.select ? all.map(options.select) : all)];
|
|
320
320
|
|
|
321
|
-
return options.join ?
|
|
321
|
+
return options.join ? res.join(options.join) : res;
|
|
322
322
|
}
|
package/src/services/dns.mjs
CHANGED
|
@@ -214,7 +214,7 @@ export class DNSService extends ExtraSourceService {
|
|
|
214
214
|
select: e => e.address
|
|
215
215
|
});
|
|
216
216
|
|
|
217
|
-
if (forwarders.
|
|
217
|
+
if (forwarders.length) {
|
|
218
218
|
await writeLines(
|
|
219
219
|
join(p1, "etc/named/options"),
|
|
220
220
|
`forwarders.conf`,
|
|
@@ -234,7 +234,7 @@ export class DNSService extends ExtraSourceService {
|
|
|
234
234
|
if (acls.length) {
|
|
235
235
|
await writeLines(join(p1, "etc/named"), `0-acl-${name}.conf`, acls);
|
|
236
236
|
}
|
|
237
|
-
if (forwarders.
|
|
237
|
+
if (forwarders.length || acls.length) {
|
|
238
238
|
yield packageData;
|
|
239
239
|
}
|
|
240
240
|
|
package/types/service.d.mts
CHANGED
|
@@ -247,8 +247,8 @@ export class SystemdResolvedService extends ExtraSourceService {
|
|
|
247
247
|
systemdConfig(name: any): {
|
|
248
248
|
name: string;
|
|
249
249
|
content: (string | {
|
|
250
|
-
DNS: string |
|
|
251
|
-
FallbackDNS: string |
|
|
250
|
+
DNS: string | any[];
|
|
251
|
+
FallbackDNS: string | any[];
|
|
252
252
|
Domains: string;
|
|
253
253
|
DNSSEC: string;
|
|
254
254
|
MulticastDNS: string;
|