pmcf 3.13.3 → 3.13.5

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": "3.13.3",
3
+ "version": "3.13.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/service.mjs CHANGED
@@ -282,10 +282,10 @@ export class Service extends Base {
282
282
  for (const service of this.findServices()) {
283
283
  if (service !== this) {
284
284
  const serviceType = ServiceTypes[service.type];
285
- if(!serviceType) {
285
+ /*if(!serviceType) {
286
286
  throw new Error(`Unknown service '${service.type}'`);
287
- }
288
- const r = serviceType.dnsRecord;
287
+ }*/
288
+ const r = serviceType?.dnsRecord;
289
289
 
290
290
  if (r?.type === dnsRecord.type) {
291
291
  parameters = dnsMergeParameters(parameters, r.parameters);
@@ -155,7 +155,7 @@ export class KeaService extends Service {
155
155
  console.log("kea", name, network.name);
156
156
 
157
157
  const dnsServerEndpoints = serviceEndpoints(network, {
158
- services: 'type="dns" && priority >= 300',
158
+ services: 'in("dns",types) && priority>=300',
159
159
  endpoints: endpoint => endpoint.networkInterface?.kind !== "loopback"
160
160
  });
161
161