migu-api-enhanced 2.27.0 → 2.27.2

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.
Files changed (81) hide show
  1. package/README.md +10 -5
  2. package/dist/YDRZ-HSTSW5FC.mjs +11 -0
  3. package/dist/YDRZ-HSTSW5FC.mjs.map +1 -0
  4. package/dist/YDRZ-KF4GXM2T.cjs +11 -0
  5. package/dist/YDRZ-KF4GXM2T.cjs.map +1 -0
  6. package/dist/activity/index.cjs +85 -0
  7. package/dist/activity/index.cjs.map +1 -0
  8. package/dist/activity/index.d.cts +70 -0
  9. package/dist/activity/index.d.ts +70 -0
  10. package/dist/activity/index.mjs +85 -0
  11. package/dist/activity/index.mjs.map +1 -0
  12. package/dist/chunk-4M7T22TX.mjs +21 -0
  13. package/dist/chunk-4M7T22TX.mjs.map +1 -0
  14. package/dist/chunk-AJYZYXNE.mjs +18 -0
  15. package/dist/chunk-AJYZYXNE.mjs.map +1 -0
  16. package/dist/chunk-C56WQXBU.cjs +13 -0
  17. package/dist/chunk-C56WQXBU.cjs.map +1 -0
  18. package/dist/chunk-EIM46AX6.mjs +144 -0
  19. package/dist/chunk-EIM46AX6.mjs.map +1 -0
  20. package/dist/chunk-H6YB76CZ.mjs +95 -0
  21. package/dist/chunk-H6YB76CZ.mjs.map +1 -0
  22. package/dist/chunk-HDGZY5R6.mjs +13 -0
  23. package/dist/chunk-HDGZY5R6.mjs.map +1 -0
  24. package/dist/chunk-ILRMRBMK.cjs +71 -0
  25. package/dist/chunk-ILRMRBMK.cjs.map +1 -0
  26. package/dist/chunk-JOOWMEQP.cjs +95 -0
  27. package/dist/chunk-JOOWMEQP.cjs.map +1 -0
  28. package/dist/chunk-JXEQGZBM.cjs +21 -0
  29. package/dist/chunk-JXEQGZBM.cjs.map +1 -0
  30. package/dist/chunk-KGXC32BN.cjs +185 -0
  31. package/dist/chunk-KGXC32BN.cjs.map +1 -0
  32. package/dist/chunk-QEH62Z4S.cjs +18 -0
  33. package/dist/chunk-QEH62Z4S.cjs.map +1 -0
  34. package/dist/chunk-QMBC3CRQ.mjs +51 -0
  35. package/dist/chunk-QMBC3CRQ.mjs.map +1 -0
  36. package/dist/chunk-QTK2O5KQ.mjs +71 -0
  37. package/dist/chunk-QTK2O5KQ.mjs.map +1 -0
  38. package/dist/chunk-RI7PQIHG.cjs +144 -0
  39. package/dist/chunk-RI7PQIHG.cjs.map +1 -0
  40. package/dist/chunk-TIKOSETY.cjs +51 -0
  41. package/dist/chunk-TIKOSETY.cjs.map +1 -0
  42. package/dist/chunk-VE3TRZRD.mjs +185 -0
  43. package/dist/chunk-VE3TRZRD.mjs.map +1 -0
  44. package/dist/decryptMrc-EGKXYBTB.mjs +11 -0
  45. package/dist/decryptMrc-EGKXYBTB.mjs.map +1 -0
  46. package/dist/decryptMrc-OOH5UIFN.cjs +11 -0
  47. package/dist/decryptMrc-OOH5UIFN.cjs.map +1 -0
  48. package/dist/index.cjs +310 -1628
  49. package/dist/index.cjs.map +1 -1
  50. package/dist/index.d.cts +2 -414
  51. package/dist/index.d.ts +2 -414
  52. package/dist/{index.js → index.mjs} +44 -1178
  53. package/dist/index.mjs.map +1 -0
  54. package/dist/login/index.cjs +315 -0
  55. package/dist/login/index.cjs.map +1 -0
  56. package/dist/login/index.d.cts +57 -0
  57. package/dist/login/index.d.ts +57 -0
  58. package/dist/login/index.mjs +315 -0
  59. package/dist/login/index.mjs.map +1 -0
  60. package/dist/mrc/index.cjs +39 -0
  61. package/dist/mrc/index.cjs.map +1 -0
  62. package/dist/mrc/index.d.cts +37 -0
  63. package/dist/mrc/index.d.ts +37 -0
  64. package/dist/mrc/index.mjs +39 -0
  65. package/dist/mrc/index.mjs.map +1 -0
  66. package/dist/publicKey-D2LR2HGH.cjs +8 -0
  67. package/dist/publicKey-D2LR2HGH.cjs.map +1 -0
  68. package/dist/publicKey-YCVYQ54R.mjs +8 -0
  69. package/dist/publicKey-YCVYQ54R.mjs.map +1 -0
  70. package/dist/rsalib-GGMEGQT2.cjs +9 -0
  71. package/dist/rsalib-GGMEGQT2.cjs.map +1 -0
  72. package/dist/rsalib-HO4SSCTO.mjs +9 -0
  73. package/dist/rsalib-HO4SSCTO.mjs.map +1 -0
  74. package/dist/utils/index.cjs +81 -0
  75. package/dist/utils/index.cjs.map +1 -0
  76. package/dist/utils/index.d.cts +100 -0
  77. package/dist/utils/index.d.ts +100 -0
  78. package/dist/utils/index.mjs +81 -0
  79. package/dist/utils/index.mjs.map +1 -0
  80. package/package.json +24 -4
  81. package/dist/index.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkTIKOSETYcjs = require('./chunk-TIKOSETY.cjs');
