@xuda.io/drive_module 1.1.1207 → 1.1.1209

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 +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -732,7 +732,7 @@ exports.create_drive_folder = async function (req, job_id, headers) {
732
732
  }
733
733
 
734
734
  case 'user': {
735
- folder_id = 'drive_folder_' + crypto.randomUUID();
735
+ folder_id = 'drive_folder_' + _utils.UUID(); //crypto.randomUUID();
736
736
  doc._id = folder_id;
737
737
  save_ret = await db_module.save_couch_doc('xuda_drive', doc);
738
738
  break;
@@ -962,7 +962,8 @@ exports.extract_drive_file = async function (req, job_id, headers) {
962
962
  new_file_id = 'drv_' + app_id_master + '_' + (await _common.xuda_get_uuid(doc.drive_type)) + ext;
963
963
  }
964
964
 
965
- const folder_name = 'drive_folder_' + (doc.drive_type === 'studio' ? path.basename(fileName) : crypto.randomUUID());
965
+ // const folder_name = 'drive_folder_' + (doc.drive_type === 'studio' ? path.basename(fileName) : crypto.randomUUID());
966
+ const folder_name = 'drive_folder_' + (doc.drive_type === 'studio' ? path.basename(fileName) : _utils.UUID());
966
967
 
967
968
  var dir = path.dirname(fileName);
968
969
  if (dir && dir !== '.') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1207",
3
+ "version": "1.1.1209",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {