pmcf 6.65.0 → 6.65.2

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/README.md CHANGED
@@ -96,6 +96,7 @@ generates config packages for:
96
96
  * [Properties](#properties-1)
97
97
  * [systemdConfigs](#systemdconfigs-1)
98
98
  * [Parameters](#parameters-18)
99
+ * [priority](#priority-1)
99
100
  * [NetworkAddress](#networkaddress)
100
101
  * [Parameters](#parameters-19)
101
102
  * [subnet](#subnet)
@@ -373,6 +374,10 @@ Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
373
374
 
374
375
  Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
375
376
 
377
+ ## priority
378
+
379
+ Returns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** 
380
+
376
381
  ## NetworkAddress
377
382
 
378
383
  ### Parameters
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.65.0",
3
+ "version": "6.65.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -67,7 +67,7 @@
67
67
  "semantic-release": "^25.0.9"
68
68
  },
69
69
  "engines": {
70
- "node": ">=26.9.0"
70
+ "node": ">=26.10.0"
71
71
  },
72
72
  "repository": {
73
73
  "type": "git",
package/src/base.mjs CHANGED
@@ -109,6 +109,10 @@ export class base extends core {
109
109
  return this.owner?.network;
110
110
  }
111
111
 
112
+ get smtpServer() {
113
+ return this.owner?.smtpServer;
114
+ }
115
+
112
116
  get domain() {
113
117
  return this.owner?.domain;
114
118
  }
@@ -177,10 +181,6 @@ export class base extends core {
177
181
  return this._priority ?? this.owner?.priority;
178
182
  }
179
183
 
180
- get smtp() {
181
- return this.expression("services[types[smtp]][0]");
182
- }
183
-
184
184
  get services() {
185
185
  return this.owner?.services || new Map();
186
186
  }
package/src/owner.mjs CHANGED
@@ -33,6 +33,11 @@ export class owner extends ServiceOwner {
33
33
  networkInterfaces: networkInterfaces_attribute,
34
34
  owners: owners_attribute,
35
35
  country: { ...string_attribute_writable, name: "country" },
36
+ smtpServer: {
37
+ ...string_attribute_writable,
38
+ name: "smtpServer",
39
+ deferredExpression: true
40
+ },
36
41
  domain: { ...string_attribute_writable, name: "domain" },
37
42
  domains: { ...string_set_attribute_writable, name: "domains" },
38
43
  timezone: { ...string_attribute_writable, name: "timezone" },
@@ -92,10 +92,10 @@ export class keepalived extends CoreService {
92
92
 
93
93
  const extra = [];
94
94
 
95
- const smtp = this.smtp;
95
+ const smtpServer = this.smtpServer;
96
96
 
97
- if (smtp) {
98
- extra.push(` smtp_server ${smtp.address()}`);
97
+ if (smtpServer) {
98
+ extra.push(` smtp_server ${smtpServer.address}`);
99
99
  }
100
100
 
101
101
  const cfg = [