@minto-ai/tools 1.0.47 → 1.0.49
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/dist/file/extends/enum.d.ts +3 -4
- package/dist/file/index.d.ts +2 -2
- package/dist/index.js +8 -4
- package/package.json +1 -1
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* 文件后缀类型枚举
|
|
3
3
|
*/
|
|
4
4
|
declare const FileSuffixEnum: {
|
|
5
|
-
readonly DOC: "doc";
|
|
6
5
|
readonly DOCX: "docx";
|
|
6
|
+
readonly DOC: "doc";
|
|
7
7
|
readonly PDF: "pdf";
|
|
8
|
-
readonly PPT: "ppt";
|
|
9
8
|
readonly PPTX: "pptx";
|
|
10
|
-
readonly
|
|
9
|
+
readonly PPT: "ppt";
|
|
11
10
|
readonly XLSX: "xlsx";
|
|
11
|
+
readonly XLS: "xls";
|
|
12
12
|
readonly JPG: "jpg";
|
|
13
13
|
readonly PNG: "png";
|
|
14
14
|
readonly JPEG: "jpeg";
|
|
@@ -21,7 +21,6 @@ declare const FileSuffixEnum: {
|
|
|
21
21
|
readonly MP3: "mp3";
|
|
22
22
|
readonly WAV: "wav";
|
|
23
23
|
readonly TXT: "txt";
|
|
24
|
-
readonly HTML: "html";
|
|
25
24
|
readonly ZIP: "zip";
|
|
26
25
|
readonly RAR: "rar";
|
|
27
26
|
};
|
package/dist/file/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CompressFileSuffix, DocumentFileSuffix, FileSuffix, ImageFileSuffix, MusicFileSuffix, PptFileSuffix, VideoFileSuffix } from './types';
|
|
2
2
|
import { default as batchDownloadFile } from './batch-download-file';
|
|
3
|
-
import { FileSuffixEnum, ImageFileSuffixEnum } from './extends/enum';
|
|
3
|
+
import { CompressFileSuffixEnum, DocumentFileSuffixEnum, FileSuffixEnum, ImageFileSuffixEnum, MusicFileSuffixEnum, PptFileSuffixEnum, VideoFileSuffixEnum } from './extends/enum';
|
|
4
4
|
import { default as getFileIcon } from './get-file-icon';
|
|
5
5
|
import { default as getFileName } from './get-file-name';
|
|
6
6
|
import { default as getFilePathNotQuery } from './get-file-path-not-query';
|
|
@@ -17,4 +17,4 @@ import { default as isPptFilePath } from './is-ppt-file-path';
|
|
|
17
17
|
import { default as isVideoFilePath } from './is-video-file-path';
|
|
18
18
|
import { default as singleDownloadFile } from './single-download-file';
|
|
19
19
|
export type { CompressFileSuffix, DocumentFileSuffix, FileSuffix, ImageFileSuffix, MusicFileSuffix, PptFileSuffix, VideoFileSuffix, };
|
|
20
|
-
export { batchDownloadFile, FileSuffixEnum, getFileIcon, getFileName, getFilePathNotQuery, getFileQuery, getFileSuffix, getFileSuffixIcon, getFileTitle, ImageFileSuffixEnum, isCompressFilePath, isDocumentFilePath, isFilePath, isImageFilePath, isMusicFilePath, isPptFilePath, isVideoFilePath, singleDownloadFile, };
|
|
20
|
+
export { batchDownloadFile, CompressFileSuffixEnum, DocumentFileSuffixEnum, FileSuffixEnum, getFileIcon, getFileName, getFilePathNotQuery, getFileQuery, getFileSuffix, getFileSuffixIcon, getFileTitle, ImageFileSuffixEnum, isCompressFilePath, isDocumentFilePath, isFilePath, isImageFilePath, isMusicFilePath, isPptFilePath, isVideoFilePath, MusicFileSuffixEnum, PptFileSuffixEnum, singleDownloadFile, VideoFileSuffixEnum, };
|
package/dist/index.js
CHANGED
|
@@ -13185,13 +13185,13 @@ function objectToQueryString(obj) {
|
|
|
13185
13185
|
}).join("&");
|
|
13186
13186
|
}
|
|
13187
13187
|
var FileSuffixEnum = {
|
|
13188
|
-
DOC: "doc",
|
|
13189
13188
|
DOCX: "docx",
|
|
13189
|
+
DOC: "doc",
|
|
13190
13190
|
PDF: "pdf",
|
|
13191
|
-
PPT: "ppt",
|
|
13192
13191
|
PPTX: "pptx",
|
|
13193
|
-
|
|
13192
|
+
PPT: "ppt",
|
|
13194
13193
|
XLSX: "xlsx",
|
|
13194
|
+
XLS: "xls",
|
|
13195
13195
|
JPG: "jpg",
|
|
13196
13196
|
PNG: "png",
|
|
13197
13197
|
JPEG: "jpeg",
|
|
@@ -13204,7 +13204,6 @@ var FileSuffixEnum = {
|
|
|
13204
13204
|
MP3: "mp3",
|
|
13205
13205
|
WAV: "wav",
|
|
13206
13206
|
TXT: "txt",
|
|
13207
|
-
HTML: "html",
|
|
13208
13207
|
ZIP: "zip",
|
|
13209
13208
|
RAR: "rar"
|
|
13210
13209
|
};
|
|
@@ -13671,8 +13670,13 @@ function createWorker(fun) {
|
|
|
13671
13670
|
return worker;
|
|
13672
13671
|
}
|
|
13673
13672
|
export {
|
|
13673
|
+
CompressFileSuffixEnum,
|
|
13674
|
+
DocumentFileSuffixEnum,
|
|
13674
13675
|
FileSuffixEnum,
|
|
13675
13676
|
ImageFileSuffixEnum,
|
|
13677
|
+
MusicFileSuffixEnum,
|
|
13678
|
+
PptFileSuffixEnum,
|
|
13679
|
+
VideoFileSuffixEnum,
|
|
13676
13680
|
add2 as add,
|
|
13677
13681
|
batchDownloadFile,
|
|
13678
13682
|
beParsedAsNumber,
|