mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-16 00:25:30 +00:00
Converted certificates files names into paths; Removed dir property from the schema
This commit is contained in:
2
index.js
2
index.js
@@ -446,13 +446,11 @@ class Pass {
|
||||
}
|
||||
|
||||
this.model = path.resolve(options.model) + (!path.extname(options.model) ? ".pass" : "");
|
||||
this.Certificates.dir = options.certificates.dir;
|
||||
|
||||
let certPaths = Object.keys(options.certificates)
|
||||
.filter(v => v !== "dir")
|
||||
.map((val) =>
|
||||
path.resolve(
|
||||
this.Certificates.dir,
|
||||
typeof options.certificates[val] !== "object" ? options.certificates[val] : options.certificates[val]["keyFile"]
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user