karin-plugin-mys-core 1.0.7 → 1.0.8
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 +24 -26
- package/lib/apps/MysDevice.js +18 -18
- package/lib/apps/UIDManage.js +20 -20
- package/lib/{chunk-BWFWWHCT.js → chunk-2BVJS5VE.js} +7 -4
- package/lib/{chunk-BH4S574A.js → chunk-2WGBVGJM.js} +1 -1
- package/lib/{chunk-Y3J3J5B2.js → chunk-3JN5WYUN.js} +31 -20
- package/lib/{chunk-BNSHDFFN.js → chunk-3R37ZEXD.js} +5 -5
- package/lib/chunk-5DXIT7UB.js +88 -0
- package/lib/{chunk-LLYBEHPW.js → chunk-CD2J42HG.js} +1 -1
- package/lib/{chunk-DJTJKSNN.js → chunk-CZD74R2W.js} +26 -19
- package/lib/{chunk-G547WVGV.js → chunk-DMJ5OQR6.js} +1 -1
- package/lib/{chunk-7ZQQ76WC.js → chunk-EDNBKOMS.js} +4 -4
- package/lib/{chunk-EAVXU4Q2.js → chunk-G7TMVDGP.js} +17 -6
- package/lib/{chunk-HTH25YE2.js → chunk-HJ6HX5HB.js} +4 -4
- package/lib/{chunk-EMAUATE3.js → chunk-MPZP23EX.js} +5 -3
- package/lib/chunk-OYGNSYOG.js +109 -0
- package/lib/{chunk-6PIXUPZ6.js → chunk-PMFOX5HA.js} +14 -16
- package/lib/{chunk-P2PBUTB7.js → chunk-UTTUUWA4.js} +10 -15
- package/lib/common-BlI5Gsw_.d.ts +35 -0
- package/lib/exports/config/array.d.ts +1 -1
- package/lib/exports/config/array.js +1 -1
- package/lib/exports/config/config.d.ts +56 -1
- package/lib/exports/config/config.js +6 -2
- package/lib/exports/config/index.d.ts +1 -2
- package/lib/exports/config/index.js +7 -5
- package/lib/exports/database/database.js +7 -3
- package/lib/exports/database/dbs/base.d.ts +5 -3
- package/lib/exports/database/dbs/base.js +5 -1
- package/lib/exports/database/dbs/index.d.ts +1 -1
- package/lib/exports/database/dbs/index.js +12 -6
- package/lib/exports/database/dbs/sqlite3.d.ts +7 -3
- package/lib/exports/database/dbs/sqlite3.js +6 -2
- package/lib/exports/database/dbs/table.d.ts +12 -8
- package/lib/exports/database/dbs/table.js +12 -6
- package/lib/exports/database/index.d.ts +2 -2
- package/lib/exports/database/index.js +18 -14
- package/lib/exports/database/tables/index.js +14 -12
- package/lib/exports/database/tables/mysAccountInfo.d.ts +1 -1
- package/lib/exports/database/tables/mysAccountInfo.js +9 -5
- package/lib/exports/database/tables/mysDeviceInfo.d.ts +1 -1
- package/lib/exports/database/tables/mysDeviceInfo.js +9 -7
- package/lib/exports/database/tables/mysUserInfo.d.ts +1 -1
- package/lib/exports/database/tables/mysUserInfo.js +9 -5
- package/lib/exports/database/types/dbs/base.d.ts +17 -6
- package/lib/exports/database/types/index.d.ts +1 -1
- package/lib/exports/database/types/tables/index.d.ts +1 -1
- package/lib/exports/database/types/tables/mysUserInfo.d.ts +6 -5
- package/lib/exports/mys/api/apis.js +18 -18
- package/lib/exports/mys/api/app.js +11 -9
- package/lib/exports/mys/api/define.js +18 -18
- package/lib/exports/mys/api/index.js +21 -21
- package/lib/exports/mys/index.js +24 -24
- package/lib/exports/mys/user/deviceInfo.js +12 -10
- package/lib/exports/mys/user/game.d.ts +12 -5
- package/lib/exports/mys/user/game.js +1 -1
- package/lib/exports/mys/user/index.d.ts +3 -3
- package/lib/exports/mys/user/index.js +21 -21
- package/lib/exports/mys/user/userInfo.js +18 -18
- package/lib/exports/render/index.js +5 -3
- package/lib/exports/render/render.js +5 -3
- package/lib/exports/utils/common.d.ts +1 -33
- package/lib/exports/utils/common.js +3 -1
- package/lib/exports/utils/index.d.ts +2 -1
- package/lib/exports/utils/index.js +4 -2
- package/lib/exports/{config/types/config.d.ts → utils/types/common.d.ts} +3 -4
- package/lib/exports/utils/types/common.js +1 -0
- package/lib/exports/utils/types/index.d.ts +1 -0
- package/lib/exports/utils/types/index.js +2 -0
- package/package.json +1 -1
- package/lib/array-CCexQ14j.d.ts +0 -62
- package/lib/chunk-BXA3VAQC.js +0 -131
- package/lib/chunk-LG34FPBI.js +0 -50
- package/lib/exports/config/types/config.js +0 -1
- package/lib/exports/config/types/index.d.ts +0 -1
- package/lib/exports/config/types/index.js +0 -2
- /package/lib/{chunk-2DHTKQ34.js → chunk-3ERB3ILC.js} +0 -0
- /package/lib/{chunk-7SZX3RBZ.js → chunk-ARLTXJFJ.js} +0 -0
- /package/lib/{chunk-UC6INRYV.js → chunk-PYTECG57.js} +0 -0
- /package/lib/{chunk-XQWTJIT4.js → chunk-T7W4DXRM.js} +0 -0
package/lib/chunk-LG34FPBI.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__export
|
|
3
|
-
} from "./chunk-MLKGABMK.js";
|
|
4
|
-
|
|
5
|
-
// src/exports/utils/common.ts
|
|
6
|
-
var common_exports = {};
|
|
7
|
-
__export(common_exports, {
|
|
8
|
-
ObjToStr: () => ObjToStr,
|
|
9
|
-
StrToObj: () => StrToObj,
|
|
10
|
-
getDeviceGuid: () => getDeviceGuid,
|
|
11
|
-
randomString: () => randomString
|
|
12
|
-
});
|
|
13
|
-
import lodash from "node-karin/lodash";
|
|
14
|
-
var randomString = (length, type) => {
|
|
15
|
-
let str = "0123456789";
|
|
16
|
-
if (type === "Lower" || type === "All") {
|
|
17
|
-
str += "abcdefghijklmnopqrstuvwxyz";
|
|
18
|
-
}
|
|
19
|
-
if (type === "Upper" || type === "All") {
|
|
20
|
-
str += "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
21
|
-
}
|
|
22
|
-
return lodash.sampleSize(str, length).join("");
|
|
23
|
-
};
|
|
24
|
-
var getDeviceGuid = () => {
|
|
25
|
-
function S4() {
|
|
26
|
-
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
27
|
-
}
|
|
28
|
-
return S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4();
|
|
29
|
-
};
|
|
30
|
-
var StrToObj = (Str, sep) => {
|
|
31
|
-
const strObj = {};
|
|
32
|
-
Str.split(sep).forEach((item) => {
|
|
33
|
-
const [key, value] = item.split("=");
|
|
34
|
-
if (key) {
|
|
35
|
-
strObj[key] = value || "";
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
return strObj;
|
|
39
|
-
};
|
|
40
|
-
var ObjToStr = (obj, sep) => {
|
|
41
|
-
return Object.entries(obj).filter(([k, v]) => v).map(([k, v]) => `${k}=${v}`).join(sep) + sep;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export {
|
|
45
|
-
randomString,
|
|
46
|
-
getDeviceGuid,
|
|
47
|
-
StrToObj,
|
|
48
|
-
ObjToStr,
|
|
49
|
-
common_exports
|
|
50
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../../chunk-2DHTKQ34.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ConfigDefine, ConfigDefineArray } from './config.js';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|