Removed Schemas.Manifest

This commit is contained in:
Alexander Cerutti
2021-09-30 22:44:20 +02:00
parent 342f3934b8
commit 38fe473f07
3 changed files with 13 additions and 17 deletions

View File

@@ -481,19 +481,18 @@ export default class PKPass extends Bundle {
}
private [createManifestSymbol]() {
return Object.entries(this[filesSymbol]).reduce<Schemas.Manifest>(
(acc, [fileName, buffer]) => {
const hashFlow = forge.md.sha1.create();
return Object.entries(this[filesSymbol]).reduce<{
[key: string]: string;
}>((acc, [fileName, buffer]) => {
const hashFlow = forge.md.sha1.create();
hashFlow.update(buffer.toString("binary"));
hashFlow.update(buffer.toString("binary"));
return {
...acc,
[fileName]: hashFlow.digest().toHex(),
};
},
{},
);
return {
...acc,
[fileName]: hashFlow.digest().toHex(),
};
}, {});
}
private [closePassSymbol]() {