@xuda.io/drive_module 1.1.1387 → 1.1.1389

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.mjs +2 -8
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -420,7 +420,7 @@ export const get_drive_files = async (req) => {
420
420
  export const get_drive_file_info = async (req, job_id, headers) => {
421
421
  try {
422
422
  const { type, drive_type, uid, app_id, file_path } = req;
423
-
423
+ debugger;
424
424
  let doc = await get_drive_doc(type, drive_type, app_id, uid, file_path, headers);
425
425
 
426
426
  delete doc._id;
@@ -2441,12 +2441,6 @@ export const file_upload_validator = function (file_name) {
2441
2441
  case 'md':
2442
2442
  return { valid: true, category: 'text', mime: 'text/markdown' };
2443
2443
 
2444
- // ==============================
2445
- // VALIDATE DESIGN FILES
2446
- // ==============================
2447
- case 'psd':
2448
- return { valid: true, category: 'image', mime: 'image/vnd.adobe.photoshop' };
2449
-
2450
2444
  // ==============================
2451
2445
  // VALIDATE ARCHIVE & PACKAGE FILES
2452
2446
  // ==============================
@@ -2496,7 +2490,7 @@ export const file_upload_validator = function (file_name) {
2496
2490
  case 'tif':
2497
2491
  return { valid: true, category: 'image', mime: 'image/tiff' };
2498
2492
  case 'psd':
2499
- return { valid: true, category: 'image', mime: 'image/vnd.adobe.photoshop' };
2493
+ return { valid: true, category: 'design', mime: 'image/vnd.adobe.photoshop' };
2500
2494
 
2501
2495
  // ==============================
2502
2496
  // DOCUMENTS & SPREADSHEETS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1387",
3
+ "version": "1.1.1389",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {