@xuda.io/drive_module 1.1.1192 → 1.1.1194

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.
Files changed (2) hide show
  1. package/index.js +11 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3,7 +3,7 @@ global._conf = require(path.join(process.env.XUDA_HOME, process.env.XUDA_CONFIG)
3
3
  console.log('drive module loaded..');
4
4
 
5
5
  const _common = require(path.join(process.env.XUDA_HOME, 'common', 'xuda_node_common.js'));
6
-
6
+ const _utils = require(path.join(process.env.XUDA_HOME, 'common', 'xuda-cpi-utils.js'));
7
7
  const _ = require('lodash');
8
8
 
9
9
  const module_path = path.join(process.env.XUDA_HOME, 'cpi') + (!_conf.is_debug ? '/node_modules/@xuda.io' : '');
@@ -20,6 +20,7 @@ const fs = require('fs');
20
20
  const tesseract = require('node-tesseract-ocr');
21
21
  const countryLanguage = require('country-language');
22
22
  const url = require('url');
23
+
23
24
  ////////////////////////////////////////////
24
25
 
25
26
  [
@@ -42,13 +43,14 @@ const url = require('url');
42
43
  module.exports[method + '_' + type] = async function (req, job_id, headers, file_obj) {
43
44
  req.drive_type = type;
44
45
 
45
- if (type === 'workspace' && !['get_drive_files', 'get_drive_file_info', 'check_drive_file'].includes(method)) {
46
- const { data: app_obj } = await db_module.get_app_obj(req.app_id);
47
- if (app_obj.app_type === 'datacenter') {
48
- const deploy_module = require(`${module_path}/deploy_module`);
49
- deploy_module.reset_deployment_cache(app_obj._id);
50
- }
51
- }
46
+ //// TBD
47
+ // if (type === 'workspace' && !['get_drive_files', 'get_drive_file_info', 'check_drive_file'].includes(method)) {
48
+ // const { data: app_obj } = await db_module.get_app_obj(req.app_id);
49
+ // if (app_obj.app_type === 'datacenter') {
50
+ // const deploy_module = require(`${module_path}/deploy_module`);
51
+ // deploy_module.reset_deployment_cache(app_obj._id);
52
+ // }
53
+ // }
52
54
 
53
55
  return await module.exports[method](req, job_id, headers, file_obj);
54
56
  };
@@ -2049,7 +2051,7 @@ export default {
2049
2051
 
2050
2052
  await fs_module.save_file(vite_config, code);
2051
2053
  //////////////////////
2052
- const _utils = require(path.join(process.env.XUDA_HOME, 'common', 'xuda-cpi-utils.js'));
2054
+
2053
2055
  await _utils.run_ssh_script(`npm i --prefix ${studio_drive_script_program_folder};`);
2054
2056
  const build_ret = await _utils.run_ssh_script(`npm run build --prefix ${studio_drive_script_program_folder};`);
2055
2057
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1192",
3
+ "version": "1.1.1194",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {