@xuda.io/drive_module 1.1.720 → 1.1.722

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 +0 -12
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -335,21 +335,12 @@ exports.get_drive_files = async function (req) {
335
335
  );
336
336
  }
337
337
 
338
- // val.path = get_studio_path(
339
- // val.path,
340
- // app_id_master,
341
- // val.relativePath
342
- // ); //val.path
343
- // .replaceAll(path.join(_conf.studio_drive_path, app_id_master), "")
344
- // .replaceAll(val.relativePath, "");
345
-
346
338
  delete ret.data._id;
347
339
  delete ret.data._rev;
348
340
 
349
341
  delete ret.data.docType;
350
342
  delete ret.data.stat;
351
343
  } else {
352
- // if (drive_type === "studio") {
353
344
  if (val.type === "directory") {
354
345
  val.sizeInBytes = await get_folder_size(
355
346
  val.path,
@@ -359,9 +350,6 @@ exports.get_drive_files = async function (req) {
359
350
  }
360
351
  // supports file uploaded directly to the server
361
352
  val.access_link = await rep(val.path, "studio"); //+ "?r=" + Date.now();
362
- // } else {
363
- // values_to_delete.push(i);
364
- // }
365
353
  }
366
354
  val.date_created = new Date(val.stat.birthtime).valueOf();
367
355
  delete val.stat;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.720",
3
+ "version": "1.1.722",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {