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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "2.35.3",
3
+ "version": "2.35.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
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 ? [...res].join(options.join) : res;
321
+ return options.join ? res.join(options.join) : res;
322
322
  }
@@ -214,7 +214,7 @@ export class DNSService extends ExtraSourceService {
214
214
  select: e => e.address
215
215
  });
216
216
 
217
- if (forwarders.size) {
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.size || acls.length) {
237
+ if (forwarders.length || acls.length) {
238
238
  yield packageData;
239
239
  }
240
240
 
@@ -1,4 +1,4 @@
1
- export function serviceEndpoints(sources: any, options?: {}): string | Set<any>;
1
+ export function serviceEndpoints(sources: any, options?: {}): string | any[];
2
2
  export namespace endpointProperties {
3
3
  export namespace port {
4
4
  let type: string;
@@ -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 | Set<any>;
251
- FallbackDNS: string | Set<any>;
250
+ DNS: string | any[];
251
+ FallbackDNS: string | any[];
252
252
  Domains: string;
253
253
  DNSSEC: string;
254
254
  MulticastDNS: string;
@@ -247,7 +247,7 @@ export class SystemdTimesyncdService extends ExtraSourceService {
247
247
  systemdConfig(name: any): {
248
248
  name: string;
249
249
  content: (string | {
250
- NTP: string | Set<any>;
250
+ NTP: string | any[];
251
251
  })[];
252
252
  };
253
253
  }