MCPcopy Index your code
hub / github.com/darkreader/darkreader / hashTypes

Function hashTypes

tasks/bundle-signature.js:81–89  ·  view source on GitHub ↗
(signatureVersion)

Source from the content-addressed store, hash-verified

79}
80
81function hashTypes(signatureVersion) {
82 if (signatureVersion === 0) {
83 return ['md5', 'sha1'];
84 } else if (signatureVersion === 1) {
85 return ['md5', 'sha1', 'sha256'];
86 } else if (signatureVersion === 2) {
87 return ['sha1', 'sha256'];
88 }
89}
90
91async function calculateHashes(types, paths) {
92 for (let i = 0; i < paths.length; i++) {

Callers 1

createHashesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected