pmcf 1.103.0 → 1.103.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 +1 -1
- package/src/base.mjs +0 -1
- package/src/location.mjs +2 -2
- package/src/services/dns.mjs +8 -1
- package/src/services/ntp.mjs +1 -1
- package/types/base.d.mts +1 -1
package/package.json
CHANGED
package/src/base.mjs
CHANGED
package/src/location.mjs
CHANGED
|
@@ -68,7 +68,7 @@ export class Location extends Owner {
|
|
|
68
68
|
await writeLines(
|
|
69
69
|
join(dir, "etc/systemd/resolved.conf.d"),
|
|
70
70
|
`${this.name}.conf`,
|
|
71
|
-
sectionLines(...this.findService({type: "dns"}).systemdConfig)
|
|
71
|
+
sectionLines(...this.findService({ type: "dns" }).systemdConfig)
|
|
72
72
|
);
|
|
73
73
|
|
|
74
74
|
await writeLines(
|
|
@@ -84,7 +84,7 @@ export class Location extends Owner {
|
|
|
84
84
|
await writeLines(
|
|
85
85
|
join(dir, "etc/systemd/timesyncd.conf.d"),
|
|
86
86
|
`${this.name}.conf`,
|
|
87
|
-
sectionLines(...this.findService({type: "ntp"}).systemdConfig)
|
|
87
|
+
sectionLines(...this.findService({ type: "ntp" }).systemdConfig)
|
|
88
88
|
);
|
|
89
89
|
|
|
90
90
|
const locationDir = join(dir, "etc", "location");
|
package/src/services/dns.mjs
CHANGED
|
@@ -143,7 +143,7 @@ export class DNSService extends Service {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
*findServices(filter) {
|
|
146
|
-
yield* this.owner.findServices(filter);
|
|
146
|
+
yield* this.owner.owner.findServices(filter);
|
|
147
147
|
|
|
148
148
|
for (const s of this.source) {
|
|
149
149
|
yield* s.findServices(filter);
|
|
@@ -151,6 +151,13 @@ export class DNSService extends Service {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
get systemdConfig() {
|
|
154
|
+
/* console.log([
|
|
155
|
+
...this.findServices({
|
|
156
|
+
...DNS_SERVICE_FILTER,
|
|
157
|
+
priority: "<10"
|
|
158
|
+
})
|
|
159
|
+
].map((s)=>`${s.owner.name}[${s.priority}]`));
|
|
160
|
+
*/
|
|
154
161
|
return [
|
|
155
162
|
"Resolve",
|
|
156
163
|
{
|
package/src/services/ntp.mjs
CHANGED
package/types/base.d.mts
CHANGED
|
@@ -54,7 +54,6 @@ export class Base {
|
|
|
54
54
|
owner: any;
|
|
55
55
|
description: any;
|
|
56
56
|
name: string;
|
|
57
|
-
_priority: any;
|
|
58
57
|
_tags: Set<any>;
|
|
59
58
|
_packaging: Set<any>;
|
|
60
59
|
_directory: any;
|
|
@@ -81,6 +80,7 @@ export class Base {
|
|
|
81
80
|
get timezone(): any;
|
|
82
81
|
set priority(value: any);
|
|
83
82
|
get priority(): any;
|
|
83
|
+
_priority: any;
|
|
84
84
|
get smtp(): any;
|
|
85
85
|
findService(filter: any): any;
|
|
86
86
|
findServices(filter: any): Generator<any, void, any>;
|