@minto-ai/tools 1.0.35 → 1.0.37

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.
@@ -1,4 +1,4 @@
1
- import { DocumentFileSuffix, FileSuffix, ImageFileSuffix, PptFileSuffix, VideoFileSuffix } from './types';
1
+ import { 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';
@@ -13,5 +13,5 @@ import { default as isMusicFilePath } from './is-music-file-path';
13
13
  import { default as isPptFilePath } from './is-ppt-file-path';
14
14
  import { default as isVideoFilePath } from './is-video-file-path';
15
15
  import { default as singleDownloadFile } from './single-download-file';
16
- export type { DocumentFileSuffix, FileSuffix, ImageFileSuffix, PptFileSuffix, VideoFileSuffix, };
16
+ export type { DocumentFileSuffix, FileSuffix, ImageFileSuffix, MusicFileSuffix, PptFileSuffix, VideoFileSuffix, };
17
17
  export { batchDownloadFile, FileSuffixEnum, getFileIcon, getFileName, getFileSuffix, getFileSuffixIcon, getFileTitle, ImageFileSuffixEnum, isDocumentFilePath, isFilePath, isImageFilePath, isMusicFilePath, isPptFilePath, isVideoFilePath, singleDownloadFile, };
package/dist/index.js CHANGED
@@ -158,7 +158,7 @@ function getFileSuffix(filePath) {
158
158
  }
159
159
  function getFileTitle(filePath) {
160
160
  const matchResult = filePath.match(filePathRegex);
161
- return matchResult ? matchResult[3] : "";
161
+ return matchResult ? matchResult[2] : "";
162
162
  }
163
163
  function getFileName(filePath) {
164
164
  const fileTitle = getFileTitle(filePath);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@minto-ai/tools",
3
3
  "type": "module",
4
- "version": "1.0.35",
4
+ "version": "1.0.37",
5
5
  "description": "明途公共工具库",
6
6
  "author": "hcc",
7
7
  "license": "ISC",