mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
feat(mjs): added crypto imports
This commit is contained in:
parent
153f40f13e
commit
7d984d8faf
@ -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) {
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
|
||||||
|
@ -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');
|
||||||
|
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user