component-shipinlv 0.1.6 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,2 @@
1
- declare const fileListContent: (fileDir: string, extName?: string[], maxCount?: number) => Promise<unknown>;
1
+ declare const fileListContent: (fileDir: string, extName?: string[], maxCount?: number) => Promise<string[]>;
2
2
  export default fileListContent;
@@ -36,7 +36,7 @@ var fileListContent = /*#__PURE__*/function () {
36
36
  case 2:
37
37
  openResult = _context.sent;
38
38
  if (openResult) {
39
- resolve(openResult);
39
+ resolve(openResult || []);
40
40
  }
41
41
  case 4:
42
42
  case "end":
@@ -1,2 +1,8 @@
1
- declare const soundInfo: (filePath: string, isShowCover?: boolean) => Promise<unknown>;
1
+ export interface SoundInfo {
2
+ title: string;
3
+ album: string;
4
+ artist: string;
5
+ coverUrl: string;
6
+ }
7
+ declare const soundInfo: (filePath: string, isShowCover?: boolean) => Promise<SoundInfo>;
2
8
  export default soundInfo;
@@ -24,7 +24,7 @@ var soundInfo = /*#__PURE__*/function () {
24
24
  }
25
25
  console.log('open In Folder err:', err);
26
26
  console.log('open In Folder err 2:', JSON.stringify(err));
27
- err.message = "\u9009\u53D6\u6587\u4EF6\u5939\u5931\u8D25\uFF1A".concat(err === null || err === void 0 ? void 0 : err.message, "\uFF01 \u6587\u4EF6\u5939\u5730\u5740\uFF1A ").concat(filePath);
27
+ err.message = "\u83B7\u53D6\u58F0\u97F3\u6587\u4EF6\u5931\u8D25\uFF1A".concat(err === null || err === void 0 ? void 0 : err.message, "\uFF01 \u6587\u4EF6\u5939\u5730\u5740\uFF1A ").concat(filePath);
28
28
  reject(err);
29
29
  });
30
30
  case 2:
@@ -1,3 +1,4 @@
1
+ import { SoundInfo } from "../../base/soundInfo";
1
2
  export declare function fileList(body: {
2
3
  path: string[];
3
4
  fileType: 'folder' | 'file' | '';
@@ -23,7 +24,7 @@ export declare function fileListContent(body: {
23
24
  export declare function soundInfo(body: {
24
25
  filePath: string;
25
26
  isShowCover?: boolean;
26
- }, optionsQuery?: ServicesApi.RequestOptions): Promise<LocalFile.SoundInfo>;
27
+ }, optionsQuery?: ServicesApi.RequestOptions): Promise<SoundInfo>;
27
28
  export declare function downUrl(body: {
28
29
  url: string;
29
30
  savePath?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",