@minto-ai/tools 1.0.40 → 1.0.45

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.
@@ -23,6 +23,7 @@ declare const FileSuffixEnum: {
23
23
  readonly TXT: "txt";
24
24
  readonly HTML: "html";
25
25
  readonly ZIP: "zip";
26
+ readonly RAR: "rar";
26
27
  };
27
28
  /**
28
29
  * 图片后缀类型枚举
@@ -73,5 +74,6 @@ declare const MusicFileSuffixEnum: {
73
74
  */
74
75
  declare const CompressFileSuffixEnum: {
75
76
  readonly ZIP: "zip";
77
+ readonly RAR: "rar";
76
78
  };
77
79
  export { CompressFileSuffixEnum, DocumentFileSuffixEnum, FileSuffixEnum, ImageFileSuffixEnum, MusicFileSuffixEnum, PptFileSuffixEnum, VideoFileSuffixEnum, };
@@ -1,4 +1,4 @@
1
- import { DocumentFileSuffix, FileSuffix, ImageFileSuffix, MusicFileSuffix, PptFileSuffix, VideoFileSuffix } from './types';
1
+ import { CompressFileSuffix, DocumentFileSuffix, FileSuffix, ImageFileSuffix, MusicFileSuffix, PptFileSuffix, VideoFileSuffix } from './types';
2
2
  import { default as batchDownloadFile } from './batch-download-file';
3
3
  import { FileSuffixEnum, ImageFileSuffixEnum } from './extends/enum';
4
4
  import { default as getFileIcon } from './get-file-icon';
@@ -6,6 +6,7 @@ import { default as getFileName } from './get-file-name';
6
6
  import { default as getFileSuffix } from './get-file-suffix';
7
7
  import { default as getFileSuffixIcon } from './get-file-suffix-icon';
8
8
  import { default as getFileTitle } from './get-file-title';
9
+ import { default as isCompressFilePath } from './is-compress-file-path';
9
10
  import { default as isDocumentFilePath } from './is-document-file-path';
10
11
  import { default as isFilePath } from './is-file-path';
11
12
  import { default as isImageFilePath } from './is-image-file-path';
@@ -13,5 +14,5 @@ import { default as isMusicFilePath } from './is-music-file-path';
13
14
  import { default as isPptFilePath } from './is-ppt-file-path';
14
15
  import { default as isVideoFilePath } from './is-video-file-path';
15
16
  import { default as singleDownloadFile } from './single-download-file';
16
- export type { DocumentFileSuffix, FileSuffix, ImageFileSuffix, MusicFileSuffix, PptFileSuffix, VideoFileSuffix, };
17
- export { batchDownloadFile, FileSuffixEnum, getFileIcon, getFileName, getFileSuffix, getFileSuffixIcon, getFileTitle, ImageFileSuffixEnum, isDocumentFilePath, isFilePath, isImageFilePath, isMusicFilePath, isPptFilePath, isVideoFilePath, singleDownloadFile, };
17
+ export type { CompressFileSuffix, DocumentFileSuffix, FileSuffix, ImageFileSuffix, MusicFileSuffix, PptFileSuffix, VideoFileSuffix, };
18
+ export { batchDownloadFile, FileSuffixEnum, getFileIcon, getFileName, getFileSuffix, getFileSuffixIcon, getFileTitle, ImageFileSuffixEnum, isCompressFilePath, isDocumentFilePath, isFilePath, isImageFilePath, isMusicFilePath, isPptFilePath, isVideoFilePath, singleDownloadFile, };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 判断是否是有效的压缩文件路径(包含 rar、zip )。
3
+ *
4
+ * @param filePath 文件路径。
5
+ * @returns 是否是有效的压缩文件路径。
6
+ */
7
+ declare function isCompressFilePath(filePath: string): boolean;
8
+ export default isCompressFilePath;