@xuda.io/drive_module 1.1.1446 → 1.1.1451
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 +9 -6
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -279,13 +279,17 @@ export const get_drive_files = async (req) => {
|
|
|
279
279
|
};
|
|
280
280
|
};
|
|
281
281
|
const get_user_files = async () => {
|
|
282
|
+
debugger;
|
|
282
283
|
opt.selector.docType = 'user_drive';
|
|
283
284
|
opt.selector.uid = uid;
|
|
284
285
|
const ret = await find_contact_query(uid, opt);
|
|
285
286
|
const file_doc = await get_user_drive_file(uid, path.basename(file_path) || '/');
|
|
287
|
+
|
|
288
|
+
const app_id = await get_account_default_project_id(uid);
|
|
289
|
+
|
|
286
290
|
return {
|
|
287
291
|
code: 1,
|
|
288
|
-
data: await fetch_drive_files(ret, file_doc,
|
|
292
|
+
data: await fetch_drive_files(ret, file_doc, app_id, uid),
|
|
289
293
|
};
|
|
290
294
|
};
|
|
291
295
|
const get_studio_files = async () => {
|
|
@@ -1978,8 +1982,6 @@ const save_drive_doc = async (drive_type, uid, app_id, doc) => {
|
|
|
1978
1982
|
};
|
|
1979
1983
|
|
|
1980
1984
|
export const compile_javascript_program_in_studio_drive = async (req, job_id) => {
|
|
1981
|
-
// debugger;
|
|
1982
|
-
|
|
1983
1985
|
const { app_id, doc } = req;
|
|
1984
1986
|
|
|
1985
1987
|
try {
|
|
@@ -2069,10 +2071,11 @@ export const compile_javascript_program_in_studio_drive = async (req, job_id) =>
|
|
|
2069
2071
|
for await (const dep of allDependencies) {
|
|
2070
2072
|
if (!devDependencies[dep]) {
|
|
2071
2073
|
console.log(`Adding dependency: ${dep}`);
|
|
2072
|
-
const npm_ret = await getPackageManifest({
|
|
2073
|
-
|
|
2074
|
-
});
|
|
2074
|
+
// const npm_ret = await getPackageManifest({
|
|
2075
|
+
// name: dep,
|
|
2076
|
+
// });
|
|
2075
2077
|
|
|
2078
|
+
const npm_ret = await getPackageManifest(dep);
|
|
2076
2079
|
devDependencies[dep] = npm_ret.version;
|
|
2077
2080
|
}
|
|
2078
2081
|
}
|