pmcf 4.19.1 → 4.19.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/bin/pmcf-diagram CHANGED
@@ -46,7 +46,7 @@ for await (const network of location.networks) {
46
46
  }
47
47
  }
48
48
 
49
- for await (const cluster of location.clusters()) {
49
+ for await (const cluster of location.clusters) {
50
50
  console.log(` subgraph cluster_${cluster.name} {`);
51
51
 
52
52
  for (const ni of cluster.members) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "4.19.1",
3
+ "version": "4.19.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/base.mjs CHANGED
@@ -515,6 +515,11 @@ export class Base {
515
515
  });
516
516
  }
517
517
 
518
+ get services()
519
+ {
520
+ return this.owner?.services;
521
+ }
522
+
518
523
  /**
519
524
  *
520
525
  * @param {any} filter
@@ -630,7 +635,7 @@ export class Base {
630
635
  }
631
636
 
632
637
  get tags() {
633
- return this._tags;
638
+ return this.extends.reduce((a, c) => a.union(c.tags), this._tags);
634
639
  }
635
640
 
636
641
  set tags(value) {
package/src/cluster.mjs CHANGED
@@ -76,7 +76,7 @@ export class Cluster extends Host {
76
76
  }
77
77
 
78
78
  async *preparePackages(stagingDir) {
79
- for (const ni of [...this.owner.clusters()].reduce(
79
+ for (const ni of [...this.owner.clusters].reduce(
80
80
  (all, cluster) => all.union(cluster.members),
81
81
  new Set()
82
82
  )) {
@@ -117,7 +117,7 @@ export class Cluster extends Host {
117
117
  ""
118
118
  ];
119
119
 
120
- for (const cluster of [...this.owner.clusters()].sort((a, b) =>
120
+ for (const cluster of [...this.owner.clusters].sort((a, b) =>
121
121
  a.name.localeCompare(b.name)
122
122
  )) {
123
123
  cfg.push(`vrrp_instance ${cluster.name} {`);
package/src/owner.mjs CHANGED
@@ -258,7 +258,7 @@ export class Owner extends Base {
258
258
  return this.typeNamed("cluster", name);
259
259
  }
260
260
 
261
- clusters() {
261
+ get clusters() {
262
262
  return this.typeList("cluster");
263
263
  }
264
264
 
package/types/base.d.mts CHANGED
@@ -117,6 +117,7 @@ export class Base {
117
117
  * @returns {any}
118
118
  */
119
119
  expression(expression: string, options: object): any;
120
+ get services(): any;
120
121
  /**
121
122
  *
122
123
  * @param {any} filter
@@ -150,8 +151,8 @@ export class Base {
150
151
  * @returns {AsyncIterable<ContentProvider>}
151
152
  */
152
153
  templateContent(entryProperties: any, directoryProperties: any): AsyncIterable<ContentProvider>;
153
- set tags(value: Set<any>);
154
- get tags(): Set<any>;
154
+ set tags(value: any);
155
+ get tags(): any;
155
156
  get isTemplate(): any;
156
157
  valueFor(name: any, at: any): any;
157
158
  get properties(): any;
package/types/owner.d.mts CHANGED
@@ -204,7 +204,7 @@ export class Owner extends Base {
204
204
  addSubnet(address: any): any;
205
205
  subnetForAddress(address: any): any;
206
206
  clusterNamed(name: any): any;
207
- clusters(): any;
207
+ get clusters(): any;
208
208
  get bridges(): Set<any>;
209
209
  addBridge(network: any, destinationNetworks: any): any;
210
210
  _resolveBridges(): void;