pmcf 4.18.1 → 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.1",
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)) {
@@ -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 = {