component-shipinlv 0.1.6 → 0.1.7

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,2 @@
1
- declare const soundInfo: (filePath: string, isShowCover?: boolean) => Promise<unknown>;
1
+ declare const soundInfo: (filePath: string, isShowCover?: boolean) => Promise<LocalFile.SoundInfo>;
2
2
  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:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",