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.
Files changed (79) hide show
  1. package/lib/apps/MiHoYoLogin.js +24 -26
  2. package/lib/apps/MysDevice.js +18 -18
  3. package/lib/apps/UIDManage.js +20 -20
  4. package/lib/{chunk-BWFWWHCT.js → chunk-2BVJS5VE.js} +7 -4
  5. package/lib/{chunk-BH4S574A.js → chunk-2WGBVGJM.js} +1 -1
  6. package/lib/{chunk-Y3J3J5B2.js → chunk-3JN5WYUN.js} +31 -20
  7. package/lib/{chunk-BNSHDFFN.js → chunk-3R37ZEXD.js} +5 -5
  8. package/lib/chunk-5DXIT7UB.js +88 -0
  9. package/lib/{chunk-LLYBEHPW.js → chunk-CD2J42HG.js} +1 -1
  10. package/lib/{chunk-DJTJKSNN.js → chunk-CZD74R2W.js} +26 -19
  11. package/lib/{chunk-G547WVGV.js → chunk-DMJ5OQR6.js} +1 -1
  12. package/lib/{chunk-7ZQQ76WC.js → chunk-EDNBKOMS.js} +4 -4
  13. package/lib/{chunk-EAVXU4Q2.js → chunk-G7TMVDGP.js} +17 -6
  14. package/lib/{chunk-HTH25YE2.js → chunk-HJ6HX5HB.js} +4 -4
  15. package/lib/{chunk-EMAUATE3.js → chunk-MPZP23EX.js} +5 -3
  16. package/lib/chunk-OYGNSYOG.js +109 -0
  17. package/lib/{chunk-6PIXUPZ6.js → chunk-PMFOX5HA.js} +14 -16
  18. package/lib/{chunk-P2PBUTB7.js → chunk-UTTUUWA4.js} +10 -15
  19. package/lib/common-BlI5Gsw_.d.ts +35 -0
  20. package/lib/exports/config/array.d.ts +1 -1
  21. package/lib/exports/config/array.js +1 -1
  22. package/lib/exports/config/config.d.ts +56 -1
  23. package/lib/exports/config/config.js +6 -2
  24. package/lib/exports/config/index.d.ts +1 -2
  25. package/lib/exports/config/index.js +7 -5
  26. package/lib/exports/database/database.js +7 -3
  27. package/lib/exports/database/dbs/base.d.ts +5 -3
  28. package/lib/exports/database/dbs/base.js +5 -1
  29. package/lib/exports/database/dbs/index.d.ts +1 -1
  30. package/lib/exports/database/dbs/index.js +12 -6
  31. package/lib/exports/database/dbs/sqlite3.d.ts +7 -3
  32. package/lib/exports/database/dbs/sqlite3.js +6 -2
  33. package/lib/exports/database/dbs/table.d.ts +12 -8
  34. package/lib/exports/database/dbs/table.js +12 -6
  35. package/lib/exports/database/index.d.ts +2 -2
  36. package/lib/exports/database/index.js +18 -14
  37. package/lib/exports/database/tables/index.js +14 -12
  38. package/lib/exports/database/tables/mysAccountInfo.d.ts +1 -1
  39. package/lib/exports/database/tables/mysAccountInfo.js +9 -5
  40. package/lib/exports/database/tables/mysDeviceInfo.d.ts +1 -1
  41. package/lib/exports/database/tables/mysDeviceInfo.js +9 -7
  42. package/lib/exports/database/tables/mysUserInfo.d.ts +1 -1
  43. package/lib/exports/database/tables/mysUserInfo.js +9 -5
  44. package/lib/exports/database/types/dbs/base.d.ts +17 -6
  45. package/lib/exports/database/types/index.d.ts +1 -1
  46. package/lib/exports/database/types/tables/index.d.ts +1 -1
  47. package/lib/exports/database/types/tables/mysUserInfo.d.ts +6 -5
  48. package/lib/exports/mys/api/apis.js +18 -18
  49. package/lib/exports/mys/api/app.js +11 -9
  50. package/lib/exports/mys/api/define.js +18 -18
  51. package/lib/exports/mys/api/index.js +21 -21
  52. package/lib/exports/mys/index.js +24 -24
  53. package/lib/exports/mys/user/deviceInfo.js +12 -10
  54. package/lib/exports/mys/user/game.d.ts +12 -5
  55. package/lib/exports/mys/user/game.js +1 -1
  56. package/lib/exports/mys/user/index.d.ts +3 -3
  57. package/lib/exports/mys/user/index.js +21 -21
  58. package/lib/exports/mys/user/userInfo.js +18 -18
  59. package/lib/exports/render/index.js +5 -3
  60. package/lib/exports/render/render.js +5 -3
  61. package/lib/exports/utils/common.d.ts +1 -33
  62. package/lib/exports/utils/common.js +3 -1
  63. package/lib/exports/utils/index.d.ts +2 -1
  64. package/lib/exports/utils/index.js +4 -2
  65. package/lib/exports/{config/types/config.d.ts → utils/types/common.d.ts} +3 -4
  66. package/lib/exports/utils/types/common.js +1 -0
  67. package/lib/exports/utils/types/index.d.ts +1 -0
  68. package/lib/exports/utils/types/index.js +2 -0
  69. package/package.json +1 -1
  70. package/lib/array-CCexQ14j.d.ts +0 -62
  71. package/lib/chunk-BXA3VAQC.js +0 -131
  72. package/lib/chunk-LG34FPBI.js +0 -50
  73. package/lib/exports/config/types/config.js +0 -1
  74. package/lib/exports/config/types/index.d.ts +0 -1
  75. package/lib/exports/config/types/index.js +0 -2
  76. /package/lib/{chunk-2DHTKQ34.js → chunk-3ERB3ILC.js} +0 -0
  77. /package/lib/{chunk-7SZX3RBZ.js → chunk-ARLTXJFJ.js} +0 -0
  78. /package/lib/{chunk-UC6INRYV.js → chunk-PYTECG57.js} +0 -0
  79. /package/lib/{chunk-XQWTJIT4.js → chunk-T7W4DXRM.js} +0 -0
@@ -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';
@@ -1,2 +0,0 @@
1
- import "../../../chunk-7SZX3RBZ.js";
2
- import "../../../chunk-2DHTKQ34.js";
File without changes
File without changes
File without changes
File without changes