5
+
6
+
7
+
8
+ exports.RSAKey = _chunkTIKOSETYcjs.RSAKey; exports.hexToBase64Url = _chunkTIKOSETYcjs.hexToBase64Url;
9
+ //# sourceMappingURL=rsalib-GGMEGQT2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["d:\\Javascript\\migu-api-enhanced\\dist\\rsalib-GGMEGQT2.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,qGAAC","file":"D:\\Javascript\\migu-api-enhanced\\dist\\rsalib-GGMEGQT2.cjs"}
@@ -0,0 +1,9 @@
1
+ import {
2
+ RSAKey,
3
+ hexToBase64Url
4
+ } from "./chunk-QMBC3CRQ.mjs";
5
+ export {
6
+ RSAKey,
7
+ hexToBase64Url
8
+ };
9
+ //# sourceMappingURL=rsalib-HO4SSCTO.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,81 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _chunkKGXC32BNcjs = require('../chunk-KGXC32BN.cjs');
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+ var _chunkILRMRBMKcjs = require('../chunk-ILRMRBMK.cjs');
14
+
15
+
16
+ var _chunkC56WQXBUcjs = require('../chunk-C56WQXBU.cjs');
17
+
18
+
19
+ var _chunkQEH62Z4Scjs = require('../chunk-QEH62Z4S.cjs');
20
+
21
+
22
+ var _chunkTIKOSETYcjs = require('../chunk-TIKOSETY.cjs');
23
+
24
+
25
+ var _chunkJXEQGZBMcjs = require('../chunk-JXEQGZBM.cjs');
26
+ require('../chunk-JOOWMEQP.cjs');
27
+
28
+
29
+
30
+
31
+ var _chunkRI7PQIHGcjs = require('../chunk-RI7PQIHG.cjs');
32
+
33
+ // src/utils/resourceType.ts
34
+ var getResourceId = (name) => {
35
+ name = name.toLowerCase().trim();
36
+ switch (name) {
37
+ case "song":
38
+ return "2";
39
+ case "album":
40
+ return "2003";
41
+ case "singer":
42
+ case "artist":
43
+ return "2002";
44
+ case "playlist":
45
+ return "2021";
46
+ case "radio":
47
+ return "2016";
48
+ case "comment":
49
+ return "3002";
50
+ case "svideo":
51
+ return "6000";
52
+ case "mv":
53
+ return "D";
54
+ case "dalbum":
55
+ return "5";
56
+ case "vrbt":
57
+ return "M";
58
+ default:
59
+ return "";
60
+ }
61
+ };
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+ exports.RSAKey = _chunkTIKOSETYcjs.RSAKey; exports.URLParams = _chunkC56WQXBUcjs.URLParams; exports.YDRZ = _chunkRI7PQIHGcjs.YDRZ; exports.changeQuality = _chunkILRMRBMKcjs.changeQuality; exports.decryptMrc = _chunkKGXC32BNcjs.decryptMrc; exports.formatMrc = _chunkKGXC32BNcjs.formatMrc; exports.getDeviceId = _chunkQEH62Z4Scjs.getDeviceId; exports.getPublicKey = _chunkJXEQGZBMcjs.getPublicKey; exports.getQuality = _chunkILRMRBMKcjs.getQuality; exports.getResourceId = getResourceId; exports.isQuality = _chunkILRMRBMKcjs.isQuality; exports.md5 = _chunkRI7PQIHGcjs.md5; exports.qualityList = _chunkILRMRBMKcjs.qualityList; exports.toWordTime = _chunkKGXC32BNcjs.toWordTime; exports.toneFormat = _chunkILRMRBMKcjs.toneFormat; exports.toneUrl = _chunkILRMRBMKcjs.toneUrl; exports.yTime = _chunkRI7PQIHGcjs.yTime;
81
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["d:\\Javascript\\migu-api-enhanced\\dist\\utils\\index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACF,yDAA8B;AAC9B;AACA;AACA,IAAI,cAAc,EAAE,CAAC,IAAI,EAAE,GAAG;AAC9B,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAClC,EAAE,OAAO,CAAC,IAAI,EAAE;AAChB,IAAI,KAAK,MAAM;AACf,MAAM,OAAO,GAAG;AAChB,IAAI,KAAK,OAAO;AAChB,MAAM,OAAO,MAAM;AACnB,IAAI,KAAK,QAAQ;AACjB,IAAI,KAAK,QAAQ;AACjB,MAAM,OAAO,MAAM;AACnB,IAAI,KAAK,UAAU;AACnB,MAAM,OAAO,MAAM;AACnB,IAAI,KAAK,OAAO;AAChB,MAAM,OAAO,MAAM;AACnB,IAAI,KAAK,SAAS;AAClB,MAAM,OAAO,MAAM;AACnB,IAAI,KAAK,QAAQ;AACjB,MAAM,OAAO,MAAM;AACnB,IAAI,KAAK,IAAI;AACb,MAAM,OAAO,GAAG;AAChB,IAAI,KAAK,QAAQ;AACjB,MAAM,OAAO,GAAG;AAChB,IAAI,KAAK,MAAM;AACf,MAAM,OAAO,GAAG;AAChB,IAAI,OAAO;AACX,MAAM,OAAO,EAAE;AACf,EAAE;AACF,CAAC;AACD;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,4yBAAC","file":"D:\\Javascript\\migu-api-enhanced\\dist\\utils\\index.cjs","sourcesContent":[null]}
@@ -0,0 +1,100 @@
1
+ declare function getDeviceId(a?: number, b?: number): string;
2
+
3
+ declare const getPublicKey: () => Promise<{
4
+ publicExponent: string;
5
+ modulus: string;
6
+ }>;
7
+
8
+ declare class RSAKey {
9
+ private publicKey;
10
+ setPublic(modulus: string, exponent: string): void;
11
+ encrypt(text: string): string | null;
12
+ }
13
+
14
+ declare function URLParams($: object | string): string;
15
+
16
+ declare const qualityList: readonly ["LQ", "PQ", "HQ", "SQ", "ZQ24", "ZQ32", "Z3D", "3D60"];
17
+ type Quality = (typeof qualityList)[number];
18
+ declare const toneUrl: {
19
+ LQ: string;
20
+ PQ: string;
21
+ HQ: string;
22
+ SQ: string;
23
+ ZQ24: string;
24
+ ZQ32: string;
25
+ Z3D: string;
26
+ '3D60': string;
27
+ };
28
+ declare const toneFormat: {
29
+ LQ: string;
30
+ PQ: string;
31
+ HQ: string;
32
+ SQ: string;
33
+ ZQ24: string;
34
+ ZQ32: string;
35
+ Z3D: string;
36
+ '3D60': string;
37
+ };
38
+ declare function isQuality(quality: string | undefined): quality is Quality;
39
+ declare function getQuality(url: string): Quality | '';
40
+ declare function changeQuality(url: string, quality: string, originalQuality?: string, splitQuery?: boolean): string;
41
+
42
+ declare const getResourceId: (name: string) => "" | "2" | "2003" | "2002" | "2021" | "2016" | "3002" | "6000" | "D" | "5" | "M";
43
+
44
+ /**
45
+ * MRC 解密入口:将十六进制密文解密为明文字符串
46
+ */
47
+ declare function decryptMrc(data: string): string;
48
+ declare function toWordTime(times: string): string;
49
+ /**
50
+ * 格式化 MRC 歌词为标准 LRC 格式
51
+ * @param data MRC 歌词字符串
52
+ * @returns 标准LRC
53
+ */
54
+ declare function formatMrc(data: string): string;
55
+
56
+ type LoginOneClickData = {
57
+ version: string;
58
+ appId: string;
59
+ openType: string;
60
+ expandParams: string;
61
+ isTest: boolean;
62
+ sign: string;
63
+ getNetworkType: string;
64
+ getMsisdnMask: string;
65
+ traceId: string;
66
+ msgId: string;
67
+ timestamp: string;
68
+ uuid: string;
69
+ businessType: string;
70
+ userInformations: string;
71
+ };
72
+ /**
73
+ * 调用方实际只需提供这些字段;其余字段由 getTokenInfo 内部补齐。
74
+ */
75
+ type GetTokenInfoInput = Pick<LoginOneClickData, 'version' | 'appId' | 'openType' | 'expandParams' | 'isTest' | 'sign' | 'getNetworkType' | 'getMsisdnMask'>;
76
+ declare function md5(s: string): string;
77
+ declare function yTime(): string;
78
+ declare const YDRZ: {
79
+ optparams: {
80
+ uuid: string;
81
+ msgId: string;
82
+ traceId: string;
83
+ businessType: string;
84
+ appId: string;
85
+ timestamp: string;
86
+ isimge: boolean;
87
+ expandParams: string;
88
+ userInformations: string;
89
+ CMRequestApi: string;
90
+ };
91
+ randomString(len: number, range?: number): string;
92
+ randomRange(min: number, max: number): number;
93
+ getUA(): string;
94
+ uaE(str: string): string;
95
+ getUserInfo(): string;
96
+ getSign(appID: string, version: string): string;
97
+ getTokenInfo(data: GetTokenInfoInput): Promise<string | undefined>;
98
+ };
99
+
100
+ export { type GetTokenInfoInput, type LoginOneClickData, type Quality, RSAKey, URLParams, YDRZ, changeQuality, decryptMrc, formatMrc, getDeviceId, getPublicKey, getQuality, getResourceId, isQuality, md5, qualityList, toWordTime, toneFormat, toneUrl, yTime };
@@ -0,0 +1,100 @@
1
+ declare function getDeviceId(a?: number, b?: number): string;
2
+
3
+ declare const getPublicKey: () => Promise<{
4
+ publicExponent: string;
5
+ modulus: string;
6
+ }>;
7
+
8
+ declare class RSAKey {
9
+ private publicKey;
10
+ setPublic(modulus: string, exponent: string): void;
11
+ encrypt(text: string): string | null;
12
+ }
13
+
14
+ declare function URLParams($: object | string): string;
15
+
16
+ declare const qualityList: readonly ["LQ", "PQ", "HQ", "SQ", "ZQ24", "ZQ32", "Z3D", "3D60"];
17
+ type Quality = (typeof qualityList)[number];
18
+ declare const toneUrl: {
19
+ LQ: string;
20
+ PQ: string;
21
+ HQ: string;
22
+ SQ: string;
23
+ ZQ24: string;
24
+ ZQ32: string;
25
+ Z3D: string;
26
+ '3D60': string;
27
+ };
28
+ declare const toneFormat: {
29
+ LQ: string;
30
+ PQ: string;
31
+ HQ: string;
32
+ SQ: string;
33
+ ZQ24: string;
34
+ ZQ32: string;
35
+ Z3D: string;
36
+ '3D60': string;
37
+ };
38
+ declare function isQuality(quality: string | undefined): quality is Quality;
39
+ declare function getQuality(url: string): Quality | '';
40
+ declare function changeQuality(url: string, quality: string, originalQuality?: string, splitQuery?: boolean): string;
41
+
42
+ declare const getResourceId: (name: string) => "" | "2" | "2003" | "2002" | "2021" | "2016" | "3002" | "6000" | "D" | "5" | "M";
43
+
44
+ /**
45
+ * MRC 解密入口:将十六进制密文解密为明文字符串
46
+ */
47
+ declare function decryptMrc(data: string): string;
48
+ declare function toWordTime(times: string): string;
49
+ /**
50
+ * 格式化 MRC 歌词为标准 LRC 格式
51
+ * @param data MRC 歌词字符串
52
+ * @returns 标准LRC
53
+ */
54
+ declare function formatMrc(data: string): string;
55
+
56
+ type LoginOneClickData = {
57
+ version: string;
58
+ appId: string;
59
+ openType: string;
60
+ expandParams: string;
61
+ isTest: boolean;
62
+ sign: string;
63
+ getNetworkType: string;
64
+ getMsisdnMask: string;
65
+ traceId: string;
66
+ msgId: string;
67
+ timestamp: string;
68
+ uuid: string;
69
+ businessType: string;
70
+ userInformations: string;
71
+ };
72
+ /**
73
+ * 调用方实际只需提供这些字段;其余字段由 getTokenInfo 内部补齐。
74
+ */
75
+ type GetTokenInfoInput = Pick<LoginOneClickData, 'version' | 'appId' | 'openType' | 'expandParams' | 'isTest' | 'sign' | 'getNetworkType' | 'getMsisdnMask'>;
76
+ declare function md5(s: string): string;
77
+ declare function yTime(): string;
78
+ declare const YDRZ: {
79
+ optparams: {
80
+ uuid: string;
81
+ msgId: string;
82
+ traceId: string;
83
+ businessType: string;
84
+ appId: string;
85
+ timestamp: string;
86
+ isimge: boolean;
87
+ expandParams: string;
88
+ userInformations: string;
89
+ CMRequestApi: string;
90
+ };
91
+ randomString(len: number, range?: number): string;
92
+ randomRange(min: number, max: number): number;
93
+ getUA(): string;
94
+ uaE(str: string): string;
95
+ getUserInfo(): string;
96
+ getSign(appID: string, version: string): string;
97
+ getTokenInfo(data: GetTokenInfoInput): Promise<string | undefined>;
98
+ };
99
+
100
+ export { type GetTokenInfoInput, type LoginOneClickData, type Quality, RSAKey, URLParams, YDRZ, changeQuality, decryptMrc, formatMrc, getDeviceId, getPublicKey, getQuality, getResourceId, isQuality, md5, qualityList, toWordTime, toneFormat, toneUrl, yTime };
@@ -0,0 +1,81 @@
1
+ import {
2
+ decryptMrc,
3
+ formatMrc,
4
+ toWordTime
5
+ } from "../chunk-VE3TRZRD.mjs";
6
+ import {
7
+ changeQuality,
8
+ getQuality,
9
+ isQuality,
10
+ qualityList,
11
+ toneFormat,
12
+ toneUrl
13
+ } from "../chunk-QTK2O5KQ.mjs";
14
+ import {
15
+ URLParams
16
+ } from "../chunk-HDGZY5R6.mjs";
17
+ import {
18
+ getDeviceId
19
+ } from "../chunk-AJYZYXNE.mjs";
20
+ import {
21
+ RSAKey
22
+ } from "../chunk-QMBC3CRQ.mjs";
23
+ import {
24
+ getPublicKey
25
+ } from "../chunk-4M7T22TX.mjs";
26
+ import "../chunk-H6YB76CZ.mjs";
27
+ import {
28
+ YDRZ,
29
+ md5,
30
+ yTime
31
+ } from "../chunk-EIM46AX6.mjs";
32
+
33
+ // src/utils/resourceType.ts
34
+ var getResourceId = (name) => {
35
+ name = name.toLowerCase().trim();
36
+ switch (name) {
37
+ case "song":
38
+ return "2";
39
+ case "album":
40
+ return "2003";
41
+ case "singer":
42
+ case "artist":
43
+ return "2002";
44
+ case "playlist":
45
+ return "2021";
46
+ case "radio":
47
+ return "2016";
48
+ case "comment":
49
+ return "3002";
50
+ case "svideo":
51
+ return "6000";
52
+ case "mv":
53
+ return "D";
54
+ case "dalbum":
55
+ return "5";
56
+ case "vrbt":
57
+ return "M";
58
+ default:
59
+ return "";
60
+ }
61
+ };
62
+ export {
63
+ RSAKey,
64
+ URLParams,
65
+ YDRZ,
66
+ changeQuality,
67
+ decryptMrc,
68
+ formatMrc,
69
+ getDeviceId,
70
+ getPublicKey,
71
+ getQuality,
72
+ getResourceId,
73
+ isQuality,
74
+ md5,
75
+ qualityList,
76
+ toWordTime,
77
+ toneFormat,
78
+ toneUrl,
79
+ yTime
80
+ };
81
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/resourceType.ts"],"sourcesContent":["export const getResourceId = (name: string) => {\r\n name = name.toLowerCase().trim();\r\n switch (name) {\r\n case 'song':\r\n return '2';\r\n case 'album':\r\n return '2003';\r\n case 'singer':\r\n case 'artist':\r\n return '2002';\r\n case 'playlist':\r\n return '2021';\r\n case 'radio':\r\n return '2016';\r\n case 'comment':\r\n return '3002';\r\n case 'svideo':\r\n return '6000';\r\n case 'mv':\r\n return 'D';\r\n case 'dalbum':\r\n return '5';\r\n case 'vrbt':\r\n return 'M';\r\n default:\r\n return '';\r\n }\r\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAM,gBAAgB,CAAC,SAAiB;AAC3C,SAAO,KAAK,YAAY,EAAE,KAAK;AAC/B,UAAQ,MAAM;AAAA,IACV,KAAK;AACD,aAAO;AAAA,IACX,KAAK;AACD,aAAO;AAAA,IACX,KAAK;AAAA,IACL,KAAK;AACD,aAAO;AAAA,IACX,KAAK;AACD,aAAO;AAAA,IACX,KAAK;AACD,aAAO;AAAA,IACX,KAAK;AACD,aAAO;AAAA,IACX,KAAK;AACD,aAAO;AAAA,IACX,KAAK;AACD,aAAO;AAAA,IACX,KAAK;AACD,aAAO;AAAA,IACX,KAAK;AACD,aAAO;AAAA,IACX;AACI,aAAO;AAAA,EACf;AACJ;","names":[]}
package/package.json CHANGED
@@ -1,18 +1,38 @@
1
1
  {
2
2
  "name": "migu-api-enhanced",
3
- "version": "2.27.0",
3
+ "version": "2.27.2",
4
4
  "license": "MIT",
5
5
  "author": "Domdkw",
6
6
  "description": "咪咕音乐 API 增强 SDK(多平台部署 + NPM 包)",
7
7
  "type": "module",
8
- "main": "./dist/index.cjs",
9
- "module": "./dist/index.js",
8
+ "main": "./dist/index.mjs",
9
+ "module": "./dist/index.mjs",
10
10
  "types": "./dist/index.d.ts",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./dist/index.d.ts",
14
- "import": "./dist/index.js",
14
+ "import": "./dist/index.mjs",
15
15
  "require": "./dist/index.cjs"
16
+ },
17
+ "./utils": {
18
+ "types": "./dist/utils/index.d.ts",
19
+ "import": "./dist/utils/index.mjs",
20
+ "require": "./dist/utils/index.cjs"
21
+ },
22
+ "./mrc": {
23
+ "types": "./dist/mrc/index.d.ts",
24
+ "import": "./dist/mrc/index.mjs",
25
+ "require": "./dist/mrc/index.cjs"
26
+ },
27
+ "./login": {
28
+ "types": "./dist/login/index.d.ts",
29
+ "import": "./dist/login/index.mjs",
30
+ "require": "./dist/login/index.cjs"
31
+ },
32
+ "./activity": {
33
+ "types": "./dist/activity/index.d.ts",
34
+ "import": "./dist/activity/index.mjs",
35
+ "require": "./dist/activity/index.cjs"
16
36
  }
17
37
  },
18
38
  "files": [