MCPcopy Create free account
hub / github.com/denoland/std / serializeComponentIdentifier

Function serializeComponentIdentifier

http/unstable_message_signatures.ts:589–599  ·  view source on GitHub ↗
(id: ComponentIdentifier)

Source from the content-addressed store, hash-verified

587// =============================================================================
588
589function serializeComponentIdentifier(id: ComponentIdentifier): string {
590 let result = `"${id.name}"`;
591 const params = id.parameters ?? {};
592 if (params.sf) result += ";sf";
593 if (params.key !== undefined) result += `;key="${params.key}"`;
594 if (params.bs) result += ";bs";
595 if (params.req) result += ";req";
596 if (params.tr) result += ";tr";
597 if (params.name !== undefined) result += `;name="${params.name}"`;
598 return result;
599}
600
601function buildSignatureParamsValue(
602 components: ComponentIdentifier[],

Callers 2

createSignatureBaseFunction · 0.85
verifyMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected