feat(mjs): added crypto imports

This commit is contained in:
Jan Prochazka 2024-05-20 19:48:21 +02:00
parent 153f40f13e
commit 7d984d8faf
15 changed files with 15 additions and 0 deletions

View File

@ -3,6 +3,7 @@ const _ = require('lodash');
const fp = require('lodash/fp'); const fp = require('lodash/fp');
const { testWrapper } = require('../tools'); const { testWrapper } = require('../tools');
const engines = require('../engines'); const engines = require('../engines');
const crypto = require('crypto');
const { getAlterTableScript, extendDatabaseInfo, generateDbPairingId } = require('dbgate-tools'); const { getAlterTableScript, extendDatabaseInfo, generateDbPairingId } = require('dbgate-tools');
function pickImportantTableInfo(table) { function pickImportantTableInfo(table) {

View File

@ -1,5 +1,6 @@
const fs = require('fs-extra'); const fs = require('fs-extra');
const readline = require('readline'); const readline = require('readline');
const crypto = require('crypto');
const path = require('path'); const path = require('path');
const { archivedir, clearArchiveLinksCache, resolveArchiveFolder } = require('../utility/directories'); const { archivedir, clearArchiveLinksCache, resolveArchiveFolder } = require('../utility/directories');
const socket = require('../utility/socket'); const socket = require('../utility/socket');

View File

@ -4,6 +4,7 @@ const getExpressPath = require('../utility/getExpressPath');
const { getLogins } = require('../utility/hasPermission'); const { getLogins } = require('../utility/hasPermission');
const { getLogger } = require('dbgate-tools'); const { getLogger } = require('dbgate-tools');
const AD = require('activedirectory2').promiseWrapper; const AD = require('activedirectory2').promiseWrapper;
const crypto = require('crypto');
const logger = getLogger('auth'); const logger = getLogger('auth');

View File

@ -29,6 +29,7 @@ const processArgs = require('../utility/processArgs');
const { testConnectionPermission } = require('../utility/hasPermission'); const { testConnectionPermission } = require('../utility/hasPermission');
const { MissingCredentialsError } = require('../utility/exceptions'); const { MissingCredentialsError } = require('../utility/exceptions');
const pipeForkLogs = require('../utility/pipeForkLogs'); const pipeForkLogs = require('../utility/pipeForkLogs');
const crypto = require('crypto');
const logger = getLogger('databaseConnections'); const logger = getLogger('databaseConnections');

View File

@ -1,5 +1,6 @@
const fs = require('fs-extra'); const fs = require('fs-extra');
const path = require('path'); const path = require('path');
const crypto = require('crypto');
const { filesdir, archivedir, resolveArchiveFolder, uploadsdir, appdir } = require('../utility/directories'); const { filesdir, archivedir, resolveArchiveFolder, uploadsdir, appdir } = require('../utility/directories');
const getChartExport = require('../utility/getChartExport'); const getChartExport = require('../utility/getChartExport');
const { hasPermission } = require('../utility/hasPermission'); const { hasPermission } = require('../utility/hasPermission');

View File

@ -1,3 +1,4 @@
const crypto = require('crypto');
const _ = require('lodash'); const _ = require('lodash');
const path = require('path'); const path = require('path');
const fs = require('fs-extra'); const fs = require('fs-extra');

View File

@ -1,3 +1,4 @@
const crypto = require('crypto');
const _ = require('lodash'); const _ = require('lodash');
const connections = require('./connections'); const connections = require('./connections');
const socket = require('../utility/socket'); const socket = require('../utility/socket');

View File

@ -1,3 +1,4 @@
const crypto = require('crypto');
const path = require('path'); const path = require('path');
const { uploadsdir } = require('../utility/directories'); const { uploadsdir } = require('../utility/directories');
const { getLogger } = require('dbgate-tools'); const { getLogger } = require('dbgate-tools');

View File

@ -1,3 +1,4 @@
const crypto = require('crypto');
const path = require('path'); const path = require('path');
const fs = require('fs'); const fs = require('fs');
const _ = require('lodash'); const _ = require('lodash');

View File

@ -1,3 +1,4 @@
const crypto = require('crypto');
const path = require('path'); const path = require('path');
const { uploadsdir } = require('../utility/directories'); const { uploadsdir } = require('../utility/directories');
const { downloadFile } = require('../utility/downloader'); const { downloadFile } = require('../utility/downloader');

View File

@ -1,3 +1,4 @@
const crypto = require('crypto');
const { fork } = require('child_process'); const { fork } = require('child_process');
const { handleProcessCommunication } = require('./processComm'); const { handleProcessCommunication } = require('./processComm');
const processArgs = require('../utility/processArgs'); const processArgs = require('../utility/processArgs');

View File

@ -1,3 +1,4 @@
const crypto = require('crypto');
const AsyncLock = require('async-lock'); const AsyncLock = require('async-lock');
const fs = require('fs-extra'); const fs = require('fs-extra');

View File

@ -1,3 +1,4 @@
const crypto = require('crypto');
const fs = require('fs'); const fs = require('fs');
const os = require('os'); const os = require('os');
const rimraf = require('rimraf'); const rimraf = require('rimraf');

View File

@ -1,3 +1,4 @@
const crypto = require('crypto');
// const pacote = require('pacote'); // const pacote = require('pacote');
const axios = require('axios'); const axios = require('axios');
// const tarballExtract = require('tarball-extract'); // const tarballExtract = require('tarball-extract');

View File

@ -1,3 +1,4 @@
const crypto = require('crypto');
const { getLogger } = require('dbgate-tools'); const { getLogger } = require('dbgate-tools');
const { getSshTunnel } = require('./sshTunnel'); const { getSshTunnel } = require('./sshTunnel');
const logger = getLogger('sshTunnelProxy'); const logger = getLogger('sshTunnelProxy');