pmcf 4.18.0 → 4.18.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.18.0",
3
+ "version": "4.18.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/base.mjs CHANGED
@@ -131,7 +131,11 @@ export class Base {
131
131
 
132
132
  switch (typeof current) {
133
133
  case "undefined":
134
- this[name] = asArray(value);
134
+ if (attribute.constructor === value.constructor) {
135
+ this[name] = value;
136
+ } else {
137
+ this[name] = asArray(value);
138
+ }
135
139
  break;
136
140
  case "object":
137
141
  if (Array.isArray(current)) {
@@ -574,7 +578,7 @@ export class Base {
574
578
  name: `${this.typeName}-${this.owner.name}-${this.name}`,
575
579
  access: "private",
576
580
  dependencies: this.depends,
577
- groups: [this.type]
581
+ groups: [this.typeName]
578
582
  }
579
583
  };
580
584
  }
@@ -26,10 +26,7 @@ class ALPMRepository extends Base {
26
26
 
27
27
  static get typeDefinition() {
28
28
  return ALPMRepositoryTypeDefinition;
29
- }
30
-
31
- architectures = new Set();
32
-
29
+ }
33
30
  }
34
31
 
35
32
  const ALPMServiceTypeDefinition = {