pmcf 6.3.8 → 6.3.9

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": "6.3.8",
3
+ "version": "6.3.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -9,7 +9,8 @@ import {
9
9
  import {
10
10
  string_attribute_writable,
11
11
  number_attribute_writable,
12
- boolean_attribute_writable_true
12
+ boolean_attribute_writable_true,
13
+ extendingAttributeIterator
13
14
  } from "pacc";
14
15
  import {
15
16
  addType,
@@ -22,8 +23,6 @@ import {
22
23
  } from "pmcf";
23
24
  import { writeLines } from "../utils.mjs";
24
25
 
25
- const keaVersion = "3.0.1";
26
-
27
26
  export class kea extends CoreService {
28
27
  static attributes = {
29
28
  "ddns-send-updates": {
@@ -262,10 +261,14 @@ export class kea extends CoreService {
262
261
  ]
263
262
  };
264
263
 
265
- for (const [key] of Object.entries(KeaService.attributes).filter(
266
- ([key, attribute]) => attribute.configurable && this[key] !== undefined
264
+ for (const [path, attribute] of extendingAttributeIterator(
265
+ this.constructor,
266
+ attribute =>
267
+ attribute.configurable && this[attribute.name] !== undefined
267
268
  )) {
268
- cfg[key] = this[key];
269
+ const name = path.join(".");
270
+
271
+ cfg[name] = this[name];
269
272
  }
270
273
 
271
274
  return cfg;