-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* small improvements * updated dependencies * small improvements, following upgrade to TS5 * added comments regarding connections configuration
- Loading branch information
1 parent
cc21f89
commit 55cfda2
Showing
11 changed files
with
660 additions
and
429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "nmig", | ||
"version": "5.6.0", | ||
"version": "5.7.0", | ||
"description": "The database migration app", | ||
"author": "Anatoly Khaytovich<[email protected]>", | ||
"license": "GPL-3.0", | ||
|
@@ -12,19 +12,19 @@ | |
"node": ">=10.0.0" | ||
}, | ||
"dependencies": { | ||
"@types/node": "^17.0.16", | ||
"@types/pg": "^8.6.4", | ||
"@types/uuid": "^8.3.4", | ||
"json2csv": "^5.0.6", | ||
"mysql2": "^2.3.3", | ||
"pg": "^8.7.3", | ||
"pg-copy-streams": "^6.0.2", | ||
"uuid": "^8.3.2" | ||
"@types/node": "18.15.13", | ||
"@types/pg": "8.6.6", | ||
"@types/uuid": "9.0.1", | ||
"json2csv": "5.0.7", | ||
"mysql2": "3.2.3", | ||
"pg": "8.10.0", | ||
"pg-copy-streams": "6.0.5", | ||
"uuid": "9.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/tape": "^4.13.2", | ||
"tape": "^5.5.0", | ||
"typescript": "4.5.5" | ||
"@types/tape": "4.13.4", | ||
"tape": "5.6.3", | ||
"typescript": "5.0.4" | ||
}, | ||
"scripts": { | ||
"build": "tsc --incremental -p tsconfig.json", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,11 +19,11 @@ | |
* @author Anatoly Khaytovich <[email protected]> | ||
*/ | ||
import * as fs from 'fs'; | ||
import ErrnoException = NodeJS.ErrnoException; | ||
|
||
import Conversion from './Conversion'; | ||
import { LogMessage } from './LogMessage'; | ||
import { LogMessageType } from './LogMessageType'; | ||
import ErrnoException = NodeJS.ErrnoException; | ||
|
||
/** | ||
* Writes a detailed error message to the "/errors-only.log" file. | ||
|
@@ -63,7 +63,7 @@ const _generateErrorInBackground = ( | |
*/ | ||
const _logInBackground = ( | ||
conversion: Conversion, | ||
log: string | NodeJS.ErrnoException, | ||
log: string | ErrnoException, | ||
tableLogPath?: string, | ||
): Promise<void> => { | ||
return new Promise<void>(resolve => { | ||
|
@@ -119,7 +119,7 @@ let conv: Conversion; | |
process.on('message', async (_log: LogMessage) => { | ||
try { | ||
if (_log.type === LogMessageType.CONFIG) { | ||
// Create Conversion instance, but avoid circular recursion, | ||
// Create Conversion instance, but avoid recursion, | ||
// which might lead to redundant logger processes creation. | ||
const avoidLogger: boolean = true; | ||
conv = conv || new Conversion(_log.config, avoidLogger); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters