pmcf 6.27.1 → 6.27.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/bin/pmcf-info +11 -7
- package/package.json +1 -1
- package/src/host.mjs +1 -8
package/bin/pmcf-info
CHANGED
|
@@ -96,16 +96,20 @@ function show(value, indent = 0, options = { short: false, maxDepth: 5 }) {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
} else {
|
|
99
|
-
|
|
99
|
+
try {
|
|
100
|
+
const l = [...v];
|
|
100
101
|
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
if (l.length > 1) {
|
|
103
|
+
console.log(name(attribute));
|
|
103
104
|
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
for (const o of l) {
|
|
106
|
+
console.log(prefix(indent + 2) + o.fullName);
|
|
107
|
+
}
|
|
108
|
+
} else if (l.length === 1) {
|
|
109
|
+
console.log(name(attribute) + l[0].fullName);
|
|
106
110
|
}
|
|
107
|
-
}
|
|
108
|
-
console.log(name(attribute)
|
|
111
|
+
} catch (e) {
|
|
112
|
+
console.log(name(attribute), v);
|
|
109
113
|
}
|
|
110
114
|
}
|
|
111
115
|
} else {
|
package/package.json
CHANGED
package/src/host.mjs
CHANGED
|
@@ -40,7 +40,7 @@ export class Host extends ServiceOwner {
|
|
|
40
40
|
name: "os",
|
|
41
41
|
values: new Set(["osx", "windows", "linux"])
|
|
42
42
|
},
|
|
43
|
-
|
|
43
|
+
id: { ...string_attribute_writable, name: "id" },
|
|
44
44
|
distribution: { ...string_attribute_writable, name: "distribution" },
|
|
45
45
|
deployment: {
|
|
46
46
|
...string_attribute_writable,
|
|
@@ -136,13 +136,6 @@ export class Host extends ServiceOwner {
|
|
|
136
136
|
return this.attribute("_vendor");
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
/**
|
|
140
|
-
* @return {string}
|
|
141
|
-
*/
|
|
142
|
-
get id() {
|
|
143
|
-
return this["machine-id"];
|
|
144
|
-
}
|
|
145
|
-
|
|
146
139
|
set keymap(value) {
|
|
147
140
|
this._keymap = value;
|
|
148
141
|
}
|