(content, algorithm = "sha256")
| 84915 | } |
| 84916 | } |
| 84917 | |
| 84918 | // src/modules/commitlint/constants.ts |
| 84919 | var COMMITLINT_LLM_CONFIG_PATH = `${process.env.PWD}/.opencommit-commitlint`; |
| 84920 | |
| 84921 | // src/modules/commitlint/crypto.ts |
| 84922 | var import_crypto3 = __toESM(require("crypto"), 1); |
| 84923 | var computeHash = async (content, algorithm = "sha256") => { |
| 84924 | try { |
| 84925 | const hash = import_crypto3.default.createHash(algorithm); |
| 84926 | hash.update(content); |
| 84927 | return hash.digest("hex"); |
| 84928 | } catch (error) { |
| 84929 | console.error("Error while computing hash:", error); |
no test coverage detected
searching dependent graphs…