Added partial implementation of addBuffer

This commit is contained in:
Alexander Cerutti
2021-09-22 22:58:54 +02:00
parent 9d76856d67
commit 84823794d8

View File

@@ -187,6 +187,24 @@ export default class PKPass extends Bundle {
* @TODO exclude pass.json, manifest, signature files
*/
if (/manifest|signature/.test(pathName)) {
return;
}
if (/pass\.json/.test(pathName)) {
if (this[filesSymbol]["pass.json"]) {
/**
* Ignoring any further addition. In a
* future we might consider merging instead
*/
return;
}
/**
* @TODO parse pass.json
*/
}
super.addBuffer(pathName, buffer);
}