mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
fix: await for _remoteResources.reduce to resolve
This commit is contained in:
@@ -68,7 +68,7 @@ class Pass {
|
|||||||
* Getting the buffers for remote files
|
* Getting the buffers for remote files
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const buffersPromise = this._remoteResources.reduce(async (acc, current) => {
|
const buffersPromise = await this._remoteResources.reduce(async (acc, current) => {
|
||||||
try {
|
try {
|
||||||
const response = await got(current[0], { encoding: null });
|
const response = await got(current[0], { encoding: null });
|
||||||
loadDebug(formatMessage("LOAD_MIME", response.headers["content-type"]));
|
loadDebug(formatMessage("LOAD_MIME", response.headers["content-type"]));
|
||||||
@@ -100,7 +100,7 @@ class Pass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// list without localization files (they will be added later in the flow)
|
// list without localization files (they will be added later in the flow)
|
||||||
const bundle = noDynList.filter(f => !f.includes(".lproj"));
|
let bundle = noDynList.filter(f => !f.includes(".lproj"));
|
||||||
|
|
||||||
// Localization folders only
|
// Localization folders only
|
||||||
const L10N = noDynList.filter(f => f.includes(".lproj") && Object.keys(this.l10n).includes(path.parse(f).name));
|
const L10N = noDynList.filter(f => f.includes(".lproj") && Object.keys(this.l10n).includes(path.parse(f).name));
|
||||||
|
|||||||
Reference in New Issue
Block a user