(app_compose: AppCompose, normalize: boolean = false)
| 100 | } |
| 101 | |
| 102 | export function getComposeHash(app_compose: AppCompose, normalize: boolean = false): string { |
| 103 | if (normalize) { |
| 104 | app_compose = preprocessAppCompose(app_compose); |
| 105 | } |
| 106 | const manifest_str = toDeterministicJson(app_compose); |
| 107 | return crypto.createHash("sha256").update(manifest_str, "utf8").digest("hex"); |
| 108 | } |
no test coverage detected