sanitizeConfigInfo() — astro Function Reference
Architecture documentation for the sanitizeConfigInfo() function in session.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 135d521f_56ac_f7fd_9eb2_e28a7bc98e28["sanitizeConfigInfo()"] 5e4918d2_001e_cdf1_6103_dc17a8a94758["session.ts"] 135d521f_56ac_f7fd_9eb2_e28a7bc98e28 -->|defined in| 5e4918d2_001e_cdf1_6103_dc17a8a94758 007fbd21_02cb_46e0_9136_19cdd1636881["createAnonymousConfigInfo()"] 007fbd21_02cb_46e0_9136_19cdd1636881 -->|calls| 135d521f_56ac_f7fd_9eb2_e28a7bc98e28 1e8d0744_2aba_8ff5_9909_db20f8d47d07["measureIsDefined()"] 135d521f_56ac_f7fd_9eb2_e28a7bc98e28 -->|calls| 1e8d0744_2aba_8ff5_9909_db20f8d47d07 style 135d521f_56ac_f7fd_9eb2_e28a7bc98e28 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/events/session.ts lines 57–68
function sanitizeConfigInfo(obj: object | undefined, validKeys: string[]): ConfigInfoRecord {
if (!obj || validKeys.length === 0) {
return {};
}
return validKeys.reduce(
(result, key) => {
result[key] = measureIsDefined((obj as Record<string, unknown>)[key]);
return result;
},
{} as Record<string, boolean | undefined>,
);
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does sanitizeConfigInfo() do?
sanitizeConfigInfo() is a function in the astro codebase, defined in packages/astro/src/events/session.ts.
Where is sanitizeConfigInfo() defined?
sanitizeConfigInfo() is defined in packages/astro/src/events/session.ts at line 57.
What does sanitizeConfigInfo() call?
sanitizeConfigInfo() calls 1 function(s): measureIsDefined.
What calls sanitizeConfigInfo()?
sanitizeConfigInfo() is called by 1 function(s): createAnonymousConfigInfo.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free