@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.js CHANGED
@@ -59058,8 +59058,15 @@ function missingFields(provider) {
59058
59058
  return Array.isArray(o) && o.length;
59059
59059
  });
59060
59060
  var inOptions = new Set(options.flat());
59061
+ // Catalog fields the server works without (e.g. Algolia's API key on an
59062
+ // endpoint that doesn't ask for one) aren't missing when empty. The
59063
+ // catalog's `required: false` can't be used for this: it's set on fields
59064
+ // servers do need (GitHub's token).
59065
+ var worksWithout = function worksWithout(key) {
59066
+ return !!(credentialSchema && credentialSchema[key] && credentialSchema[key].worksWithout);
59067
+ };
59061
59068
  var missing = fields.filter(function (f) {
59062
- return !inOptions.has(f.key) && (used.has(f.key) || f.required) && isEmpty(creds[f.key]);
59069
+ return !inOptions.has(f.key) && !worksWithout(f.key) && (used.has(f.key) || f.required) && isEmpty(creds[f.key]);
59063
59070
  }).map(function (f) {
59064
59071
  return f.displayName || formatFieldName(f.key);
59065
59072
  });