From 65b8eea99914163c51857f0596ca0fef71021cbd Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Sat, 1 Jun 2019 00:49:04 +0200 Subject: [PATCH] Added exports to createPass function; Integrated missing dependency --- src/factory.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/factory.ts b/src/factory.ts index 4d6f54a..584787b 100644 --- a/src/factory.ts +++ b/src/factory.ts @@ -6,6 +6,7 @@ import { readFile as _readFile, readdir as _readdir } from "fs"; import * as path from "path"; import forge from "node-forge"; import formatMessage from "./messages"; +import { removeHidden } from "./utils"; const readDir = promisify(_readdir); const readFile = promisify(_readFile); @@ -33,7 +34,7 @@ interface FactoryOptions { overrides?: Object; } -async function createPass(options: FactoryOptions) { +export async function createPass(options: FactoryOptions) { if (!(options && Object.keys(options).length)) { throw new Error("Unable to create Pass: no options were passed"); }