karin-plugin-mys-core 1.0.23 → 1.0.24
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 +4 -4
- package/lib/apps/MysDevice.js +2 -2
- package/lib/apps/UIDManage.js +4 -4
- package/lib/{chunk-4N3KY3KE.js → chunk-A4WGB4ID.js} +5 -1
- package/lib/{chunk-SCXP2BGQ.js → chunk-AVUQGP7L.js} +2 -2
- package/lib/{chunk-C2ZR7X67.js → chunk-QZUNBUDC.js} +2 -2
- package/lib/{chunk-AFF6YSYO.js → chunk-XSW4HNMM.js} +1 -1
- package/lib/core/index.js +1 -1
- package/lib/exports/database/index.js +1 -1
- package/lib/exports/mys/index.js +2 -2
- package/lib/exports/render/index.d.ts +1 -2
- package/lib/exports/render/index.js +1 -1
- package/lib/web.config.js +1 -1
- package/package.json +1 -1
package/lib/apps/MiHoYoLogin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShowBindAccountCmdFunc
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-AVUQGP7L.js";
|
|
4
|
+
import "../chunk-QZUNBUDC.js";
|
|
5
5
|
import {
|
|
6
6
|
UserInfo,
|
|
7
7
|
fetchQRcode,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
getTokenByGameToken,
|
|
10
10
|
getUserFullInfo,
|
|
11
11
|
queryQRcode
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-XSW4HNMM.js";
|
|
13
13
|
import "../chunk-5LRGHP36.js";
|
|
14
14
|
import "../chunk-HI6OZTI2.js";
|
|
15
15
|
import "../chunk-BLE3V6QR.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-A4WGB4ID.js";
|
|
17
17
|
import {
|
|
18
18
|
common_exports
|
|
19
19
|
} from "../chunk-RX4VMVAI.js";
|
package/lib/apps/MysDevice.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeviceInfo,
|
|
3
3
|
UserInfo
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-XSW4HNMM.js";
|
|
5
5
|
import "../chunk-5LRGHP36.js";
|
|
6
6
|
import "../chunk-HI6OZTI2.js";
|
|
7
7
|
import "../chunk-BLE3V6QR.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-A4WGB4ID.js";
|
|
9
9
|
import "../chunk-RX4VMVAI.js";
|
|
10
10
|
import "../chunk-SHLPPEAY.js";
|
|
11
11
|
import "../chunk-MLKGABMK.js";
|
package/lib/apps/UIDManage.js
CHANGED
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
ShowBindAccountCmdFunc,
|
|
6
6
|
UnbindAccount,
|
|
7
7
|
UnbindUID
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-AVUQGP7L.js";
|
|
9
|
+
import "../chunk-QZUNBUDC.js";
|
|
10
|
+
import "../chunk-XSW4HNMM.js";
|
|
11
11
|
import "../chunk-5LRGHP36.js";
|
|
12
12
|
import "../chunk-HI6OZTI2.js";
|
|
13
13
|
import "../chunk-BLE3V6QR.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-A4WGB4ID.js";
|
|
15
15
|
import "../chunk-RX4VMVAI.js";
|
|
16
16
|
import "../chunk-SHLPPEAY.js";
|
|
17
17
|
import "../chunk-MLKGABMK.js";
|
|
@@ -271,7 +271,11 @@ var Sqlite3 = class extends DbBase {
|
|
|
271
271
|
async init(DataDir, modelName, modelSchema, modelSchemaDefine, type, primaryKey) {
|
|
272
272
|
this.initBase(DataDir, modelName, modelSchema, modelSchemaDefine, type, primaryKey);
|
|
273
273
|
if (this.databaseType === "db" /* Db */) {
|
|
274
|
-
|
|
274
|
+
const modelSchema2 = this.modelSchema.reduce((acc, cur) => {
|
|
275
|
+
acc[cur.key] = cur.Option;
|
|
276
|
+
return acc;
|
|
277
|
+
}, {});
|
|
278
|
+
this.model = sequelize.define(this.modelName, modelSchema2, {
|
|
275
279
|
timestamps: false,
|
|
276
280
|
freezeTableName: true
|
|
277
281
|
});
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
DefaultLayoutComponent,
|
|
3
3
|
React,
|
|
4
4
|
ReactRender
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QZUNBUDC.js";
|
|
6
6
|
import {
|
|
7
7
|
MysGame,
|
|
8
8
|
UserInfo
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XSW4HNMM.js";
|
|
10
10
|
import {
|
|
11
11
|
dir
|
|
12
12
|
} from "./chunk-SHLPPEAY.js";
|
|
@@ -95,8 +95,8 @@ var ReactRender = class {
|
|
|
95
95
|
const savePath = path.join(saveDir, `${options.render?.name || template}-${common_exports.randomString(8, "Lower")}.html`);
|
|
96
96
|
fs.writeFileSync(savePath, Html, "utf-8");
|
|
97
97
|
const image = await karin.render({
|
|
98
|
-
type: options.type || "
|
|
99
|
-
omitBackground: options.type
|
|
98
|
+
type: options.type || "png",
|
|
99
|
+
omitBackground: options.type !== "png",
|
|
100
100
|
selector: "container",
|
|
101
101
|
setViewport: {
|
|
102
102
|
deviceScaleFactor: 3
|
package/lib/core/index.js
CHANGED
package/lib/exports/mys/index.js
CHANGED
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
getUserFullInfo,
|
|
16
16
|
getUserGameRolesByCookie,
|
|
17
17
|
queryQRcode
|
|
18
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-XSW4HNMM.js";
|
|
19
19
|
import "../../chunk-5LRGHP36.js";
|
|
20
20
|
import "../../chunk-HI6OZTI2.js";
|
|
21
21
|
import "../../chunk-BLE3V6QR.js";
|
|
22
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-A4WGB4ID.js";
|
|
23
23
|
import "../../chunk-RX4VMVAI.js";
|
|
24
24
|
import "../../chunk-SHLPPEAY.js";
|
|
25
25
|
import "../../chunk-MLKGABMK.js";
|
|
@@ -42,8 +42,7 @@ declare class ReactRender<P extends Record<string, any>, K extends string> {
|
|
|
42
42
|
get plugin(): Omit<P, 'name' | 'version' | 'resources'> & DefaultRenderPluginOptionsType;
|
|
43
43
|
template<C extends React.ComponentType<any>>(template: K, component: C, props: React.ComponentProps<C>, options?: {
|
|
44
44
|
type?: 'png' | 'jpeg' | 'webp';
|
|
45
|
-
|
|
46
|
-
render?: Omit<Options, 'file' | 'data'>;
|
|
45
|
+
render?: Omit<Options, 'file' | 'data' | 'type' | 'omitBackground'>;
|
|
47
46
|
}): Promise<string | null>;
|
|
48
47
|
}
|
|
49
48
|
|
package/lib/web.config.js
CHANGED