pmcf 4.0.1 → 4.0.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": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/base.mjs CHANGED
@@ -210,8 +210,9 @@ export class Base {
210
210
  this.error(
211
211
  "Not found",
212
212
  name,
213
- attribute.type?.map && attribute.type.map(t => t.name),
214
- value
213
+ value, "of", attribute.type.name,
214
+ this.root.named(value)?.type,
215
+ attribute.type?.map && attribute.type.map(t => t.name)
215
216
  );
216
217
  });
217
218
  }
package/src/service.mjs CHANGED
@@ -119,6 +119,10 @@ export class Service extends Base {
119
119
  return this.host.subnets;
120
120
  }
121
121
 
122
+ get services() {
123
+ return [this];
124
+ }
125
+
122
126
  get serviceTypeEndpoints() {
123
127
  return serviceTypeEndpoints(ServiceTypes[this.type]);
124
128
  }
@@ -614,6 +614,7 @@ export class Service extends Base {
614
614
  get domainName(): string;
615
615
  get networks(): Set<any>;
616
616
  get subnets(): Set<any>;
617
+ get services(): this[];
617
618
  get serviceTypeEndpoints(): any;
618
619
  endpoints(filter: any): (UnixEndpoint | HTTPEndpoint | Endpoint | DomainNameEndpoint)[];
619
620
  endpoint(filter: any): UnixEndpoint | HTTPEndpoint | Endpoint | DomainNameEndpoint;