@maiyunnet/kebab 9.0.1 → 9.1.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/LICENSE +0 -0
- package/README.md +0 -0
- package/bin/kebab.js +0 -0
- package/doc/kebab-rag.md +636 -626
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/lib/ai.d.ts +12 -10
- package/lib/ai.js +22 -15
- package/lib/buffer.d.ts +0 -0
- package/lib/buffer.js +0 -0
- package/lib/captcha/zcool-addict-italic.ttf +0 -0
- package/lib/captcha.d.ts +0 -0
- package/lib/captcha.js +0 -0
- package/lib/consistent.d.ts +0 -0
- package/lib/consistent.js +0 -0
- package/lib/core.d.ts +0 -0
- package/lib/core.js +0 -0
- package/lib/cron.d.ts +0 -0
- package/lib/cron.js +0 -0
- package/lib/crypto.d.ts +0 -0
- package/lib/crypto.js +0 -0
- package/lib/db/conn.d.ts +0 -0
- package/lib/db/conn.js +0 -0
- package/lib/db/pool.d.ts +0 -0
- package/lib/db/pool.js +0 -0
- package/lib/db/tran.d.ts +0 -0
- package/lib/db/tran.js +8 -8
- package/lib/db.d.ts +0 -0
- package/lib/db.js +0 -0
- package/lib/dns.d.ts +0 -0
- package/lib/dns.js +0 -0
- package/lib/fs.d.ts +0 -0
- package/lib/fs.js +0 -0
- package/lib/kv.d.ts +0 -0
- package/lib/kv.js +0 -0
- package/lib/lan.d.ts +0 -0
- package/lib/lan.js +0 -0
- package/lib/lang.d.ts +0 -0
- package/lib/lang.js +0 -0
- package/lib/net/cacert.pem +0 -0
- package/lib/net/formdata.d.ts +0 -0
- package/lib/net/formdata.js +0 -0
- package/lib/net/request.d.ts +0 -0
- package/lib/net/request.js +0 -0
- package/lib/net/response.d.ts +0 -0
- package/lib/net/response.js +0 -0
- package/lib/net.d.ts +0 -0
- package/lib/net.js +0 -0
- package/lib/ratelimit.d.ts +0 -0
- package/lib/ratelimit.js +0 -0
- package/lib/s3.d.ts +0 -0
- package/lib/s3.js +0 -0
- package/lib/scan.d.ts +0 -0
- package/lib/scan.js +0 -0
- package/lib/session.d.ts +0 -0
- package/lib/session.js +0 -0
- package/lib/socket.d.ts +0 -0
- package/lib/socket.js +0 -0
- package/lib/sql.d.ts +0 -0
- package/lib/sql.js +0 -0
- package/lib/ssh/sftp.d.ts +0 -0
- package/lib/ssh/sftp.js +0 -0
- package/lib/ssh/shell.d.ts +0 -0
- package/lib/ssh/shell.js +0 -0
- package/lib/ssh.d.ts +0 -0
- package/lib/ssh.js +0 -0
- package/lib/text/tld.json +0 -0
- package/lib/text.d.ts +0 -0
- package/lib/text.js +0 -0
- package/lib/time.d.ts +0 -0
- package/lib/time.js +0 -0
- package/lib/turnstile.d.ts +0 -0
- package/lib/turnstile.js +0 -0
- package/lib/vector.d.ts +0 -0
- package/lib/vector.js +0 -0
- package/lib/ws.d.ts +0 -0
- package/lib/ws.js +0 -0
- package/lib/zip.d.ts +0 -0
- package/lib/zip.js +0 -0
- package/lib/zlib.d.ts +0 -0
- package/lib/zlib.js +0 -0
- package/main.d.ts +0 -0
- package/main.js +0 -0
- package/package.json +9 -2
- package/sys/child.d.ts +0 -0
- package/sys/child.js +0 -0
- package/sys/cmd.d.ts +0 -0
- package/sys/cmd.js +71 -42
- package/sys/ctr.d.ts +8 -0
- package/sys/ctr.js +86 -36
- package/sys/master.d.ts +0 -0
- package/sys/master.js +0 -0
- package/sys/mod.d.ts +0 -0
- package/sys/mod.js +0 -0
- package/sys/monitor/watchdog.d.ts +0 -0
- package/sys/monitor/watchdog.js +0 -0
- package/sys/monitor.d.ts +0 -0
- package/sys/monitor.js +1 -1
- package/sys/route.d.ts +0 -0
- package/sys/route.js +0 -0
- package/www/example/ctr/main.d.ts +0 -0
- package/www/example/ctr/main.js +0 -0
- package/www/example/ctr/middle.d.ts +0 -0
- package/www/example/ctr/middle.js +0 -0
- package/www/example/ctr/test.d.ts +4 -0
- package/www/example/ctr/test.js +18 -5
- package/www/example/data/locale/en.test.json +0 -0
- package/www/example/data/locale/index.html +0 -0
- package/www/example/data/locale/ja.test.json +0 -0
- package/www/example/data/locale/sc.test.json +0 -0
- package/www/example/data/locale/tc.test.json +0 -0
- package/www/example/data/test.zip +0 -0
- package/www/example/kebab.json +0 -0
- package/www/example/mod/test.d.ts +0 -0
- package/www/example/mod/test.js +0 -0
- package/www/example/mod/testdata.d.ts +0 -0
- package/www/example/mod/testdata.js +0 -0
- package/www/example/route.json +0 -0
- package/www/example/stc/chunk-YJ3GYATF.js +81 -0
- package/www/example/stc/lib/ui/checkbox.d.ts +9 -0
- package/www/example/stc/lib/ui/checkbox.js +11 -0
- package/www/example/stc/lib/ui/checkbox.tsx +30 -0
- package/www/example/stc/lib/ui/input.d.ts +3 -0
- package/www/example/stc/lib/ui/input.js +10 -0
- package/www/example/stc/lib/ui/input.tsx +24 -0
- package/www/example/stc/lib/ui/label.d.ts +11 -0
- package/www/example/stc/lib/ui/label.js +13 -0
- package/www/example/stc/lib/ui/label.tsx +24 -0
- package/www/example/stc/lib/ui/switch.d.ts +9 -0
- package/www/example/stc/lib/ui/switch.js +11 -0
- package/www/example/stc/lib/ui/switch.tsx +31 -0
- package/www/example/stc/lib/utils.d.ts +7 -0
- package/www/example/stc/lib/utils.js +10 -0
- package/www/example/stc/view/hello.page.bundle.js +1 -0
- package/www/example/stc/view/hello.page.css +2 -0
- package/www/example/stc/view/hello.page.d.ts +17 -0
- package/www/example/stc/view/hello.page.js +15 -0
- package/www/example/stc/view/hello.page.tsx +49 -0
- package/www/example/stc/view/react-router.page.bundle.js +1 -0
- package/www/example/stc/view/react-router.page.css +2 -0
- package/www/example/stc/view/{react-router-page.d.ts → react-router.page.d.ts} +1 -1
- package/www/example/stc/view/{react-router-page.js → react-router.page.js} +1 -1
- package/www/example/stc/view/{react-router-page.tsx → react-router.page.tsx} +1 -1
- package/www/example/stc/view/react.page.bundle.js +26 -0
- package/www/example/stc/view/react.page.css +2 -0
- package/www/example/stc/view/{react-page.d.ts → react.page.d.ts} +16 -18
- package/www/example/stc/view/react.page.js +181 -0
- package/www/example/stc/view/{react-page.tsx → react.page.tsx} +259 -111
- package/www/example/view/test.ejs +0 -0
- package/www/example/ws/handler.d.ts +0 -0
- package/www/example/ws/handler.js +0 -0
- package/www/example/ws/main.d.ts +0 -0
- package/www/example/ws/main.js +0 -0
- package/www/example/ws/mproxy.d.ts +0 -0
- package/www/example/ws/mproxy.js +0 -0
- package/www/example/ws/rproxy.d.ts +0 -0
- package/www/example/ws/rproxy.js +0 -0
- package/www/example/ws/rsocket.d.ts +0 -0
- package/www/example/ws/rsocket.js +0 -0
- package/www/example/ws/test.d.ts +0 -0
- package/www/example/ws/test.js +0 -0
- package/www/example/stc/view/react-page.bundle.js +0 -97
- package/www/example/stc/view/react-page.css +0 -2
- package/www/example/stc/view/react-page.js +0 -136
- package/www/example/stc/view/react-router-page.bundle.js +0 -81
- package/www/example/stc/view/react-router-page.css +0 -2
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* --- 本文件用来定义每个目录实体地址的常量 ---
|
|
7
7
|
*/
|
|
8
8
|
/** --- 当前系统版本号 --- */
|
|
9
|
-
export const VER = '9.0
|
|
9
|
+
export const VER = '9.1.0';
|
|
10
10
|
// --- 服务端用的路径 ---
|
|
11
11
|
const imu = decodeURIComponent(import.meta.url).replace('file://', '').replace(/^\/(\w:)/, '$1');
|
|
12
12
|
/** --- /xxx/xxx --- */
|
package/lib/ai.d.ts
CHANGED
|
@@ -15,22 +15,24 @@ import * as sCtr from '#kebab/sys/ctr.js';
|
|
|
15
15
|
export declare enum ESERVICE {
|
|
16
16
|
/** --- 阿里中国大陆区 --- */
|
|
17
17
|
'ALICN' = 0,
|
|
18
|
-
/** ---
|
|
18
|
+
/** --- 阿里新加坡 --- */
|
|
19
19
|
'ALIAS' = 1,
|
|
20
|
+
/** --- 阿里美国 --- */
|
|
21
|
+
'ALINE' = 2,
|
|
20
22
|
/** --- 微软 Azure --- */
|
|
21
|
-
'AZURE' =
|
|
23
|
+
'AZURE' = 3,
|
|
22
24
|
/** --- 微软 Azure 2 --- */
|
|
23
|
-
'AZURE2' =
|
|
25
|
+
'AZURE2' = 4,
|
|
24
26
|
/** --- 微软 Azure 3 --- */
|
|
25
|
-
'AZURE3' =
|
|
27
|
+
'AZURE3' = 5,
|
|
26
28
|
/** --- Gemini --- */
|
|
27
|
-
'GEMINI' =
|
|
29
|
+
'GEMINI' = 6,
|
|
28
30
|
/** --- Grok --- */
|
|
29
|
-
'GROK' =
|
|
31
|
+
'GROK' = 7,
|
|
30
32
|
/** --- 火山引擎中国大陆区 --- */
|
|
31
|
-
'VOLCN' =
|
|
33
|
+
'VOLCN' = 8,
|
|
32
34
|
/** --- 火山引擎国际区 --- */
|
|
33
|
-
'VOLAS' =
|
|
35
|
+
'VOLAS' = 9
|
|
34
36
|
}
|
|
35
37
|
/** --- 选项 --- */
|
|
36
38
|
export interface IOptions {
|
|
@@ -64,7 +66,7 @@ export declare class Ai {
|
|
|
64
66
|
'model': string;
|
|
65
67
|
/** --- 提示词 --- */
|
|
66
68
|
'prompt': string;
|
|
67
|
-
/** --- 参考图,请注意模型是否支持,以及是否支持多张,仅支持 ALICN、ALIAS、VOLCN、VOLAS 服务商 --- */
|
|
69
|
+
/** --- 参考图,请注意模型是否支持,以及是否支持多张,仅支持 ALICN、ALIAS、ALINE、VOLCN、VOLAS 服务商 --- */
|
|
68
70
|
'imgs'?: string[];
|
|
69
71
|
/** --- 模型是否自动优化提示词,默认为 false,但有些服务商可能无效 --- */
|
|
70
72
|
'extend'?: boolean;
|
|
@@ -87,7 +89,7 @@ export declare class Ai {
|
|
|
87
89
|
/** --- 请求编号 --- */
|
|
88
90
|
'request': string;
|
|
89
91
|
} | false>;
|
|
90
|
-
/** --- 异步生成视频,仅支持 ALICN、ALIAS --- */
|
|
92
|
+
/** --- 异步生成视频,仅支持 ALICN、ALIAS、ALINE --- */
|
|
91
93
|
video(opt: {
|
|
92
94
|
'model': string;
|
|
93
95
|
/** --- 提示词,参考类可用 [I1] 指代图片,如 `[I1] 看向 [I2]` --- */
|
package/lib/ai.js
CHANGED
|
@@ -16,22 +16,24 @@ export var ESERVICE;
|
|
|
16
16
|
(function (ESERVICE) {
|
|
17
17
|
/** --- 阿里中国大陆区 --- */
|
|
18
18
|
ESERVICE[ESERVICE["ALICN"] = 0] = "ALICN";
|
|
19
|
-
/** ---
|
|
19
|
+
/** --- 阿里新加坡 --- */
|
|
20
20
|
ESERVICE[ESERVICE["ALIAS"] = 1] = "ALIAS";
|
|
21
|
+
/** --- 阿里美国 --- */
|
|
22
|
+
ESERVICE[ESERVICE["ALINE"] = 2] = "ALINE";
|
|
21
23
|
/** --- 微软 Azure --- */
|
|
22
|
-
ESERVICE[ESERVICE["AZURE"] =
|
|
24
|
+
ESERVICE[ESERVICE["AZURE"] = 3] = "AZURE";
|
|
23
25
|
/** --- 微软 Azure 2 --- */
|
|
24
|
-
ESERVICE[ESERVICE["AZURE2"] =
|
|
26
|
+
ESERVICE[ESERVICE["AZURE2"] = 4] = "AZURE2";
|
|
25
27
|
/** --- 微软 Azure 3 --- */
|
|
26
|
-
ESERVICE[ESERVICE["AZURE3"] =
|
|
28
|
+
ESERVICE[ESERVICE["AZURE3"] = 5] = "AZURE3";
|
|
27
29
|
/** --- Gemini --- */
|
|
28
|
-
ESERVICE[ESERVICE["GEMINI"] =
|
|
30
|
+
ESERVICE[ESERVICE["GEMINI"] = 6] = "GEMINI";
|
|
29
31
|
/** --- Grok --- */
|
|
30
|
-
ESERVICE[ESERVICE["GROK"] =
|
|
32
|
+
ESERVICE[ESERVICE["GROK"] = 7] = "GROK";
|
|
31
33
|
/** --- 火山引擎中国大陆区 --- */
|
|
32
|
-
ESERVICE[ESERVICE["VOLCN"] =
|
|
34
|
+
ESERVICE[ESERVICE["VOLCN"] = 8] = "VOLCN";
|
|
33
35
|
/** --- 火山引擎国际区 --- */
|
|
34
|
-
ESERVICE[ESERVICE["VOLAS"] =
|
|
36
|
+
ESERVICE[ESERVICE["VOLAS"] = 9] = "VOLAS";
|
|
35
37
|
})(ESERVICE || (ESERVICE = {}));
|
|
36
38
|
/** --- openai 的连接对象 --- */
|
|
37
39
|
const links = [];
|
|
@@ -64,6 +66,10 @@ export class Ai {
|
|
|
64
66
|
endpoint = opt.endpoint ?? `https://dashscope-intl.aliyuncs.com/compatible-mode/v1`;
|
|
65
67
|
break;
|
|
66
68
|
}
|
|
69
|
+
case ESERVICE.ALINE: {
|
|
70
|
+
endpoint = opt.endpoint ?? `https://dashscope-us.aliyuncs.com/compatible-mode/v1`;
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
67
73
|
case ESERVICE.AZURE: {
|
|
68
74
|
endpoint = opt.endpoint ?? configAi.endpoint ?? '';
|
|
69
75
|
break;
|
|
@@ -148,9 +154,10 @@ export class Ai {
|
|
|
148
154
|
const seed = opt.seed ?? lCore.rand(0, 2147483647);
|
|
149
155
|
switch (this._service) {
|
|
150
156
|
case ESERVICE.ALICN:
|
|
151
|
-
case ESERVICE.ALIAS:
|
|
157
|
+
case ESERVICE.ALIAS:
|
|
158
|
+
case ESERVICE.ALINE: {
|
|
152
159
|
try {
|
|
153
|
-
const res = await this._fetch(`https://dashscope${this._service === ESERVICE.ALIAS ? '-intl' : ''}.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation`, {
|
|
160
|
+
const res = await this._fetch(`https://dashscope${this._service === ESERVICE.ALIAS ? '-intl' : (this._service === ESERVICE.ALINE ? '-us' : '')}.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation`, {
|
|
154
161
|
'method': 'POST',
|
|
155
162
|
'headers': {
|
|
156
163
|
'authorization': `Bearer ${this.link.apiKey}`,
|
|
@@ -295,9 +302,9 @@ export class Ai {
|
|
|
295
302
|
}
|
|
296
303
|
}
|
|
297
304
|
}
|
|
298
|
-
/** --- 异步生成视频,仅支持 ALICN、ALIAS --- */
|
|
305
|
+
/** --- 异步生成视频,仅支持 ALICN、ALIAS、ALINE --- */
|
|
299
306
|
async video(opt) {
|
|
300
|
-
if (this._service !== ESERVICE.ALICN && this._service !== ESERVICE.ALIAS) {
|
|
307
|
+
if (this._service !== ESERVICE.ALICN && this._service !== ESERVICE.ALIAS && this._service !== ESERVICE.ALINE) {
|
|
301
308
|
return false;
|
|
302
309
|
}
|
|
303
310
|
const mode = opt.mode ?? 'text';
|
|
@@ -373,7 +380,7 @@ export class Ai {
|
|
|
373
380
|
}
|
|
374
381
|
}
|
|
375
382
|
try {
|
|
376
|
-
const res = await this._fetch(`https://dashscope${this._service === ESERVICE.ALIAS ? '-intl' : ''}.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis`, {
|
|
383
|
+
const res = await this._fetch(`https://dashscope${this._service === ESERVICE.ALIAS ? '-intl' : (this._service === ESERVICE.ALINE ? '-us' : '')}.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis`, {
|
|
377
384
|
'method': 'POST',
|
|
378
385
|
'headers': {
|
|
379
386
|
'authorization': `Bearer ${this.link.apiKey}`,
|
|
@@ -432,11 +439,11 @@ export class Ai {
|
|
|
432
439
|
}
|
|
433
440
|
/** --- 轮询任务 --- */
|
|
434
441
|
async poll(opt) {
|
|
435
|
-
if (this._service !== ESERVICE.ALICN && this._service !== ESERVICE.ALIAS) {
|
|
442
|
+
if (this._service !== ESERVICE.ALICN && this._service !== ESERVICE.ALIAS && this._service !== ESERVICE.ALINE) {
|
|
436
443
|
return false;
|
|
437
444
|
}
|
|
438
445
|
try {
|
|
439
|
-
const res = await this._fetch(`https://dashscope${this._service === ESERVICE.ALIAS ? '-intl' : ''}.aliyuncs.com/api/v1/tasks/${opt.task}`, {
|
|
446
|
+
const res = await this._fetch(`https://dashscope${this._service === ESERVICE.ALIAS ? '-intl' : (this._service === ESERVICE.ALINE ? '-us' : '')}.aliyuncs.com/api/v1/tasks/${opt.task}`, {
|
|
440
447
|
'method': 'GET',
|
|
441
448
|
'headers': {
|
|
442
449
|
'authorization': `Bearer ${this.link.apiKey}`,
|
package/lib/buffer.d.ts
CHANGED
|
File without changes
|
package/lib/buffer.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/captcha.d.ts
CHANGED
|
File without changes
|
package/lib/captcha.js
CHANGED
|
File without changes
|
package/lib/consistent.d.ts
CHANGED
|
File without changes
|
package/lib/consistent.js
CHANGED
|
File without changes
|
package/lib/core.d.ts
CHANGED
|
File without changes
|
package/lib/core.js
CHANGED
|
File without changes
|
package/lib/cron.d.ts
CHANGED
|
File without changes
|
package/lib/cron.js
CHANGED
|
File without changes
|
package/lib/crypto.d.ts
CHANGED
|
File without changes
|
package/lib/crypto.js
CHANGED
|
File without changes
|
package/lib/db/conn.d.ts
CHANGED
|
File without changes
|
package/lib/db/conn.js
CHANGED
|
File without changes
|
package/lib/db/pool.d.ts
CHANGED
|
File without changes
|
package/lib/db/pool.js
CHANGED
|
File without changes
|
package/lib/db/tran.d.ts
CHANGED
|
File without changes
|
package/lib/db/tran.js
CHANGED
|
@@ -42,8 +42,8 @@ export class Transaction {
|
|
|
42
42
|
async query(sql, values) {
|
|
43
43
|
if (!this._conn) {
|
|
44
44
|
// --- 当前连接已不可用 ---
|
|
45
|
-
lCore.display('[DB][Transaction][query] has been closed ' + (this._ctr?.getPrototype('_config').const.path ?? 'no ctr') + ': ' + sql);
|
|
46
|
-
lCore.log({}, '[DB][Transaction][query] has been closed ' + (this._ctr?.getPrototype('_config').const.path ?? 'no ctr') + ': ' + sql, '-error');
|
|
45
|
+
lCore.display('[DB][Transaction][query] has been closed, so you cannot execute SQL: ' + (this._ctr?.getPrototype('_config').const.path ?? 'no ctr') + ': ' + sql);
|
|
46
|
+
lCore.log({}, '[DB][Transaction][query] has been closed, so you cannot execute SQL: ' + (this._ctr?.getPrototype('_config').const.path ?? 'no ctr') + ': ' + sql, '-error');
|
|
47
47
|
return {
|
|
48
48
|
'rows': null,
|
|
49
49
|
'fields': [],
|
|
@@ -65,8 +65,8 @@ export class Transaction {
|
|
|
65
65
|
async execute(sql, values) {
|
|
66
66
|
if (!this._conn) {
|
|
67
67
|
// --- 当前连接已不可用 ---
|
|
68
|
-
lCore.display('[DB][Transaction][execute] has been closed ' + (this._ctr?.getPrototype('_config').const.path ?? 'no ctr') + ': ' + sql);
|
|
69
|
-
lCore.log({}, '
|
|
68
|
+
lCore.display('[DB][Transaction][execute] has been closed, so you cannot execute SQL: ' + (this._ctr?.getPrototype('_config').const.path ?? 'no ctr') + ': ' + sql);
|
|
69
|
+
lCore.log({}, '[DB][Transaction][execute] has been closed, so you cannot execute SQL: ' + (this._ctr?.getPrototype('_config').const.path ?? 'no ctr') + ': ' + sql, '-error');
|
|
70
70
|
return {
|
|
71
71
|
'packet': null,
|
|
72
72
|
'fields': [],
|
|
@@ -83,8 +83,8 @@ export class Transaction {
|
|
|
83
83
|
async commit() {
|
|
84
84
|
if (!this._conn) {
|
|
85
85
|
// --- 当前连接已不可用 ---
|
|
86
|
-
lCore.display('[DB][Transaction][commit] has been closed ' + (this._ctr?.getPrototype('_config').const.path ?? 'no ctr'));
|
|
87
|
-
lCore.log({}, '[DB][Transaction][commit] has been closed ' + (this._ctr?.getPrototype('_config').const.path ?? 'no ctr'), '-error');
|
|
86
|
+
lCore.display('[DB][Transaction][commit] has been closed, so you cannot commit: ' + (this._ctr?.getPrototype('_config').const.path ?? 'no ctr'));
|
|
87
|
+
lCore.log({}, '[DB][Transaction][commit] has been closed, so you cannot commit: ' + (this._ctr?.getPrototype('_config').const.path ?? 'no ctr'), '-error');
|
|
88
88
|
return false;
|
|
89
89
|
}
|
|
90
90
|
const r = await this._conn.commit();
|
|
@@ -104,8 +104,8 @@ export class Transaction {
|
|
|
104
104
|
async rollback() {
|
|
105
105
|
if (!this._conn) {
|
|
106
106
|
// --- 当前连接已不可用 ---
|
|
107
|
-
lCore.display('[DB][Transaction][rollback] has been closed: ' + (this._ctr?.getPrototype('_config').const.path ?? 'no ctr'));
|
|
108
|
-
lCore.log({}, '[DB][Transaction][rollback] has been closed: ' + (this._ctr?.getPrototype('_config').const.path ?? 'no ctr'), '-error');
|
|
107
|
+
lCore.display('[DB][Transaction][rollback] has been closed, so you cannot rollback: ' + (this._ctr?.getPrototype('_config').const.path ?? 'no ctr'));
|
|
108
|
+
lCore.log({}, '[DB][Transaction][rollback] has been closed, so you cannot rollback: ' + (this._ctr?.getPrototype('_config').const.path ?? 'no ctr'), '-error');
|
|
109
109
|
return false;
|
|
110
110
|
}
|
|
111
111
|
const r = await this._conn.rollback();
|
package/lib/db.d.ts
CHANGED
|
File without changes
|
package/lib/db.js
CHANGED
|
File without changes
|
package/lib/dns.d.ts
CHANGED
|
File without changes
|
package/lib/dns.js
CHANGED
|
File without changes
|
package/lib/fs.d.ts
CHANGED
|
File without changes
|
package/lib/fs.js
CHANGED
|
File without changes
|
package/lib/kv.d.ts
CHANGED
|
File without changes
|
package/lib/kv.js
CHANGED
|
File without changes
|
package/lib/lan.d.ts
CHANGED
|
File without changes
|
package/lib/lan.js
CHANGED
|
File without changes
|
package/lib/lang.d.ts
CHANGED
|
File without changes
|
package/lib/lang.js
CHANGED
|
File without changes
|
package/lib/net/cacert.pem
CHANGED
|
File without changes
|
package/lib/net/formdata.d.ts
CHANGED
|
File without changes
|
package/lib/net/formdata.js
CHANGED
|
File without changes
|
package/lib/net/request.d.ts
CHANGED
|
File without changes
|
package/lib/net/request.js
CHANGED
|
File without changes
|
package/lib/net/response.d.ts
CHANGED
|
File without changes
|
package/lib/net/response.js
CHANGED
|
File without changes
|
package/lib/net.d.ts
CHANGED
|
File without changes
|
package/lib/net.js
CHANGED
|
File without changes
|
package/lib/ratelimit.d.ts
CHANGED
|
File without changes
|
package/lib/ratelimit.js
CHANGED
|
File without changes
|
package/lib/s3.d.ts
CHANGED
|
File without changes
|
package/lib/s3.js
CHANGED
|
File without changes
|
package/lib/scan.d.ts
CHANGED
|
File without changes
|
package/lib/scan.js
CHANGED
|
File without changes
|
package/lib/session.d.ts
CHANGED
|
File without changes
|
package/lib/session.js
CHANGED
|
File without changes
|
package/lib/socket.d.ts
CHANGED
|
File without changes
|
package/lib/socket.js
CHANGED
|
File without changes
|
package/lib/sql.d.ts
CHANGED
|
File without changes
|
package/lib/sql.js
CHANGED
|
File without changes
|
package/lib/ssh/sftp.d.ts
CHANGED
|
File without changes
|
package/lib/ssh/sftp.js
CHANGED
|
File without changes
|
package/lib/ssh/shell.d.ts
CHANGED
|
File without changes
|
package/lib/ssh/shell.js
CHANGED
|
File without changes
|
package/lib/ssh.d.ts
CHANGED
|
File without changes
|
package/lib/ssh.js
CHANGED
|
File without changes
|
package/lib/text/tld.json
CHANGED
|
File without changes
|
package/lib/text.d.ts
CHANGED
|
File without changes
|
package/lib/text.js
CHANGED
|
File without changes
|
package/lib/time.d.ts
CHANGED
|
File without changes
|
package/lib/time.js
CHANGED
|
File without changes
|
package/lib/turnstile.d.ts
CHANGED
|
File without changes
|
package/lib/turnstile.js
CHANGED
|
File without changes
|
package/lib/vector.d.ts
CHANGED
|
File without changes
|
package/lib/vector.js
CHANGED
|
File without changes
|
package/lib/ws.d.ts
CHANGED
|
File without changes
|
package/lib/ws.js
CHANGED
|
File without changes
|
package/lib/zip.d.ts
CHANGED
|
File without changes
|
package/lib/zip.js
CHANGED
|
File without changes
|
package/lib/zlib.d.ts
CHANGED
|
File without changes
|
package/lib/zlib.js
CHANGED
|
File without changes
|
package/main.d.ts
CHANGED
|
File without changes
|
package/main.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maiyunnet/kebab",
|
|
3
|
-
"version": "9.0
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"description": "Simple, easy-to-use, and fully-featured Node.js framework that is ready-to-use out of the box.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -28,12 +28,18 @@
|
|
|
28
28
|
"@litert/mime": "^0.1.3",
|
|
29
29
|
"@litert/redis": "^3.2.0",
|
|
30
30
|
"@litert/websocket": "^0.2.8",
|
|
31
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
32
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
33
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
34
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
35
|
+
"@tailwindcss/cli": "^4.2.2",
|
|
31
36
|
"@types/ssh2": "^1.15.5",
|
|
32
37
|
"@zilliz/milvus2-sdk-node": "^2.6.11",
|
|
33
38
|
"ajv": "^8.18.0",
|
|
34
39
|
"ajv-formats": "^3.0.1",
|
|
40
|
+
"class-variance-authority": "^0.7.1",
|
|
41
|
+
"clsx": "^2.1.1",
|
|
35
42
|
"ejs": "^5.0.1",
|
|
36
|
-
"@tailwindcss/cli": "^4.2.2",
|
|
37
43
|
"esbuild": "^0.27.4",
|
|
38
44
|
"jszip": "^3.10.1",
|
|
39
45
|
"mysql2": "^3.20.0",
|
|
@@ -45,6 +51,7 @@
|
|
|
45
51
|
"react-router-dom": "^7.13.1",
|
|
46
52
|
"ssh2": "^1.17.0",
|
|
47
53
|
"svg-captcha": "^1.4.0",
|
|
54
|
+
"tailwind-merge": "^3.5.0",
|
|
48
55
|
"tencentcloud-sdk-nodejs": "^4.1.199"
|
|
49
56
|
},
|
|
50
57
|
"devDependencies": {
|
package/sys/child.d.ts
CHANGED
|
File without changes
|
package/sys/child.js
CHANGED
|
File without changes
|
package/sys/cmd.d.ts
CHANGED
|
File without changes
|