mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 21:25:26 +00:00
Added props getter to get a copy of current props
This commit is contained in:
@@ -60,7 +60,6 @@ export class Pass implements PassIndexSignature {
|
|||||||
this.bundle = { ...options.model.bundle };
|
this.bundle = { ...options.model.bundle };
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// getting pass.json
|
|
||||||
this.passCore = JSON.parse(this.bundle["pass.json"].toString("utf8"));
|
this.passCore = JSON.parse(this.bundle["pass.json"].toString("utf8"));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new Error(formatMessage("PASSFILE_VALIDATION_FAILED"));
|
throw new Error(formatMessage("PASSFILE_VALIDATION_FAILED"));
|
||||||
@@ -451,6 +450,10 @@ export class Pass implements PassIndexSignature {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get props(): schema.ValidPass {
|
||||||
|
return deepCopy(this[passProps]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates the PKCS #7 cryptografic signature for the manifest file.
|
* Generates the PKCS #7 cryptografic signature for the manifest file.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user