MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / getRawConfigHash

Function getRawConfigHash

lib/storage/base.ts:62–64  ·  view source on GitHub ↗
(config: any)

Source from the content-addressed store, hash-verified

60}
61
62function getRawConfigHash(config: any) {
63 return encodeBuffer(utils.getBinaryHash(JSON.stringify(config), FILE_HASH_VERSION));
64}
65
66export function getSafeHash(inputConfig: Record<string, any>) {
67 // Reject anything that isn't a non-null object up-front. Spread of a string

Callers 1

getSafeHashFunction · 0.85

Calls 1

encodeBufferFunction · 0.85

Tested by

no test coverage detected