pmcf 6.49.0 → 6.49.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.49.0",
3
+ "version": "6.49.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,6 +1,7 @@
1
1
  import { AggregatedMap } from "aggregated-map";
2
- import { addType, asArray } from "pacc";
3
- import { host } from "pmcf";
2
+ import { asArray } from "pacc";
3
+ import { host } from "../host.mjs";
4
+ import { addType } from "../type.mjs";
4
5
  import { ServiceOwner } from "../service-owner.mjs";
5
6
 
6
7
  /**
@@ -1,5 +1,5 @@
1
- import { addType } from "pacc";
2
1
  import { SUBNET_LOCALHOST_IPV4, SUBNET_LOCALHOST_IPV6 } from "pmcf";
2
+ import { addType } from "../type.mjs";
3
3
  import { SkeletonNetworkInterface } from "./skeleton-network-interface.mjs";
4
4
  import { NetworkInterface } from "./network-interface.mjs";
5
5
 
@@ -1,11 +1,15 @@
1
- import { addType } from "pacc";
1
+ import { number_attribute_writable } from "pacc";
2
+ import { addType } from "../type.mjs";
2
3
  import { Interface } from "./interface.mjs";
3
4
 
4
5
  export class modbus extends Interface {
6
+ static attributes = {
7
+ address: { number_attribute_writable, name: "address" }
8
+ };
9
+
5
10
  static commonNamePattern = /^modbus\d*$/;
6
11
 
7
12
  static {
8
13
  addType(this);
9
14
  }
10
-
11
15
  }
@@ -4,7 +4,8 @@ import {
4
4
  default_collection_attribute_writable
5
5
  } from "pacc";
6
6
  import { network_attribute } from "../common-attributes.mjs";
7
- import { host, cidrAddresses, addType } from "pmcf";
7
+ import { host, cidrAddresses } from "pmcf";
8
+ import { addType } from "../type.mjs";
8
9
  import {
9
10
  networkAttributes,
10
11
  networkAddressAttributes,
@@ -1,6 +1,6 @@
1
1
  import { join } from "node:path";
2
- import { addType } from "pacc";
3
2
  import { writeLines, sectionLines } from "../utils.mjs";
3
+ import { addType } from "../type.mjs";
4
4
  import { NetworkAddress, cidrAddresses } from "pmcf";
5
5
  import { Interface } from "./interface.mjs";
6
6
 
@@ -368,16 +368,16 @@ class bind_view extends bind_object {
368
368
  type: bind_view
369
369
  },
370
370
  notify: { ...boolean_attribute_writable_false, name: "notify" },
371
- hasForeignDomains: {
371
+ hasCatalog: { ...boolean_attribute_writable_false, name: "hasCatalog" },
372
+ hasForeignDomainRecords: {
372
373
  ...boolean_attribute_writable_false,
373
- name: "hasForeignDomains"
374
+ name: "hasForeignDomainRecords"
374
375
  },
375
376
  hasBaseRecords: {
376
377
  ...boolean_attribute_writable_true,
377
378
  name: "hasBaseRecords"
378
379
  },
379
- hasCatalog: { ...boolean_attribute_writable_false, name: "hasCatalog" },
380
- hasReverse: { ...boolean_attribute_writable_false, name: "hasReverse" },
380
+ hasReverseRecords: { ...boolean_attribute_writable_false, name: "hasReverseRecords" },
381
381
  hasSVRRecords: {
382
382
  ...boolean_attribute_writable_false,
383
383
  name: "hasSVRRecords"
@@ -416,12 +416,12 @@ class bind_view extends bind_object {
416
416
  hasSVRRecords = true;
417
417
  recordTTL = "1W";
418
418
 
419
- set hasForeignDomains(value) {
420
- this._hasForeignDomains = value;
419
+ set hasForeignDomainRecords(value) {
420
+ this._hasForeignDomainRecords = value;
421
421
  }
422
422
 
423
- get hasForeignDomains() {
424
- return this.attribute("_hasForeignDomains");
423
+ get hasForeignDomainRecords() {
424
+ return this.attribute("_hasForeignDomainRecords");
425
425
  }
426
426
 
427
427
  set hasBaseRecords(value) {
@@ -432,12 +432,12 @@ class bind_view extends bind_object {
432
432
  return this.attribute("_hasBaseRecords");
433
433
  }
434
434
 
435
- set hasReverse(value) {
436
- this._hasReverse = value;
435
+ set hasReverseRecords(value) {
436
+ this._hasReverseRecords = value;
437
437
  }
438
438
 
439
- get hasReverse() {
440
- return this.attribute("_hasReverse");
439
+ get hasReverseRecords() {
440
+ return this.attribute("_hasReverseRecords");
441
441
  }
442
442
 
443
443
  set hasCatalog(value) {
@@ -558,7 +558,7 @@ class bind_view extends bind_object {
558
558
  );
559
559
 
560
560
  if (this.hasBaseRecords) {
561
- if (this.hasReverse && na.subnet.prefix) {
561
+ if (this.hasReverseRecords && na.subnet.prefix) {
562
562
  let subnet;
563
563
 
564
564
  for (const s of subnets) {
@@ -586,7 +586,7 @@ class bind_view extends bind_object {
586
586
  if (!hosts.has(host)) {
587
587
  hosts.add(host);
588
588
 
589
- if (this.hasForeignDomains) {
589
+ if (this.hasForeignDomainRecords) {
590
590
  for (let foreignDomain of host.foreignDomainNames) {
591
591
  const wildcard = foreignDomain.startsWith("*.");
592
592
  if (wildcard) {