@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.
- package/index.mjs +3 -1
- 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
|
-
|
|
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
|
|