pmcf 6.31.4 → 6.32.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": "6.31.4",
3
+ "version": "6.32.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -695,6 +695,10 @@ export class bind extends CoreService {
695
695
  type: networkAddressType,
696
696
  deferredExpression: true
697
697
  },
698
+ serverType: {
699
+ ...string_attribute_writable,
700
+ name: "serverType"
701
+ },
698
702
  keys: {
699
703
  ...default_collection_attribute_writable,
700
704
  name: "keys",
@@ -762,8 +766,19 @@ export class bind extends CoreService {
762
766
  acls = new Map();
763
767
  groups = new Map();
764
768
 
769
+ set serverType(value) {
770
+ //console.log("SET SERVERTYPE", this.fullName, value);
771
+ this._serverType = value;
772
+ }
773
+
765
774
  get serverType() {
766
- return this.primaries ? "secondary" : "primary";
775
+ /*console.log(
776
+ "GET SERVERTYPE",
777
+ this.fullName,
778
+ this._serverType ?? (this.primaries ? "secondary" : "primary")
779
+ );*/
780
+
781
+ return this._serverType ?? (this.primaries ? "secondary" : "primary");
767
782
  }
768
783
 
769
784
  async writeForwarders(outputControl) {