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

Function createHash

server/modules/updateAudit.js:19–28  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

17}
18
19function createHash(value) {
20 if (value === undefined || value === null || value === "") {
21 return null;
22 }
23
24 return crypto
25 .createHash("sha256")
26 .update(typeof value === "string" ? value : JSON.stringify(value))
27 .digest("hex");
28}
29
30function hydrateDate(value) {
31 if (!value) {

Callers 1

runRequestMethod · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected