pmcf 1.79.1 → 1.79.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": "1.79.1",
3
+ "version": "1.79.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/dns.mjs CHANGED
@@ -101,20 +101,23 @@ export class DNSService extends Base {
101
101
  }
102
102
 
103
103
  get systemdConfig() {
104
- return {
105
- DNS: serviceAddresses(this, {
106
- ...DNS_SERVICE_FILTER,
107
- priority: "<10"
108
- }).join(" "),
109
- FallbackDNS: serviceAddresses(this, {
110
- ...DNS_SERVICE_FILTER,
111
- priority: ">=10"
112
- }).join(" "),
113
- Domains: [...this.domains].join(" "),
114
- DNSSEC: "no",
115
- MulticastDNS: "yes",
116
- LLMNR: "no"
117
- };
104
+ return [
105
+ "Resolve",
106
+ {
107
+ DNS: serviceAddresses(this, {
108
+ ...DNS_SERVICE_FILTER,
109
+ priority: "<10"
110
+ }).join(" "),
111
+ FallbackDNS: serviceAddresses(this, {
112
+ ...DNS_SERVICE_FILTER,
113
+ priority: ">=10"
114
+ }).join(" "),
115
+ Domains: [...this.domains].join(" "),
116
+ DNSSEC: "no",
117
+ MulticastDNS: "yes",
118
+ LLMNR: "no"
119
+ }
120
+ ];
118
121
  }
119
122
 
120
123
  async *preparePackages(stagingDir) {
@@ -133,9 +136,7 @@ export class DNSService extends Base {
133
136
 
134
137
  const options = [
135
138
  "forwarders {",
136
- ...serviceAddresses(this.source, DNS_SERVICE_FILTER).map(
137
- a => ` ${a};`
138
- ),
139
+ ...serviceAddresses(this.source, DNS_SERVICE_FILTER).map(a => ` ${a};`),
139
140
  "};"
140
141
  ];
141
142
  await writeLines(join(p1, "etc/named.d/options"), `${name}.conf`, options);
package/src/location.mjs CHANGED
@@ -11,7 +11,6 @@ const LocationTypeDefinition = {
11
11
  priority: 1.0,
12
12
  extends: Owner.typeDefinition,
13
13
  properties: {
14
- country: { type: "string", writeable: true },
15
14
  locales: { type: "string", collection: true, writeable: true }
16
15
  }
17
16
  };
@@ -55,7 +54,7 @@ export class Location extends Owner {
55
54
  await writeLines(
56
55
  join(stagingDir, "etc/systemd/resolved.conf.d"),
57
56
  `${this.name}.conf`,
58
- sectionLines("Resolve", this.dns.systemdConfig)
57
+ sectionLines(...this.dns.systemdConfig)
59
58
  );
60
59
 
61
60
  await writeLines(
@@ -71,7 +70,7 @@ export class Location extends Owner {
71
70
  await writeLines(
72
71
  join(stagingDir, "etc/systemd/timesyncd.conf.d"),
73
72
  `${this.name}.conf`,
74
- sectionLines("Time", this.ntp.systemdConfig)
73
+ sectionLines(...this.ntp.systemdConfig)
75
74
  );
76
75
 
77
76
  const locationDir = join(stagingDir, "etc", "location");
package/src/ntp.mjs CHANGED
@@ -51,15 +51,18 @@ export class NTPService extends Base {
51
51
  }
52
52
 
53
53
  get systemdConfig() {
54
- return {
55
- NTP: serviceAddresses(
56
- this,
57
- {
58
- ...NTP_SERVICE_FILTER,
59
- priority: "<20"
60
- },
61
- "domainName"
62
- ).join(" ")
63
- };
54
+ return [
55
+ "Time",
56
+ {
57
+ NTP: serviceAddresses(
58
+ this,
59
+ {
60
+ ...NTP_SERVICE_FILTER,
61
+ priority: "<20"
62
+ },
63
+ "domainName"
64
+ ).join(" ")
65
+ }
66
+ ];
64
67
  }
65
68
  }
package/types/dns.d.mts CHANGED
@@ -83,14 +83,14 @@ export class DNSService extends Base {
83
83
  get trusted(): any[];
84
84
  set source(value: any[]);
85
85
  get source(): any[];
86
- get systemdConfig(): {
86
+ get systemdConfig(): (string | {
87
87
  DNS: string;
88
88
  FallbackDNS: string;
89
89
  Domains: string;
90
90
  DNSSEC: string;
91
91
  MulticastDNS: string;
92
92
  LLMNR: string;
93
- };
93
+ })[];
94
94
  preparePackages(stagingDir: any): AsyncGenerator<{
95
95
  sources: AsyncGenerator<any, void, unknown>[];
96
96
  outputs: Set<typeof import("npm-pkgbuild").ARCH | typeof import("npm-pkgbuild").DOCKER>;
@@ -401,10 +401,6 @@ export class Location extends Owner {
401
401
  };
402
402
  };
403
403
  properties: {
404
- country: {
405
- type: string;
406
- writeable: boolean;
407
- };
408
404
  locales: {
409
405
  type: string;
410
406
  collection: boolean;
package/types/ntp.d.mts CHANGED
@@ -13,9 +13,9 @@ export class NTPService extends Base {
13
13
  };
14
14
  set source(value: any[]);
15
15
  get source(): any[];
16
- get systemdConfig(): {
16
+ get systemdConfig(): (string | {
17
17
  NTP: string;
18
- };
18
+ })[];
19
19
  #private;
20
20
  }
21
21
  import { Base } from "./base.mjs";
package/types/root.d.mts CHANGED
@@ -405,10 +405,6 @@ export class Root extends Location {
405
405
  };
406
406
  };
407
407
  properties: {
408
- country: {
409
- type: string;
410
- writeable: boolean;
411
- };
412
408
  locales: {
413
409
  type: string;
414
410
  collection: boolean;