FakeHasher Class — astro Architecture
Architecture documentation for the FakeHasher class in utils.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD ac3effe4_efb3_67b5_1b0c_04ce9111d92f["FakeHasher"] cf581885_d0e2_b165_a30e_db299dd301a8["utils.js"] ac3effe4_efb3_67b5_1b0c_04ce9111d92f -->|defined in| cf581885_d0e2_b165_a30e_db299dd301a8 6934650c_c5ac_731f_f95c_299e048c7992["constructor()"] ac3effe4_efb3_67b5_1b0c_04ce9111d92f -->|method| 6934650c_c5ac_731f_f95c_299e048c7992 cf7554a1_2a00_9f5c_ea70_d912e2412369["hashString()"] ac3effe4_efb3_67b5_1b0c_04ce9111d92f -->|method| cf7554a1_2a00_9f5c_ea70_d912e2412369 72c2bba5_c80b_7e61_ca08_1515b4d67fb2["hashObject()"] ac3effe4_efb3_67b5_1b0c_04ce9111d92f -->|method| 72c2bba5_c80b_7e61_ca08_1515b4d67fb2
Relationship Graph
Source Code
packages/astro/test/units/assets/fonts/utils.js lines 52–76
export class FakeHasher {
/** @type {string | undefined} */
#value;
/**
* @param {string | undefined} [value=undefined]
*/
constructor(value = undefined) {
this.#value = value;
}
/**
* @param {string} input
*/
hashString(input) {
return this.#value ?? input;
}
/**
* @param {any} input
*/
hashObject(input) {
return this.#value ?? JSON.stringify(input);
}
}
Domain
Source
Frequently Asked Questions
What is the FakeHasher class?
FakeHasher is a class in the astro codebase, defined in packages/astro/test/units/assets/fonts/utils.js.
Where is FakeHasher defined?
FakeHasher is defined in packages/astro/test/units/assets/fonts/utils.js at line 52.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free