MCPcopy
hub / github.com/Koenkk/zigbee2mqtt / writeHash

Function writeHash

index.js:75–79  ·  view source on GitHub ↗

@type {() => Promise }

()

Source from the content-addressed store, hash-verified

73
74/** @type {() => Promise<void>} */
75async function writeHash() {
76 const hash = await currentHash();
77
78 fs.writeFileSync(hashFile, hash);
79}
80
81/** @type {(reason: "initial build" | "hash changed") => Promise<void>} */
82async function build(reason) {

Callers 1

index.jsFile · 0.85

Calls 1

currentHashFunction · 0.85

Tested by

no test coverage detected