MCPcopy
hub / github.com/webpack/webpack / digestNonNumericOnlyWithFull

Function digestNonNumericOnlyWithFull

lib/util/nonNumericOnlyHash.js:45–48  ·  lib/util/nonNumericOnlyHash.js::digestNonNumericOnlyWithFull
(hash, hashDigest, hashDigestLength)

Source from the content-addressed store, hash-verified

43 * @returns {[string, string]} content hash string and full digest
44 */
45const digestNonNumericOnlyWithFull = (hash, hashDigest, hashDigestLength) => {
46 const full = /** @type {string} */ (hash.digest(hashDigest));
47 return [nonNumericOnlyHash(full, hashDigestLength), full];
48};
49
50module.exports = nonNumericOnlyHash;
51module.exports.digestNonNumericOnly = digestNonNumericOnly;

Callers 2

applyMethod · 0.85
applyMethod · 0.85

Calls 2

nonNumericOnlyHashFunction · 0.85
digestMethod · 0.45

Tested by

no test coverage detected