Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #68 from mhconradt/feature/signingFix
Browse files Browse the repository at this point in the history
Fixed SHA signature
  • Loading branch information
assaf authored Sep 9, 2019
2 parents 34ef430 + 3070de1 commit e50d8cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/pass.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var zlib = require("zlib");
var TOP_LEVEL = [ "appLaunchURL", "associatedStoreIdentifiers", "authenticationToken",
"backgroundColor", "barcode", "description",
"foregroundColor", "labelColor", "locations", "logoText",
"organizationName", "relevantDate", "serialNumber",
"organizationName", "relevantDate", "serialNumber",
"suppressStripShine", "webServiceURL", "beacons"];
// These top level fields are required for a valid pass.
var REQUIRED_TOP_LEVEL = [ "description", "organizationName", "passTypeIdentifier",
Expand Down Expand Up @@ -140,7 +140,7 @@ Fields.prototype.add = function(key, label, value, options) {
// key - Field key
// label - Field label (optional)
// value - Field value
// Other field options (e.g. dateStyle)
// Other field options (e.g. dateStyle)
Fields.prototype.get = function(key) {
var fields = this.pass.structure[this.key];
if (fields) {
Expand Down Expand Up @@ -367,7 +367,7 @@ function signManifest(template, manifest, callback) {
if (error || (trimmedStderr && trimmedStderr.indexOf('- done') < 0)) {
callback(new Error(stderr));
} else {
var signature = stdout.split(/(\r\n|\n\n)/)[3];
var signature = stdout.split(/(\r\n|\n\n)/)[6];
callback(null, Buffer.from(signature, "base64"));
}
});
Expand Down

0 comments on commit e50d8cd

Please sign in to comment.