refactor: update dependencies

This commit is contained in:
Rainer Killinger
2021-08-30 10:01:14 +02:00
committed by Jovan Krunić
parent cb43171640
commit fe90cd098a
6 changed files with 409 additions and 419 deletions

View File

@@ -348,7 +348,7 @@ async function deleteFileIfExistingAndPacked(path: string): Promise<void> {
return unlinkPromisified(path);
}
} catch (error) {
if (error.code === 'ENOENT') {
if ((error as NodeJS.ErrnoException).code === 'ENOENT') {
return;
}
}

View File

@@ -86,7 +86,6 @@ export class Converter {
if (isSchemaWithDefinitions(schema)) {
const selfReference = {
...{},
...schema,
};
@@ -96,7 +95,6 @@ export class Converter {
// add self reference to definitions
schema.definitions![`SC${type}`] = {
...{},
...(selfReference as unknown as Definition),
};
}