MCPcopy
hub / github.com/CapSoftware/Cap / formatHost

Function formatHost

scripts/analytics/shared.js:82–86  ·  view source on GitHub ↗
(host)

Source from the content-addressed store, hash-verified

80 table.columns.map((column) => `${column.name} ${column.type}`);
81
82function formatHost(host) {
83 if (!host) return DEFAULT_TINYBIRD_HOST;
84 if (host.startsWith("http://") || host.startsWith("https://")) return host;
85 return `https://${host}`;
86}
87
88function loadTinybFile() {
89 for (const candidate of TINYB_FILE_CANDIDATES) {

Callers 3

resolveTinybirdAuthFunction · 0.85
requestFunction · 0.85
createTinybirdClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected