MCPcopy
hub / github.com/cloudflare/capnweb / serviceNameFor

Function serviceNameFor

packages/capnweb-validate/src/internal/core.ts:1163–1168  ·  view source on GitHub ↗
(validator: Validator)

Source from the content-addressed store, hash-verified

1161}
1162
1163function serviceNameFor(validator: Validator): string | undefined {
1164 let shape = shapeOf(validator);
1165 if (shape?.kind === "lazy") return serviceNameFor(shape.thunk());
1166 if (shape?.kind !== "stub") return undefined;
1167 return shape.service?.serviceName;
1168}
1169
1170// True for a stub whose service surface could not be resolved. Pipelined
1171// access on it can't be checked, so the runtime passes it through.

Callers 1

getFunction · 0.85

Calls 1

shapeOfFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…