(value)
| 17 | } |
| 18 | |
| 19 | function createHash(value) { |
| 20 | if (value === undefined || value === null || value === "") { |
| 21 | return null; |
| 22 | } |
| 23 | |
| 24 | return crypto |
| 25 | .createHash("sha256") |
| 26 | .update(typeof value === "string" ? value : JSON.stringify(value)) |
| 27 | .digest("hex"); |
| 28 | } |
| 29 | |
| 30 | function hydrateDate(value) { |
| 31 | if (!value) { |