MCPcopy Create free account
hub / github.com/adobe/react-spectrum / hash

Function hash

perf/build.mjs:19–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17export const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
18export const local = path.join(root, 'perf/.local');
19export const hash = text => createHash('sha256').update(text).digest('hex');
20
21export function buildPath(name) {
22 if (!/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/.test(name)) {

Callers 4

bundleHashFunction · 0.90
harnessHashFunction · 0.70
artifactHashFunction · 0.70
buildFunction · 0.70

Calls 1

updateMethod · 0.65

Tested by 1

bundleHashFunction · 0.72