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 +1 -1
- package/src/owner.mjs +18 -2
- package/types/owner.d.mts +1 -0
package/package.json
CHANGED
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