MCPcopy Index your code
hub / github.com/pollinations/pollinations / hasCode

Function hasCode

apps/_scripts/deploy-app.js:65–66  ·  view source on GitHub ↗
(json, ...codes)

Source from the content-addressed store, hash-verified

63}
64
65const hasCode = (json, ...codes) =>
66 json.errors?.some((error) => codes.includes(error.code));
67
68async function resolveZoneId(zoneName, headers) {
69 const { json } = await cf(`${CF_API}/zones?name=${zoneName}`, headers);

Callers 3

createPagesProjectFunction · 0.85
addPagesDomainFunction · 0.85
upsertCnameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected