@xuda.io/drive_module 1.1.1057 → 1.1.1059

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 +6 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2098,9 +2098,10 @@ const save_drive_doc = async function (drive_type, app_id, doc) {
2098
2098
  };
2099
2099
 
2100
2100
  exports.compile_javascript_program_in_studio_drive = async function (
2101
- app_id,
2102
- prog_id
2101
+ req,
2102
+ job_id
2103
2103
  ) {
2104
+ const { app_id, prog_id } = req;
2104
2105
  try {
2105
2106
  const { data: doc } = await db_module.get_app_couch_doc(app_id, prog_id);
2106
2107
 
@@ -2300,6 +2301,9 @@ export default {
2300
2301
  data: build_ret,
2301
2302
  dependencies: devDependencies,
2302
2303
  };
2304
+ if (job_id) {
2305
+ return doc.vite_build_res;
2306
+ }
2303
2307
  db_module.save_app_couch_doc(app_id, doc);
2304
2308
  } catch (err) {
2305
2309
  doc.vite_build_res = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1057",
3
+ "version": "1.1.1059",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {