karin-plugin-mys-core 1.0.12 → 1.0.14
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.
- package/lib/apps/MiHoYoLogin.js +3 -2
- package/lib/apps/MysDevice.js +2 -1
- package/lib/apps/UIDManage.js +3 -2
- package/lib/{chunk-SZHK7OGF.js → chunk-KJAYW3SO.js} +1 -1
- package/lib/{chunk-HTL64YH2.js → chunk-V2MCX7HT.js} +3 -14
- package/lib/chunk-YFMJTWDG.js +29 -0
- package/lib/core/index.d.ts +22 -0
- package/lib/core/index.js +12 -0
- package/lib/exports/mys/index.js +2 -1
- package/package.json +6 -1
package/lib/apps/MiHoYoLogin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShowBindAccountCmdFunc
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-KJAYW3SO.js";
|
|
4
4
|
import "../chunk-A5FZEOIN.js";
|
|
5
5
|
import {
|
|
6
6
|
UserInfo,
|
|
@@ -9,8 +9,9 @@ import {
|
|
|
9
9
|
getTokenByGameToken,
|
|
10
10
|
getUserFullInfo,
|
|
11
11
|
queryQRcode
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-V2MCX7HT.js";
|
|
13
13
|
import "../chunk-IASM5MM5.js";
|
|
14
|
+
import "../chunk-YFMJTWDG.js";
|
|
14
15
|
import "../chunk-SHLPPEAY.js";
|
|
15
16
|
import "../chunk-UIPRZFST.js";
|
|
16
17
|
import {
|
package/lib/apps/MysDevice.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeviceInfo,
|
|
3
3
|
UserInfo
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-V2MCX7HT.js";
|
|
5
5
|
import "../chunk-IASM5MM5.js";
|
|
6
|
+
import "../chunk-YFMJTWDG.js";
|
|
6
7
|
import "../chunk-SHLPPEAY.js";
|
|
7
8
|
import "../chunk-UIPRZFST.js";
|
|
8
9
|
import "../chunk-RX4VMVAI.js";
|
package/lib/apps/UIDManage.js
CHANGED
|
@@ -4,10 +4,11 @@ import {
|
|
|
4
4
|
ShowBindAccountCmdFunc,
|
|
5
5
|
UnbindAccount,
|
|
6
6
|
UnbindUID
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-KJAYW3SO.js";
|
|
8
8
|
import "../chunk-A5FZEOIN.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-V2MCX7HT.js";
|
|
10
10
|
import "../chunk-IASM5MM5.js";
|
|
11
|
+
import "../chunk-YFMJTWDG.js";
|
|
11
12
|
import "../chunk-SHLPPEAY.js";
|
|
12
13
|
import "../chunk-UIPRZFST.js";
|
|
13
14
|
import "../chunk-RX4VMVAI.js";
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
MysDeviceInfoDB,
|
|
4
4
|
MysUserInfoDB
|
|
5
5
|
} from "./chunk-IASM5MM5.js";
|
|
6
|
+
import {
|
|
7
|
+
DeviceCfg
|
|
8
|
+
} from "./chunk-YFMJTWDG.js";
|
|
6
9
|
import {
|
|
7
10
|
dir
|
|
8
11
|
} from "./chunk-SHLPPEAY.js";
|
|
9
|
-
import {
|
|
10
|
-
Config
|
|
11
|
-
} from "./chunk-UIPRZFST.js";
|
|
12
12
|
import {
|
|
13
13
|
common_exports
|
|
14
14
|
} from "./chunk-RX4VMVAI.js";
|
|
@@ -76,17 +76,6 @@ var MysHosts = Object.freeze({
|
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
// src/core/config/device.ts
|
|
80
|
-
var DefaultDevice = {
|
|
81
|
-
version: 12,
|
|
82
|
-
name: "aurora",
|
|
83
|
-
board: "24031PN0DC",
|
|
84
|
-
model: "24031PN0DC",
|
|
85
|
-
product: "aurora",
|
|
86
|
-
fingerprint: "Xiaomi/aurora/aurora:12/V417IR/813:user/release-keys"
|
|
87
|
-
};
|
|
88
|
-
var DeviceCfg = new Config(`${dir.name}:device`, dir.ConfigDir, DefaultDevice, {}).watch();
|
|
89
|
-
|
|
90
79
|
// src/exports/mys/api/define.ts
|
|
91
80
|
import md52 from "md5";
|
|
92
81
|
import { logger, redis } from "node-karin";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dir
|
|
3
|
+
} from "./chunk-SHLPPEAY.js";
|
|
4
|
+
import {
|
|
5
|
+
Config
|
|
6
|
+
} from "./chunk-UIPRZFST.js";
|
|
7
|
+
|
|
8
|
+
// src/core/config/config.ts
|
|
9
|
+
var defaultConfig = {
|
|
10
|
+
githubProxyUrl: "https://gh-proxy.org"
|
|
11
|
+
};
|
|
12
|
+
var defaultConfigDefine = {};
|
|
13
|
+
var CoreCfg = new Config(`${dir.name}:config`, dir.ConfigDir, defaultConfig, defaultConfigDefine).watch();
|
|
14
|
+
|
|
15
|
+
// src/core/config/device.ts
|
|
16
|
+
var DefaultDevice = {
|
|
17
|
+
version: 12,
|
|
18
|
+
name: "aurora",
|
|
19
|
+
board: "24031PN0DC",
|
|
20
|
+
model: "24031PN0DC",
|
|
21
|
+
product: "aurora",
|
|
22
|
+
fingerprint: "Xiaomi/aurora/aurora:12/V417IR/813:user/release-keys"
|
|
23
|
+
};
|
|
24
|
+
var DeviceCfg = new Config(`${dir.name}:device`, dir.ConfigDir, DefaultDevice, {}).watch();
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
CoreCfg,
|
|
28
|
+
DeviceCfg
|
|
29
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Config } from '../exports/config/index.js';
|
|
2
|
+
|
|
3
|
+
interface DefaultCoreConfigType {
|
|
4
|
+
githubProxyUrl: string;
|
|
5
|
+
}
|
|
6
|
+
interface DefaultCoreConfigDefineType {
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface DeviceConfigType {
|
|
10
|
+
version: number;
|
|
11
|
+
name: string;
|
|
12
|
+
board: string;
|
|
13
|
+
model: string;
|
|
14
|
+
product: string;
|
|
15
|
+
fingerprint: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare const CoreCfg: Config<DefaultCoreConfigType>;
|
|
19
|
+
|
|
20
|
+
declare const DeviceCfg: Config<DeviceConfigType>;
|
|
21
|
+
|
|
22
|
+
export { CoreCfg, type DefaultCoreConfigDefineType, type DefaultCoreConfigType, DeviceCfg, type DeviceConfigType };
|
package/lib/exports/mys/index.js
CHANGED
|
@@ -15,8 +15,9 @@ import {
|
|
|
15
15
|
getUserFullInfo,
|
|
16
16
|
getUserGameRolesByCookie,
|
|
17
17
|
queryQRcode
|
|
18
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-V2MCX7HT.js";
|
|
19
19
|
import "../../chunk-IASM5MM5.js";
|
|
20
|
+
import "../../chunk-YFMJTWDG.js";
|
|
20
21
|
import "../../chunk-SHLPPEAY.js";
|
|
21
22
|
import "../../chunk-UIPRZFST.js";
|
|
22
23
|
import "../../chunk-RX4VMVAI.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "karin-plugin-mys-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"author": "babanbang",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "karin-plugin-mys-core",
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
"pub": "npm publish --access public"
|
|
22
22
|
},
|
|
23
23
|
"exports": {
|
|
24
|
+
"./core": {
|
|
25
|
+
"types": "./lib/core/index.d.ts",
|
|
26
|
+
"development": "./src/core/index.ts",
|
|
27
|
+
"default": "./lib/core/index.js"
|
|
28
|
+
},
|
|
24
29
|
"./config": {
|
|
25
30
|
"types": "./lib/exports/config/index.d.ts",
|
|
26
31
|
"development": "./src/exports/config/index.ts",
|