UNPKG

graphile-migrate

Version:

Opinionated SQL-powered migration tool for PostgreSQL

10 lines 372 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const crypto = require("crypto"); exports.calculateHash = (str, previousHash, algorithm = "sha1") => algorithm + ":" + crypto .createHash(algorithm) .update(((previousHash || "") + "\n" + str.trim()).trim() + "\n") .digest("hex"); //# sourceMappingURL=hash.js.map