MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / hashHtml

Function hashHtml

src/artifacts/live-server.ts:68–70  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

66/** sha1 of the served HTML — the single comparison that correctly dedupes updates,
67 * rollbacks (same source, moved pointer), no-op rewrites, and the error overlay. */
68export function hashHtml(html: string): string {
69 return createHash('sha1').update(html).digest('hex');
70}
71
72/** Pure push decision, extracted for unit testing. */
73export function shouldPush(prevHash: string | null, nextHash: string): boolean {

Callers 3

flushFunction · 0.85
createLiveServerFunction · 0.85

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected