(content: string)
| 2250 | return id; |
| 2251 | } |
| 2252 | function computeHash(content: string): string { |
| 2253 | let h = 0; |
| 2254 | for (let i = 0; i < content.length; i++) { |
| 2255 | h = (h * 31 + content.charCodeAt(i)) | 0; |
| 2256 | } |
| 2257 | return ('00000000' + (h >>> 0).toString(16)).slice(-8); |
| 2258 | } |
| 2259 | function fullGraphPayload() { |
| 2260 | return { |
| 2261 | type: 'ns:hmr-full-graph', |
no test coverage detected