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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "1.103.0",
3
+ "version": "1.103.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/base.mjs CHANGED
@@ -33,7 +33,6 @@ export class Base {
33
33
  owner;
34
34
  description;
35
35
  name;
36
- _priority;
37
36
  _tags = new Set();
38
37
  _packaging = new Set();
39
38
  _directory;
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");
@@ -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
  {
@@ -45,7 +45,7 @@ export class NTPService extends Service {
45
45
  }
46
46
 
47
47
  *findServices(filter) {
48
- yield* this.owner.findServices(filter);
48
+ yield* this.owner.owner.findServices(filter);
49
49
 
50
50
  for (const s of this.source) {
51
51
  yield* s.findServices(filter);
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>;