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<
|
1
|
+
declare const fileListContent: (fileDir: string, extName?: string[], maxCount?: number) => Promise<string[]>;
|
2
2
|
export default fileListContent;
|
package/dist/base/soundInfo.d.ts
CHANGED
@@ -1,2 +1,8 @@
|
|
1
|
-
|
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;
|
package/dist/base/soundInfo.js
CHANGED
@@ -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 = "\
|
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<
|
27
|
+
}, optionsQuery?: ServicesApi.RequestOptions): Promise<SoundInfo>;
|
27
28
|
export declare function downUrl(body: {
|
28
29
|
url: string;
|
29
30
|
savePath?: string;
|