(content: string)
| 132 | * so local-vs-server comparison works by direct string equality. |
| 133 | */ |
| 134 | export function hashContent(content: string): string { |
| 135 | return 'sha256:' + createHash('sha256').update(content, 'utf8').digest('hex') |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * Type guard narrowing an unknown error to a Node.js errno-style exception. |
no test coverage detected