pmcf 1.32.0 → 1.33.0

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.32.0",
3
+ "version": "1.33.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/owner.mjs CHANGED
@@ -14,7 +14,7 @@ export class Owner extends Base {
14
14
  return "owner";
15
15
  }
16
16
 
17
- constructor(owner, data={}) {
17
+ constructor(owner, data = {}) {
18
18
  super(owner, data);
19
19
 
20
20
  let dns;
@@ -324,7 +324,7 @@ export class Network extends Owner {
324
324
  }
325
325
  }
326
326
 
327
- this.error("no prefixLength",this.#ipAddresses);
327
+ this.error("no prefixLength", this.#ipAddresses);
328
328
  }
329
329
 
330
330
  get subnetAddress() {
@@ -342,6 +342,7 @@ export class Network extends Owner {
342
342
  ...super.propertyNames,
343
343
  "kind",
344
344
  "ipAddresses",
345
+ "subnet",
345
346
  "prefixLength",
346
347
  "scope",
347
348
  "metric",
@@ -368,4 +369,19 @@ export class Subnet extends Base {
368
369
  get address() {
369
370
  return this.name;
370
371
  }
372
+
373
+ get propertyNames() {
374
+ return [...super.propertyNames, "networks"];
375
+ }
376
+
377
+ _traverse(...args) {
378
+ if (super._traverse(...args)) {
379
+ for (const network of this.networks) {
380
+ network._traverse(...args);
381
+ }
382
+ return true;
383
+ }
384
+
385
+ return false;
386
+ }
371
387
  }
package/types/owner.d.mts CHANGED
@@ -45,6 +45,7 @@ export class Network extends Owner {
45
45
  export class Subnet extends Base {
46
46
  networks: Set<any>;
47
47
  get address(): any;
48
+ _traverse(...args: any[]): boolean;
48
49
  }
49
50
  import { Base } from "./base.mjs";
50
51
  import { DNSService } from "./dns.mjs";