@trops/dash-core 0.1.699 → 0.1.700
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/index.esm.js +8 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/mcpServerCatalog.json +2 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -59040,8 +59040,15 @@ function missingFields(provider) {
|
|
|
59040
59040
|
return Array.isArray(o) && o.length;
|
|
59041
59041
|
});
|
|
59042
59042
|
var inOptions = new Set(options.flat());
|
|
59043
|
+
// Catalog fields the server works without (e.g. Algolia's API key on an
|
|
59044
|
+
// endpoint that doesn't ask for one) aren't missing when empty. The
|
|
59045
|
+
// catalog's `required: false` can't be used for this: it's set on fields
|
|
59046
|
+
// servers do need (GitHub's token).
|
|
59047
|
+
var worksWithout = function worksWithout(key) {
|
|
59048
|
+
return !!(credentialSchema && credentialSchema[key] && credentialSchema[key].worksWithout);
|
|
59049
|
+
};
|
|
59043
59050
|
var missing = fields.filter(function (f) {
|
|
59044
|
-
return !inOptions.has(f.key) && (used.has(f.key) || f.required) && isEmpty(creds[f.key]);
|
|
59051
|
+
return !inOptions.has(f.key) && !worksWithout(f.key) && (used.has(f.key) || f.required) && isEmpty(creds[f.key]);
|
|
59045
59052
|
}).map(function (f) {
|
|
59046
59053
|
return f.displayName || formatFieldName(f.key);
|
|
59047
59054
|
});
|