mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 21:25:26 +00:00
Added partial implementation of addBuffer
This commit is contained in:
@@ -187,6 +187,24 @@ export default class PKPass extends Bundle {
|
|||||||
* @TODO exclude pass.json, manifest, signature files
|
* @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);
|
super.addBuffer(pathName, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user