pmcf 1.80.2 → 1.81.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.80.2",
3
+ "version": "1.81.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/owner.mjs CHANGED
@@ -382,7 +382,6 @@ export class Owner extends Base {
382
382
  return this.#domain || this.owner?.domain;
383
383
  }
384
384
 
385
-
386
385
  get domains() {
387
386
  let domains = new Set();
388
387
 
@@ -408,4 +407,14 @@ export class Owner extends Base {
408
407
  return domains;
409
408
  }
410
409
  */
410
+
411
+ get domainNames() {
412
+ let names = new Set();
413
+
414
+ for (const host of this.hosts()) {
415
+ names = names.union(new Set(host.domainNames));
416
+ }
417
+
418
+ return names;
419
+ }
411
420
  }
package/types/owner.d.mts CHANGED
@@ -237,6 +237,7 @@ export class Owner extends Base {
237
237
  get domain(): any;
238
238
  get domains(): Set<any>;
239
239
  get localDomains(): Set<any>;
240
+ get domainNames(): Set<any>;
240
241
  #private;
241
242
  }
242
243
  import { Base } from "./base.mjs";