build: update dependencies

This commit is contained in:
Michel Jonathan Schmitz
2020-01-22 09:22:13 +01:00
parent 25a795bc91
commit 8b3a8f929b
20 changed files with 785 additions and 691 deletions

View File

@@ -62,7 +62,7 @@ export class Validator {
Logger.log(`Adding schemas from ${schemaDir} to validator.`);
// tslint:disable-next-line:no-magic-numbers - iterate over schema files
await asyncPool(2, schemaFiles, async (file) => {
await asyncPool(2, schemaFiles, async (file: string) => {
// read schema file
const buffer = await readFilePromisified(file);
const schema = JSON.parse(buffer.toString());
@@ -139,7 +139,7 @@ export async function validateFiles(schemaDir: string, resourcesDir: string): Pr
const errors: ExpectableValidationErrors = {};
// tslint:disable-next-line:no-magic-numbers - iterate over files to test
await asyncPool(2, testFiles, async (testFile) => {
await asyncPool(2, testFiles, async (testFile: string) => {
const testFileName = basename(testFile);
const buffer = await readFilePromisified(join(resourcesDir, testFileName));
@@ -195,6 +195,7 @@ export async function validateFiles(schemaDir: string, resourcesDir: string): Pr
name: `expected ${error}`,
property: 'unknown',
schema: 'undefined',
stack: 'undefined',
});
}
} else if (unexpectedErrors === 0) {