@xuda.io/drive_module 1.1.1058 → 1.1.1060
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.js +10 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2097,7 +2097,10 @@ const save_drive_doc = async function (drive_type, app_id, doc) {
|
|
|
2097
2097
|
return save_ret;
|
|
2098
2098
|
};
|
|
2099
2099
|
|
|
2100
|
-
exports.compile_javascript_program_in_studio_drive = async function (
|
|
2100
|
+
exports.compile_javascript_program_in_studio_drive = async function (
|
|
2101
|
+
req,
|
|
2102
|
+
job_id
|
|
2103
|
+
) {
|
|
2101
2104
|
const { app_id, prog_id } = req;
|
|
2102
2105
|
try {
|
|
2103
2106
|
const { data: doc } = await db_module.get_app_couch_doc(app_id, prog_id);
|
|
@@ -2298,7 +2301,9 @@ export default {
|
|
|
2298
2301
|
data: build_ret,
|
|
2299
2302
|
dependencies: devDependencies,
|
|
2300
2303
|
};
|
|
2301
|
-
|
|
2304
|
+
if (job_id) {
|
|
2305
|
+
return doc.vite_build_res;
|
|
2306
|
+
}
|
|
2302
2307
|
db_module.save_app_couch_doc(app_id, doc);
|
|
2303
2308
|
} catch (err) {
|
|
2304
2309
|
doc.vite_build_res = {
|
|
@@ -2306,6 +2311,9 @@ export default {
|
|
|
2306
2311
|
data: err.message,
|
|
2307
2312
|
};
|
|
2308
2313
|
console.error(doc);
|
|
2314
|
+
if (job_id) {
|
|
2315
|
+
return doc.vite_build_res;
|
|
2316
|
+
}
|
|
2309
2317
|
db_module.save_app_couch_doc(app_id, doc);
|
|
2310
2318
|
}
|
|
2311
2319
|
};
|