MCPcopy Create free account
hub / github.com/SAP/ui5-builder / signByHash

Function signByHash

lib/tasks/generateCachebusterInfo.js:15–21  ·  view source on GitHub ↗
(resource)

Source from the content-addressed store, hash-verified

13}
14
15async function signByHash(resource) {
16 const hasher = crypto.createHash("sha1");
17 const buffer = await resource.getBuffer();
18
19 hasher.update(buffer.toString("binary"));
20 return hasher.digest("hex");
21}
22
23function getSigner(type) {
24 type = type || "time";

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected