MCPcopy
hub / github.com/webpack/webpack / verifyIntegrity

Function verifyIntegrity

lib/schemes/HttpUriPlugin.js:137–140  ·  view source on GitHub ↗
(content, integrity)

Source from the content-addressed store, hash-verified

135 * @returns {boolean} true, if integrity matches
136 */
137const verifyIntegrity = (content, integrity) => {
138 if (integrity === "ignore") return true;
139 return computeIntegrity(content) === integrity;
140};
141
142/**
143 * Parses key value pairs.

Callers 2

handleResultMethod · 0.85
applyMethod · 0.85

Calls 1

computeIntegrityFunction · 0.85

Tested by

no test coverage detected