MCPcopy
hub / github.com/lissy93/web-check / compact

Function compact

api/location.js:155–158  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

153
154// Strip empty values so they don't shadow enrichment defaults during merge
155const compact = (o) =>
156 Object.fromEntries(
157 Object.entries(o).filter(([, v]) => v !== undefined && v !== null && v !== ''),
158 );
159
160// Resolve hostname to IP so providers requiring a numeric address still work
161const resolveHost = async (hostname) => {

Callers 1

locationHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected