MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / hash

Method hash

server/modules/runtimeCache.js:398–403  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

396 }
397
398 hash(value) {
399 return crypto
400 .createHash("sha256")
401 .update(typeof value === "string" ? value : JSON.stringify(normalizeValue(value)))
402 .digest("hex");
403 }
404
405 chartCacheKey({ chartId, chartVersion, variantHash, viewerScope = "shared" }) {
406 return `chart-cache:v${RUNTIME_CACHE_CONFIG.cacheSchemaVersion}:${chartId}:${chartVersion}:${viewerScope}:${variantHash}`;

Callers 9

buildChartVersionMethod · 0.95
buildDatasetVersionMethod · 0.95
createUserMethod · 0.80
loginMethod · 0.80
changePasswordMethod · 0.80
user.2fa.test.jsFile · 0.80
user.auth.test.jsFile · 0.80

Calls 2

normalizeValueFunction · 0.70
updateMethod · 0.45

Tested by

no test coverage detected