browse 0.7.1 → 0.7.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/dist/lib/skills/catalog.js +2 -8
- package/oclif.manifest.json +584 -584
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ export function outputSkillTable(skills, options = {}) {
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
header: "Method",
|
|
40
|
-
maxWidth:
|
|
40
|
+
maxWidth: 9,
|
|
41
41
|
value: (skill) => skill.recommendedMethod,
|
|
42
42
|
},
|
|
43
43
|
{
|
|
@@ -135,7 +135,7 @@ function parseSkill(payload, context) {
|
|
|
135
135
|
tags: stringArrayField(payload.tags, context, "tags"),
|
|
136
136
|
source: stringField(payload.source, context, "source"),
|
|
137
137
|
updated: stringField(payload.updated, context, "updated"),
|
|
138
|
-
recommendedMethod:
|
|
138
|
+
recommendedMethod: stringField(payload.recommendedMethod, context, "recommendedMethod"),
|
|
139
139
|
verified: booleanField(payload.verified, context, "verified"),
|
|
140
140
|
proxies: booleanField(payload.proxies, context, "proxies"),
|
|
141
141
|
sourceUrl: stringField(payload.sourceUrl, context, "sourceUrl"),
|
|
@@ -156,12 +156,6 @@ function stringField(value, context, field) {
|
|
|
156
156
|
}
|
|
157
157
|
return value;
|
|
158
158
|
}
|
|
159
|
-
function methodField(value, context, field) {
|
|
160
|
-
if (value !== "api" && value !== "browser") {
|
|
161
|
-
fail(`Invalid skills response for ${context}: ${field} must be "api" or "browser".`);
|
|
162
|
-
}
|
|
163
|
-
return value;
|
|
164
|
-
}
|
|
165
159
|
function booleanField(value, context, field) {
|
|
166
160
|
if (typeof value !== "boolean") {
|
|
167
161
|
fail(`Invalid skills response for ${context}: ${field} must be a boolean.`);
|