createAnonymousValue() — astro Function Reference
Architecture documentation for the createAnonymousValue() function in project-info.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD c268b7b3_22ee_9736_ce57_d7e206b70e9e["createAnonymousValue()"] 5cf28cbb_df91_06e4_faa2_0ea2eb5a9a37["project-info.ts"] c268b7b3_22ee_9736_ce57_d7e206b70e9e -->|defined in| 5cf28cbb_df91_06e4_faa2_0ea2eb5a9a37 e0969f5b_2c7e_7882_c1aa_903356b2865a["getProjectId()"] e0969f5b_2c7e_7882_c1aa_903356b2865a -->|calls| c268b7b3_22ee_9736_ce57_d7e206b70e9e style c268b7b3_22ee_9736_ce57_d7e206b70e9e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/telemetry/src/project-info.ts lines 59–69
function createAnonymousValue(payload: BinaryLike): string {
// We use empty string to represent an empty value. Avoid hashing this
// since that would create a real hash and remove its "empty" meaning.
if (payload === '') {
return payload;
}
// Otherwise, create a new hash from the payload and return it.
const hash = createHash('sha256');
hash.update(payload);
return hash.digest('hex');
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does createAnonymousValue() do?
createAnonymousValue() is a function in the astro codebase, defined in packages/telemetry/src/project-info.ts.
Where is createAnonymousValue() defined?
createAnonymousValue() is defined in packages/telemetry/src/project-info.ts at line 59.
What calls createAnonymousValue()?
createAnonymousValue() is called by 1 function(s): getProjectId.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free