MCPcopy Create free account
hub / github.com/dfinity/orbit / parseRegistryApplication

Function parseRegistryApplication

cli/src/registry/registry.core.ts:35–45  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

33);
34
35export const parseRegistryApplication = (value: string): Application => {
36 for (const app of Object.values(Application)) {
37 if (app === value) {
38 return app;
39 }
40 }
41
42 throw new Error(
43 `Invalid application. Must be one of: '${Object.values(Application).join(', ')}'.`,
44 );
45};
46
47export const searchRegistry = async (opts: {
48 name: string;

Callers

nothing calls this directly

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected