pmcf 4.18.3 → 4.18.4

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.18.3",
3
+ "version": "4.18.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/base.mjs CHANGED
@@ -160,7 +160,8 @@ export class Base {
160
160
  this[name] = value;
161
161
  }
162
162
  } else {
163
- this.error("Unknown collection type", name, current);
163
+ const keyName = attribute.type.key;
164
+ this[name][value[keyName]] = value;
164
165
  }
165
166
  }
166
167
  break;
@@ -497,7 +498,7 @@ export class Base {
497
498
  }
498
499
 
499
500
  get smtp() {
500
- return this.findService('type="smtp"');
501
+ return this.findService('in("smtp",types)');
501
502
  }
502
503
 
503
504
  /**
@@ -11,7 +11,7 @@ const PostfixServiceTypeDefinition = {
11
11
  attributes: {},
12
12
  service: {
13
13
  systemdService: "postfix.service",
14
- extends: ["smtp", "lmpt", "submission"],
14
+ extends: ["smtp", "lmtp", "submission"],
15
15
  services: {}
16
16
  }
17
17
  };