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