(json: string)
| 20 | }; |
| 21 | |
| 22 | export const getDataHash = (json: string) => { |
| 23 | const hash = crypto.createHash("sha1").update(json).digest("hex"); |
| 24 | const hashSub = hash.substring(0, 8); |
| 25 | return hashSub; |
| 26 | }; |
| 27 | |
| 28 | export const replaceHashPlaceholders = (data: VisualizerData) => { |
| 29 | const json = JSON.stringify(data); |
no outgoing calls
no test coverage detected