@xuda.io/drive_module 1.1.1229 → 1.1.1231
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/index.mjs +4 -4
- package/package.json +2 -2
package/index.mjs
CHANGED
|
@@ -27,9 +27,9 @@ const _common = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda_no
|
|
|
27
27
|
const _utils = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda-cpi-utils.mjs'));
|
|
28
28
|
|
|
29
29
|
const module_path = path.join(process.env.XUDA_HOME, 'cpi') + (!_conf.is_debug ? '/node_modules/@xuda.io' : '');
|
|
30
|
-
const fs_module =
|
|
31
|
-
const db_module =
|
|
32
|
-
const misc_module =
|
|
30
|
+
const fs_module = await import(`${module_path}/fs_module/index.mjs`);
|
|
31
|
+
const db_module = await import(`${module_path}/db_module/index.mjs`);
|
|
32
|
+
const misc_module = await import(`${module_path}/misc_module/index.mjs`);
|
|
33
33
|
|
|
34
34
|
////////////////////////////////////////////
|
|
35
35
|
|
|
@@ -1734,7 +1734,7 @@ export const compile_javascript_program_in_studio_drive = async (req, job_id) =>
|
|
|
1734
1734
|
|
|
1735
1735
|
try {
|
|
1736
1736
|
const studio_drive_script_folder = path.join(_conf.studio_drive_path, app_id, 'scripts');
|
|
1737
|
-
const fs_module =
|
|
1737
|
+
const fs_module = await import(`${module_path}/fs_module/index.mjs`);
|
|
1738
1738
|
if (!(await fs_module.file_exists(studio_drive_script_folder))) {
|
|
1739
1739
|
await fs_module.mkdir(studio_drive_script_folder, 0o775);
|
|
1740
1740
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xuda.io/drive_module",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1231",
|
|
4
4
|
"description": "Xuda Drive Server Module",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"dependencies": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"mammoth": "^1.6.0",
|
|
16
16
|
"node-xlsx": "^0.23.0",
|
|
17
17
|
"aws-sdk": "^2.1563.0",
|
|
18
|
-
"query-registry": "^2.
|
|
18
|
+
"query-registry": "^4.2.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {},
|
|
21
21
|
"scripts": {
|