mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 22:25:24 +00:00
Added forgotten imports and symbols, and replaced \n as separator for stringFile with EOL
This commit is contained in:
@@ -3,6 +3,10 @@ import { default as Bundle, filesSymbol } from "./Bundle";
|
|||||||
import { getModelFolderContents } from "./parser";
|
import { getModelFolderContents } from "./parser";
|
||||||
import * as Schemas from "./schemas";
|
import * as Schemas from "./schemas";
|
||||||
import { Stream } from "stream";
|
import { Stream } from "stream";
|
||||||
|
import { processDate } from "./processDate";
|
||||||
|
import forge from "node-forge";
|
||||||
|
import * as Signature from "./signature";
|
||||||
|
import { EOL } from "os";
|
||||||
|
|
||||||
/** Exporting for tests specs */
|
/** Exporting for tests specs */
|
||||||
export const propsSymbol = Symbol("props");
|
export const propsSymbol = Symbol("props");
|
||||||
@@ -10,6 +14,8 @@ export const localizationSymbol = Symbol("pass.l10n");
|
|||||||
|
|
||||||
const fieldKeysPoolSymbol = Symbol("fieldKeysPoolSymbol");
|
const fieldKeysPoolSymbol = Symbol("fieldKeysPoolSymbol");
|
||||||
const importMetadataSymbol = Symbol("import.pass.metadata");
|
const importMetadataSymbol = Symbol("import.pass.metadata");
|
||||||
|
const createManifestSymbol = Symbol("pass.manifest");
|
||||||
|
const closePassSymbol = Symbol("pass.close");
|
||||||
|
|
||||||
interface NamedBuffers {
|
interface NamedBuffers {
|
||||||
[key: string]: Buffer;
|
[key: string]: Buffer;
|
||||||
@@ -826,5 +832,5 @@ function createStringFile(translations: { [key: string]: string }): Buffer {
|
|||||||
stringContents.push(`"${key}" = "${value}";`);
|
stringContents.push(`"${key}" = "${value}";`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Buffer.from(stringContents.join("\n"));
|
return Buffer.from(stringContents.join(EOL));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user