pmcf 1.42.0 → 1.42.1

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.42.0",
3
+ "version": "1.42.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/owner.mjs CHANGED
@@ -106,9 +106,9 @@ export class Owner extends Base {
106
106
  this._addObject(object.typeName, object.fullName, object);
107
107
  }
108
108
 
109
- async service(filter) {
109
+ service(filter) {
110
110
  let best;
111
- for await (const service of this.services(filter)) {
111
+ for (const service of this.services(filter)) {
112
112
  if (!best || service.priority < best.priority) {
113
113
  best = service;
114
114
  }
@@ -117,9 +117,9 @@ export class Owner extends Base {
117
117
  return best;
118
118
  }
119
119
 
120
- async *services(filter) {
121
- for await (const host of this.hosts()) {
122
- for await (const service of host.services(filter)) {
120
+ *services(filter) {
121
+ for (const host of this.hosts()) {
122
+ for (const service of host.services(filter)) {
123
123
  yield service;
124
124
  }
125
125
  }
@@ -245,8 +245,8 @@ export class Owner extends Base {
245
245
  }
246
246
  }
247
247
 
248
- async *networkAddresses() {
249
- for await (const host of this.hosts()) {
248
+ *networkAddresses() {
249
+ for (const host of this.hosts()) {
250
250
  for (const networkAddresses of host.networkAddresses()) {
251
251
  yield networkAddresses;
252
252
  }
package/types/owner.d.mts CHANGED
@@ -29,8 +29,8 @@ export class Owner extends Base {
29
29
  typeList(typeName: any): any;
30
30
  _addObject(typeName: any, fullName: any, object: any): void;
31
31
  addObject(object: any): void;
32
- service(filter: any): Promise<any>;
33
- services(filter: any): AsyncGenerator<any, void, unknown>;
32
+ service(filter: any): any;
33
+ services(filter: any): Generator<any, void, unknown>;
34
34
  locationNamed(name: any): any;
35
35
  locations(): any;
36
36
  hostNamed(name: any): any;
@@ -45,7 +45,7 @@ export class Owner extends Base {
45
45
  clusters(): any;
46
46
  addBridge(network: any, destinationNetworks: any): any;
47
47
  _resolveBridges(): void;
48
- networkAddresses(): AsyncGenerator<any, void, unknown>;
48
+ networkAddresses(): Generator<any, void, unknown>;
49
49
  domains(): Generator<any, void, unknown>;
50
50
  #private;
51
51
  }