MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / normalizeLuckmailTokenCode

Function normalizeLuckmailTokenCode

luckmail-utils.js:219–227  ·  view source on GitHub ↗
(result = {})

Source from the content-addressed store, hash-verified

217 }
218
219 function normalizeLuckmailTokenCode(result = {}) {
220 return {
221 email_address: firstNonEmptyString([result.email_address, result.address]),
222 project: firstNonEmptyString([result.project]),
223 has_new_mail: Boolean(result.has_new_mail),
224 verification_code: firstNonEmptyString([result.verification_code]) || null,
225 mail: result.mail ? normalizeLuckmailTokenMail(result.mail) : null,
226 };
227 }
228
229 function normalizeLuckmailMailCursor(cursor = {}) {
230 const safeCursor = cursor && typeof cursor === 'object' ? cursor : {};

Callers 3

getTokenCodeFunction · 0.85

Calls 2

firstNonEmptyStringFunction · 0.70

Tested by

no test coverage detected