dbgate-api 5.5.7-alpha.29 → 5.5.7-alpha.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dbgate-api",
3
3
  "main": "src/index.js",
4
- "version": "5.5.7-alpha.29",
4
+ "version": "5.5.7-alpha.33",
5
5
  "homepage": "https://dbgate.org/",
6
6
  "repository": {
7
7
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@aws-sdk/rds-signer": "^3.665.0",
21
21
  "activedirectory2": "^2.1.0",
22
- "async-lock": "^1.2.4",
22
+ "async-lock": "^1.2.6",
23
23
  "axios": "^0.21.1",
24
24
  "body-parser": "^1.19.0",
25
25
  "bufferutil": "^4.0.1",
@@ -27,10 +27,10 @@
27
27
  "compare-versions": "^3.6.0",
28
28
  "cors": "^2.8.5",
29
29
  "cross-env": "^6.0.3",
30
- "dbgate-datalib": "^5.5.7-alpha.29",
30
+ "dbgate-datalib": "^5.5.7-alpha.33",
31
31
  "dbgate-query-splitter": "^4.11.2",
32
- "dbgate-sqltree": "^5.5.7-alpha.29",
33
- "dbgate-tools": "^5.5.7-alpha.29",
32
+ "dbgate-sqltree": "^5.5.7-alpha.33",
33
+ "dbgate-tools": "^5.5.7-alpha.33",
34
34
  "debug": "^4.3.4",
35
35
  "diff": "^5.0.0",
36
36
  "diff2html": "^3.4.13",
@@ -78,17 +78,12 @@
78
78
  "devDependencies": {
79
79
  "@types/fs-extra": "^9.0.11",
80
80
  "@types/lodash": "^4.14.149",
81
- "dbgate-types": "^5.5.7-alpha.29",
81
+ "dbgate-types": "^5.5.7-alpha.33",
82
82
  "env-cmd": "^10.1.0",
83
83
  "node-loader": "^1.0.2",
84
84
  "nodemon": "^2.0.2",
85
85
  "typescript": "^4.4.3",
86
86
  "webpack": "^5.91.0",
87
87
  "webpack-cli": "^5.1.4"
88
- },
89
- "optionalDependencies": {
90
- "better-sqlite3": "9.6.0",
91
- "msnodesqlv8": "^4.2.1",
92
- "oracledb": "^6.6.0"
93
88
  }
94
89
  }
@@ -1,5 +1,5 @@
1
1
 
2
2
  module.exports = {
3
- version: '5.5.7-alpha.29',
4
- buildTime: '2024-11-12T08:27:02.193Z'
3
+ version: '5.5.7-alpha.33',
4
+ buildTime: '2024-11-13T11:33:35.991Z'
5
5
  };
@@ -4,6 +4,7 @@ const { ScriptDrivedDeployer } = require('dbgate-datalib');
4
4
  const connectUtility = require('../utility/connectUtility');
5
5
  const requireEngineDriver = require('../utility/requireEngineDriver');
6
6
  const loadModelFolder = require('../utility/loadModelFolder');
7
+ const crypto = require('crypto');
7
8
 
8
9
  async function deployDb({
9
10
  connection,
@@ -24,7 +25,8 @@ async function deployDb({
24
25
  const scriptDeployer = new ScriptDrivedDeployer(
25
26
  dbhan,
26
27
  driver,
27
- loadedDbModel ?? (await loadModelFolder(modelFolder))
28
+ Array.isArray(loadedDbModel) ? loadedDbModel : modelFolder ? await loadModelFolder(modelFolder) : [],
29
+ crypto
28
30
  );
29
31
  await scriptDeployer.runPre();
30
32
 
@@ -1,7 +1,6 @@
1
1
  const path = require('path');
2
2
  const fs = require('fs');
3
3
  const { pluginsdir, packagedPluginsDir, getPluginBackendPath } = require('../utility/directories');
4
- const nativeModules = require('../nativeModules');
5
4
  const platformInfo = require('../utility/platformInfo');
6
5
  const authProxy = require('../utility/authProxy');
7
6
  const { getLogger } = require('dbgate-tools');
@@ -11,7 +10,6 @@ const loadedPlugins = {};
11
10
 
12
11
  const dbgateEnv = {
13
12
  dbgateApi: null,
14
- nativeModules,
15
13
  platformInfo,
16
14
  authProxy,
17
15
  };
@@ -17,9 +17,6 @@ const listenApiChild = process.argv.includes('--listen-api-child') || listenApi;
17
17
 
18
18
  function getPassArgs() {
19
19
  const res = [];
20
- if (global['NATIVE_MODULES']) {
21
- res.push('--native-modules', global['NATIVE_MODULES']);
22
- }
23
20
  if (global['PLUGINS_DIR']) {
24
21
  res.push('--plugins-dir', global['PLUGINS_DIR']);
25
22
  }
@@ -1,13 +0,0 @@
1
- const argIndex = process.argv.indexOf('--native-modules');
2
- const redirectFile = global['NATIVE_MODULES'] || (argIndex > 0 ? process.argv[argIndex + 1] : null);
3
-
4
- function requireDynamic(file) {
5
- try {
6
- // @ts-ignore
7
- return __non_webpack_require__(redirectFile);
8
- } catch (err) {
9
- return require(redirectFile);
10
- }
11
- }
12
-
13
- module.exports = redirectFile ? requireDynamic(redirectFile) : require('./nativeModulesContent');
@@ -1,9 +0,0 @@
1
-
2
- // this file is generated automatically by script fillNativeModules.js, do not edit it manually
3
- const content = {};
4
-
5
- content['better-sqlite3'] = () => require('better-sqlite3');
6
- content['oracledb'] = () => require('oracledb');
7
-
8
-
9
- module.exports = content;