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

Function serializeInnerListValue

http/unstable_message_signatures.ts:648–659  ·  view source on GitHub ↗
(il: InnerList)

Source from the content-addressed store, hash-verified

646}
647
648function serializeInnerListValue(il: InnerList): string {
649 const items = il.items.map((i) => serializeItem(i)).join(" ");
650 let result = `(${items})`;
651 for (const [key, value] of il.parameters) {
652 // buildSignatureParamsValue only ever puts integer (created/expires) or
653 // string (nonce/alg/keyid/tag) bare items into listParams.
654 result += `;${key}=${
655 value.type === "integer" ? String(value.value) : `"${value.value}"`
656 }`;
657 }
658 return result;
659}
660
661/**
662 * Options for {@linkcode createSignatureBase}.

Callers 1

Calls 1

serializeItemFunction · 0.90

Tested by

no test coverage detected