pmcf 4.18.1 → 4.18.3
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 +1 -1
- package/src/base.mjs +5 -1
- package/src/services/alpm.mjs +8 -3
package/package.json
CHANGED
package/src/base.mjs
CHANGED
|
@@ -131,7 +131,11 @@ export class Base {
|
|
|
131
131
|
|
|
132
132
|
switch (typeof current) {
|
|
133
133
|
case "undefined":
|
|
134
|
-
|
|
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)) {
|
package/src/services/alpm.mjs
CHANGED
|
@@ -27,9 +27,6 @@ class ALPMRepository extends Base {
|
|
|
27
27
|
static get typeDefinition() {
|
|
28
28
|
return ALPMRepositoryTypeDefinition;
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
architectures = new Set();
|
|
32
|
-
|
|
33
30
|
}
|
|
34
31
|
|
|
35
32
|
const ALPMServiceTypeDefinition = {
|
|
@@ -61,4 +58,12 @@ export class ALPMService extends Service {
|
|
|
61
58
|
}
|
|
62
59
|
|
|
63
60
|
repositories = new Map();
|
|
61
|
+
|
|
62
|
+
typeNamed(type, name) {
|
|
63
|
+
if (type === ALPMRepositoryTypeDefinition.name) {
|
|
64
|
+
return this.repositories.get(name);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return super.typeNamed(type, name);
|
|
68
|
+
}
|
|
64
69
|
}
|