karin-plugin-mys-core 1.0.0
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/README.md +123 -0
- package/config/config.json +3 -0
- package/lib/app.d.ts +2 -0
- package/lib/apps/MiHoYoLogin.d.ts +5 -0
- package/lib/apps/MiHoYoLogin.js +241 -0
- package/lib/base-B1BvQ4ol.d.ts +99 -0
- package/lib/chunk-4JTLXC2G.js +519 -0
- package/lib/chunk-7QISGXVH.js +347 -0
- package/lib/chunk-JIO4GOQA.js +31 -0
- package/lib/chunk-JML6VYXN.js +47 -0
- package/lib/chunk-MLKGABMK.js +9 -0
- package/lib/database-BDHrI6Vm.d.ts +5 -0
- package/lib/define-CrfHwHnK.d.ts +163 -0
- package/lib/dir.d.ts +27 -0
- package/lib/dir.js +7 -0
- package/lib/exports/core.d.ts +228 -0
- package/lib/exports/core.js +39 -0
- package/lib/exports/database.d.ts +47 -0
- package/lib/exports/database.js +17 -0
- package/lib/exports/types.d.ts +10 -0
- package/lib/exports/types.js +11 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +8 -0
- package/lib/web.config.d.ts +5 -0
- package/lib/web.config.js +30 -0
- package/package.json +70 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { c as DefineMysApi, a as BaseMysRes, B as BaseltuidInfo, b as UserGameRoleItem, S as StokenParms, R as RefreshUidData, C as Config } from '../define-CrfHwHnK.js';
|
|
2
|
+
export { d as MysApp } from '../define-CrfHwHnK.js';
|
|
3
|
+
import { B as BaseUserInfoType, b as DatabaseReturn, e as MysAccountInfoType, f as MysAccountType } from '../base-B1BvQ4ol.js';
|
|
4
|
+
export { dir as CoreDir } from '../dir.js';
|
|
5
|
+
import 'node-karin/axios';
|
|
6
|
+
import 'sequelize';
|
|
7
|
+
|
|
8
|
+
declare const fetchQRcode: () => DefineMysApi<BaseMysRes & {
|
|
9
|
+
data: {
|
|
10
|
+
url: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
device: string;
|
|
14
|
+
}>;
|
|
15
|
+
declare const queryQRcode: () => DefineMysApi<BaseMysRes & {
|
|
16
|
+
data: {
|
|
17
|
+
stat: "Scanned" | "Confirmed";
|
|
18
|
+
payload: {
|
|
19
|
+
raw: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
device: string;
|
|
24
|
+
ticket: string;
|
|
25
|
+
}>;
|
|
26
|
+
declare const getTokenByGameToken: () => DefineMysApi<BaseMysRes & {
|
|
27
|
+
data: {
|
|
28
|
+
token: {
|
|
29
|
+
token: string;
|
|
30
|
+
};
|
|
31
|
+
user_info: {
|
|
32
|
+
aid: string;
|
|
33
|
+
mid: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
account_id: number;
|
|
38
|
+
game_token: string;
|
|
39
|
+
}>;
|
|
40
|
+
declare const getCookieAccountInfoByGameToken: () => DefineMysApi<BaseMysRes & {
|
|
41
|
+
data: {
|
|
42
|
+
cookie_token: string;
|
|
43
|
+
};
|
|
44
|
+
}, {
|
|
45
|
+
account_id: string;
|
|
46
|
+
game_token: string;
|
|
47
|
+
}>;
|
|
48
|
+
declare const getCookieTokenBySToken: (method: "GET" | "POST") => DefineMysApi<BaseMysRes & {
|
|
49
|
+
data: {
|
|
50
|
+
cookie_token: string;
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
stoken: string;
|
|
54
|
+
}>;
|
|
55
|
+
declare const getUserGameRolesByCookie: (uidInfo: {
|
|
56
|
+
cookie: string;
|
|
57
|
+
} & BaseltuidInfo) => DefineMysApi<BaseMysRes & {
|
|
58
|
+
data: {
|
|
59
|
+
list: UserGameRoleItem[];
|
|
60
|
+
};
|
|
61
|
+
}, {}>;
|
|
62
|
+
declare const getUserFullInfo: (uidInfo: {
|
|
63
|
+
cookie: string;
|
|
64
|
+
} & BaseltuidInfo) => DefineMysApi<BaseMysRes & {
|
|
65
|
+
data: {
|
|
66
|
+
user_info: {
|
|
67
|
+
uid: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
}, {}>;
|
|
71
|
+
|
|
72
|
+
declare const MysHosts: Readonly<{
|
|
73
|
+
bbs: {
|
|
74
|
+
mihoyo: string;
|
|
75
|
+
hoyolab: string;
|
|
76
|
+
};
|
|
77
|
+
web: {
|
|
78
|
+
mihoyo: string;
|
|
79
|
+
hoyolab: string;
|
|
80
|
+
/** new web host */
|
|
81
|
+
miyoushe: string;
|
|
82
|
+
};
|
|
83
|
+
static: "https://api-takumi-static.mihoyo.com/";
|
|
84
|
+
record: {
|
|
85
|
+
mihoyo: string;
|
|
86
|
+
hoyolab: string;
|
|
87
|
+
};
|
|
88
|
+
hk4e: {
|
|
89
|
+
mihoyo: string;
|
|
90
|
+
hoyolab: string;
|
|
91
|
+
};
|
|
92
|
+
hk4eGacha: "https://public-operation-hk4e.mihoyo.com/";
|
|
93
|
+
hk4eSdk: "https://hk4e-sdk.mihoyo.com/";
|
|
94
|
+
napGacha: {
|
|
95
|
+
mihoyo: string;
|
|
96
|
+
hoyolab: string;
|
|
97
|
+
};
|
|
98
|
+
publicData: {
|
|
99
|
+
mihoyo: string;
|
|
100
|
+
hoyolab: string;
|
|
101
|
+
};
|
|
102
|
+
napAct: {
|
|
103
|
+
mihoyo: string;
|
|
104
|
+
hoyolab: string;
|
|
105
|
+
};
|
|
106
|
+
passport: "https://passport-api.mihoyo.com/";
|
|
107
|
+
hk4eSg: {
|
|
108
|
+
hoyolab: string;
|
|
109
|
+
};
|
|
110
|
+
publicSg: {
|
|
111
|
+
hoyolab: string;
|
|
112
|
+
hoyoverse: string;
|
|
113
|
+
};
|
|
114
|
+
}>;
|
|
115
|
+
|
|
116
|
+
declare class BaseUserInfo<U extends BaseUserInfoType> {
|
|
117
|
+
#private;
|
|
118
|
+
userId: BaseUserInfoType['userId'];
|
|
119
|
+
UserInfo: DatabaseReturn<BaseUserInfoType>;
|
|
120
|
+
refresh: () => Promise<this>;
|
|
121
|
+
constructor(userId: string);
|
|
122
|
+
get ltuids(): string[];
|
|
123
|
+
get stuids(): string[];
|
|
124
|
+
get deviceList(): string[];
|
|
125
|
+
initMysAccountInfo(UserInfo: DatabaseReturn<BaseUserInfoType>): Promise<void>;
|
|
126
|
+
getLtuidInfo(ltuid: string): Readonly<DatabaseReturn<MysAccountInfoType> | undefined>;
|
|
127
|
+
saveUserInfo(data: U): Promise<void>;
|
|
128
|
+
saveMysAccountInfo(data: MysAccountInfoType): Promise<void>;
|
|
129
|
+
}
|
|
130
|
+
declare class UserInfo extends BaseUserInfo<BaseUserInfoType> {
|
|
131
|
+
static create(userId: string): Promise<BaseUserInfo<BaseUserInfoType>>;
|
|
132
|
+
static refreshCookie(stokenParams: StokenParms, serv: MysAccountType): Promise<{
|
|
133
|
+
Serv: MysAccountType;
|
|
134
|
+
cookie: string;
|
|
135
|
+
message: string;
|
|
136
|
+
}>;
|
|
137
|
+
static refreshUidFn(key: string, fn: (uidList: RefreshUidData) => void): void;
|
|
138
|
+
static refreshUid: (options: {
|
|
139
|
+
cookie: string;
|
|
140
|
+
} & BaseltuidInfo) => Promise<{
|
|
141
|
+
Serv: MysAccountType;
|
|
142
|
+
uids: RefreshUidData;
|
|
143
|
+
message: string;
|
|
144
|
+
}>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* 生成随机数
|
|
149
|
+
* @param min - 最小值
|
|
150
|
+
* @param max - 最大值
|
|
151
|
+
* @returns
|
|
152
|
+
*/
|
|
153
|
+
declare const random: (min: number, max: number) => number;
|
|
154
|
+
/**
|
|
155
|
+
* 睡眠函数
|
|
156
|
+
* @param ms - 毫秒
|
|
157
|
+
*/
|
|
158
|
+
declare const sleep: (ms: number) => Promise<unknown>;
|
|
159
|
+
/**
|
|
160
|
+
* 使用moment返回时间
|
|
161
|
+
* @param format - 格式
|
|
162
|
+
*/
|
|
163
|
+
declare const timef: (format?: string) => string;
|
|
164
|
+
/**
|
|
165
|
+
* 生成设备guid
|
|
166
|
+
*/
|
|
167
|
+
declare const getDeviceGuid: () => string;
|
|
168
|
+
/**
|
|
169
|
+
* 生成随机字符串
|
|
170
|
+
* @param length - 字符串长度
|
|
171
|
+
*/
|
|
172
|
+
declare const randomString: (length: number, type: "Lower" | "Upper" | "All") => string;
|
|
173
|
+
/**
|
|
174
|
+
* 将字符串解析为key-value键值对
|
|
175
|
+
* @param Str - 字符串
|
|
176
|
+
* @param sep - 分隔符
|
|
177
|
+
*/
|
|
178
|
+
declare const StrToObj: <D extends {
|
|
179
|
+
[key: string]: string;
|
|
180
|
+
}>(Str: string, sep: string | RegExp) => Partial<D>;
|
|
181
|
+
/**
|
|
182
|
+
* 将key-value键值对解析为字符串
|
|
183
|
+
* @param obj - key-value键值对
|
|
184
|
+
* @param sep - 分隔符
|
|
185
|
+
*/
|
|
186
|
+
declare const ObjToStr: (obj: {
|
|
187
|
+
[key: string]: string | number;
|
|
188
|
+
}, sep: string) => string;
|
|
189
|
+
/**
|
|
190
|
+
* 使用moment返回今日剩余时间
|
|
191
|
+
*/
|
|
192
|
+
declare const getEndOfDay: () => number;
|
|
193
|
+
|
|
194
|
+
declare const common_ObjToStr: typeof ObjToStr;
|
|
195
|
+
declare const common_StrToObj: typeof StrToObj;
|
|
196
|
+
declare const common_getDeviceGuid: typeof getDeviceGuid;
|
|
197
|
+
declare const common_getEndOfDay: typeof getEndOfDay;
|
|
198
|
+
declare const common_random: typeof random;
|
|
199
|
+
declare const common_randomString: typeof randomString;
|
|
200
|
+
declare const common_sleep: typeof sleep;
|
|
201
|
+
declare const common_timef: typeof timef;
|
|
202
|
+
declare namespace common {
|
|
203
|
+
export { common_ObjToStr as ObjToStr, common_StrToObj as StrToObj, common_getDeviceGuid as getDeviceGuid, common_getEndOfDay as getEndOfDay, common_random as random, common_randomString as randomString, common_sleep as sleep, common_timef as timef };
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
declare const Cfg: {
|
|
207
|
+
"__#1173@#configCache": Config | null;
|
|
208
|
+
loadConfig(): Config;
|
|
209
|
+
mergeWithDefaults(userConfig: Record<string, any>, defaultConfig: Record<string, any>): Config;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @param path 配置路径
|
|
213
|
+
* @template T 配置类型
|
|
214
|
+
* @description 获取配置路径对应的配置
|
|
215
|
+
* @returns
|
|
216
|
+
*/
|
|
217
|
+
get<T>(path: string, isArray: false): T;
|
|
218
|
+
get<T>(path: string, isArray: true): EnhancedArray<T>;
|
|
219
|
+
set<T>(path: string, value: T): void;
|
|
220
|
+
};
|
|
221
|
+
declare class EnhancedArray<T> extends Array<T> {
|
|
222
|
+
#private;
|
|
223
|
+
constructor(items: T[], path: string);
|
|
224
|
+
add(element: T): this;
|
|
225
|
+
remove(predicate: T | ((item: T) => boolean), isIndex?: boolean): this;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export { BaseUserInfo, Cfg, DefineMysApi, MysHosts, UserInfo, common, fetchQRcode, getCookieAccountInfoByGameToken, getCookieTokenBySToken, getTokenByGameToken, getUserFullInfo, getUserGameRolesByCookie, queryQRcode };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BaseUserInfo,
|
|
3
|
+
Cfg,
|
|
4
|
+
DefineMysApi,
|
|
5
|
+
MysApp,
|
|
6
|
+
MysHosts,
|
|
7
|
+
UserInfo,
|
|
8
|
+
common_exports,
|
|
9
|
+
fetchQRcode,
|
|
10
|
+
getCookieAccountInfoByGameToken,
|
|
11
|
+
getCookieTokenBySToken,
|
|
12
|
+
getTokenByGameToken,
|
|
13
|
+
getUserFullInfo,
|
|
14
|
+
getUserGameRolesByCookie,
|
|
15
|
+
queryQRcode
|
|
16
|
+
} from "../chunk-4JTLXC2G.js";
|
|
17
|
+
import "../chunk-7QISGXVH.js";
|
|
18
|
+
import {
|
|
19
|
+
dir
|
|
20
|
+
} from "../chunk-JML6VYXN.js";
|
|
21
|
+
import "../chunk-JIO4GOQA.js";
|
|
22
|
+
import "../chunk-MLKGABMK.js";
|
|
23
|
+
export {
|
|
24
|
+
BaseUserInfo,
|
|
25
|
+
Cfg,
|
|
26
|
+
dir as CoreDir,
|
|
27
|
+
DefineMysApi,
|
|
28
|
+
MysApp,
|
|
29
|
+
MysHosts,
|
|
30
|
+
UserInfo,
|
|
31
|
+
common_exports as common,
|
|
32
|
+
fetchQRcode,
|
|
33
|
+
getCookieAccountInfoByGameToken,
|
|
34
|
+
getCookieTokenBySToken,
|
|
35
|
+
getTokenByGameToken,
|
|
36
|
+
getUserFullInfo,
|
|
37
|
+
getUserGameRolesByCookie,
|
|
38
|
+
queryQRcode
|
|
39
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { D as DatabaseFn } from '../database-BDHrI6Vm.js';
|
|
2
|
+
import { d as DatabaseClassStatic, c as DatabaseClassInstance, a as DatabaseType, M as ModelAttributes, b as DatabaseReturn, e as MysAccountInfoType, B as BaseUserInfoType } from '../base-B1BvQ4ol.js';
|
|
3
|
+
import * as sequelize from 'sequelize';
|
|
4
|
+
import { DataTypes, ModelAttributeColumnOptions, Model, ModelStatic } from 'sequelize';
|
|
5
|
+
|
|
6
|
+
declare class DatabaseClass {
|
|
7
|
+
#private;
|
|
8
|
+
constructor();
|
|
9
|
+
/** 设置默认数据库 */
|
|
10
|
+
default(Database: DatabaseFn, Static: DatabaseClassStatic): Promise<void>;
|
|
11
|
+
/** 获取当前使用的数据库 */
|
|
12
|
+
get<T extends Record<string, any>>(): DatabaseClassInstance<T>;
|
|
13
|
+
get PkColumn(): (type: keyof typeof DataTypes, option?: Partial<ModelAttributeColumnOptions<Model>>) => ModelAttributeColumnOptions<Model>;
|
|
14
|
+
get Column(): DatabaseClassStatic['Column'];
|
|
15
|
+
get ArrayColumn(): DatabaseClassStatic['ArrayColumn'];
|
|
16
|
+
get JsonColumn(): DatabaseClassStatic['JsonColumn'];
|
|
17
|
+
}
|
|
18
|
+
declare const Database: DatabaseClass;
|
|
19
|
+
|
|
20
|
+
declare class DbBase<T extends Record<string, any>> {
|
|
21
|
+
model: ModelStatic<Model>;
|
|
22
|
+
databasePath: string;
|
|
23
|
+
databaseType: DatabaseType;
|
|
24
|
+
modelName: string;
|
|
25
|
+
modelSchema: ModelAttributes<Model>;
|
|
26
|
+
schemaToJSON(pk: string): T;
|
|
27
|
+
userPath(pk: string): string;
|
|
28
|
+
readSync(path: string, pk: string): DatabaseReturn<T>;
|
|
29
|
+
readDirSync(pk: string): DatabaseReturn<T>;
|
|
30
|
+
writeFileSync(pk: string, data: Record<string, any>): boolean;
|
|
31
|
+
writeDirSync(pk: string, data: Record<string, any>): boolean;
|
|
32
|
+
saveFile(pk: string): (data: T) => Promise<void>;
|
|
33
|
+
saveDir(pk: string): (data: T) => Promise<void>;
|
|
34
|
+
saveSql(model: Model<any, any>, pk: string): (data: T) => Promise<void>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare const MysAccountInfoDB: DatabaseClassInstance<MysAccountInfoType>;
|
|
38
|
+
|
|
39
|
+
declare const BaseMysUserInfoSchema: {
|
|
40
|
+
userId: sequelize.ModelAttributeColumnOptions<sequelize.Model<any, any>>;
|
|
41
|
+
ltuids: sequelize.ModelAttributeColumnOptions<sequelize.Model<any, any>>;
|
|
42
|
+
stuids: sequelize.ModelAttributeColumnOptions<sequelize.Model<any, any>>;
|
|
43
|
+
deviceList: sequelize.ModelAttributeColumnOptions<sequelize.Model<any, any>>;
|
|
44
|
+
};
|
|
45
|
+
declare const MysUserInfoDB: DatabaseClassInstance<BaseUserInfoType>;
|
|
46
|
+
|
|
47
|
+
export { BaseMysUserInfoSchema, Database, DbBase, MysAccountInfoDB, MysUserInfoDB };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BaseMysUserInfoSchema,
|
|
3
|
+
Database,
|
|
4
|
+
DbBase,
|
|
5
|
+
MysAccountInfoDB,
|
|
6
|
+
MysUserInfoDB
|
|
7
|
+
} from "../chunk-7QISGXVH.js";
|
|
8
|
+
import "../chunk-JML6VYXN.js";
|
|
9
|
+
import "../chunk-JIO4GOQA.js";
|
|
10
|
+
import "../chunk-MLKGABMK.js";
|
|
11
|
+
export {
|
|
12
|
+
BaseMysUserInfoSchema,
|
|
13
|
+
Database,
|
|
14
|
+
DbBase,
|
|
15
|
+
MysAccountInfoDB,
|
|
16
|
+
MysUserInfoDB
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { a as BaseMysRes, B as BaseltuidInfo, C as Config, D as DeviceInfo, M as MysApiInfoFn, R as RefreshUidData, S as StokenParms, U as UidInfo, b as UserGameRoleItem } from '../define-CrfHwHnK.js';
|
|
2
|
+
export { D as DatabaseFn } from '../database-BDHrI6Vm.js';
|
|
3
|
+
export { B as BaseUserInfoType, c as DatabaseClassInstance, d as DatabaseClassStatic, b as DatabaseReturn, a as DatabaseType, D as Dialect, M as ModelAttributes, e as MysAccountInfoType, f as MysAccountType } from '../base-B1BvQ4ol.js';
|
|
4
|
+
import 'node-karin/axios';
|
|
5
|
+
import 'sequelize';
|
|
6
|
+
|
|
7
|
+
interface MysDeviceInfoType {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type { MysDeviceInfoType };
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dir
|
|
3
|
+
} from "./chunk-JML6VYXN.js";
|
|
4
|
+
import "./chunk-MLKGABMK.js";
|
|
5
|
+
|
|
6
|
+
// src/web.config.ts
|
|
7
|
+
import { defineConfig } from "node-karin";
|
|
8
|
+
var web_config_default = defineConfig({
|
|
9
|
+
/** 插件信息配置 */
|
|
10
|
+
info: {
|
|
11
|
+
id: dir.name,
|
|
12
|
+
name: dir.name,
|
|
13
|
+
version: dir.version
|
|
14
|
+
},
|
|
15
|
+
/** 动态渲染的组件 */
|
|
16
|
+
components: () => [
|
|
17
|
+
// 在这里面 添加各种子组件
|
|
18
|
+
],
|
|
19
|
+
/** 前端点击保存之后调用的方法 */
|
|
20
|
+
save: (config) => {
|
|
21
|
+
console.log("\u4FDD\u5B58\u7684\u914D\u7F6E:", config);
|
|
22
|
+
return {
|
|
23
|
+
success: true,
|
|
24
|
+
message: "\u4FDD\u5B58\u6210\u529F"
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
web_config_default as default
|
|
30
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "karin-plugin-mys-core",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"author": "babanbang",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "karin-plugin-mys-core",
|
|
7
|
+
"homepage": "https://github.com/Karin-Mys-Plugins/karin-plugin-mys-core",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/Karin-Mys-Plugins/karin-plugin-mys-core/issues"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/Karin-Mys-Plugins/karin-plugin-mys-core.git"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"app": "node lib/app.js",
|
|
17
|
+
"build": "tsup",
|
|
18
|
+
"dev": "cross-env EBV_FILE=\"development.env\" node --import tsx src/app.ts",
|
|
19
|
+
"pub": "npm publish --access public"
|
|
20
|
+
},
|
|
21
|
+
"exports": {
|
|
22
|
+
"./types": {
|
|
23
|
+
"types": "./lib/exports/types.d.ts",
|
|
24
|
+
"development": "./src/exports/types.ts",
|
|
25
|
+
"default": "./lib/exports/types.js"
|
|
26
|
+
},
|
|
27
|
+
"./database": {
|
|
28
|
+
"types": "./lib/exports/database.d.ts",
|
|
29
|
+
"development": "./src/exports/database.ts",
|
|
30
|
+
"default": "./lib/exports/database.js"
|
|
31
|
+
},
|
|
32
|
+
"./core": {
|
|
33
|
+
"types": "./lib/exports/core.d.ts",
|
|
34
|
+
"development": "./src/exports/core.ts",
|
|
35
|
+
"default": "./lib/exports/core.js"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"main": "lib/index.js",
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"md5": "^2.3.0",
|
|
41
|
+
"qrcode": "^1.5.4",
|
|
42
|
+
"sequelize": "^6.37.7"
|
|
43
|
+
},
|
|
44
|
+
"karin": {
|
|
45
|
+
"main": "src/index.ts",
|
|
46
|
+
"apps": [
|
|
47
|
+
"lib/apps"
|
|
48
|
+
],
|
|
49
|
+
"ts-apps": [
|
|
50
|
+
"src/apps"
|
|
51
|
+
],
|
|
52
|
+
"web": "./lib/web.config.js",
|
|
53
|
+
"ts-web": "./src/web.config.ts",
|
|
54
|
+
"static": [],
|
|
55
|
+
"files": [
|
|
56
|
+
"config",
|
|
57
|
+
"data"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"files": [
|
|
61
|
+
"/lib/**/*.js",
|
|
62
|
+
"/lib/**/*.d.ts",
|
|
63
|
+
"/config/*.json",
|
|
64
|
+
"!lib/app.js"
|
|
65
|
+
],
|
|
66
|
+
"publishConfig": {
|
|
67
|
+
"access": "public",
|
|
68
|
+
"registry": "https://registry.npmjs.org"
|
|
69
|
+
}
|
|
70
|
+
}
|