@xuda.io/drive_module 1.1.1381 → 1.1.1382
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
|
@@ -995,6 +995,8 @@ export const extract_drive_file = async (req, job_id, headers) => {
|
|
|
995
995
|
entry.pipe(fs.createWriteStream(extract_path));
|
|
996
996
|
}
|
|
997
997
|
|
|
998
|
+
const validation_ret = file_upload_validator(fileName);
|
|
999
|
+
|
|
998
1000
|
let file_doc = {
|
|
999
1001
|
_id: file_doc_id,
|
|
1000
1002
|
|
|
@@ -1010,7 +1012,7 @@ export const extract_drive_file = async (req, job_id, headers) => {
|
|
|
1010
1012
|
ip: headers['cf-connecting-ip'],
|
|
1011
1013
|
country: headers['cf-ipcountry'],
|
|
1012
1014
|
file_ext: ext,
|
|
1013
|
-
is_archive:
|
|
1015
|
+
is_archive: validation_ret.valid && validation_ret.category === 'archive' ? true : false,
|
|
1014
1016
|
size,
|
|
1015
1017
|
};
|
|
1016
1018
|
if (type === 'Directory') {
|