@xuda.io/drive_module 1.1.1379 → 1.1.1381

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 +3 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -948,7 +948,9 @@ export const extract_drive_file = async (req, job_id, headers) => {
948
948
 
949
949
  const ext = path.extname(file_path).toLowerCase();
950
950
 
951
- if (!_conf.archive_drive_ext.includes(ext)) {
951
+ const validation_ret = file_upload_validator(file_path);
952
+
953
+ if (!validation_ret.valid || validation_ret.category !== 'archive') {
952
954
  throw new Error('error - invalid archive file');
953
955
  }
954
956
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1379",
3
+ "version": "1.1.1381",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {