mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 18:25:24 +00:00
Added test parameter to closePassSymbol method to omit manifest and signature generation
This commit is contained in:
@@ -511,7 +511,9 @@ export default class PKPass extends Bundle {
|
|||||||
* signature files
|
* signature files
|
||||||
*/
|
*/
|
||||||
|
|
||||||
private [closePassSymbol]() {
|
private [closePassSymbol](
|
||||||
|
__test_disable_manifest_signature_generation__: boolean = false,
|
||||||
|
) {
|
||||||
const fileNames = Object.keys(this[filesSymbol]);
|
const fileNames = Object.keys(this[filesSymbol]);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -602,6 +604,10 @@ export default class PKPass extends Bundle {
|
|||||||
// *** SIGNATURE AND MANIFEST *** //
|
// *** SIGNATURE AND MANIFEST *** //
|
||||||
// ****************************** //
|
// ****************************** //
|
||||||
|
|
||||||
|
if (__test_disable_manifest_signature_generation__) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const manifestBuffer = this[createManifestSymbol]();
|
const manifestBuffer = this[createManifestSymbol]();
|
||||||
super.addBuffer("manifest.json", manifestBuffer);
|
super.addBuffer("manifest.json", manifestBuffer);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user