@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.
Files changed (166) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/bin/kebab.js +0 -0
  4. package/doc/kebab-rag.md +636 -626
  5. package/index.d.ts +1 -1
  6. package/index.js +1 -1
  7. package/lib/ai.d.ts +12 -10
  8. package/lib/ai.js +22 -15
  9. package/lib/buffer.d.ts +0 -0
  10. package/lib/buffer.js +0 -0
  11. package/lib/captcha/zcool-addict-italic.ttf +0 -0
  12. package/lib/captcha.d.ts +0 -0
  13. package/lib/captcha.js +0 -0
  14. package/lib/consistent.d.ts +0 -0
  15. package/lib/consistent.js +0 -0
  16. package/lib/core.d.ts +0 -0
  17. package/lib/core.js +0 -0
  18. package/lib/cron.d.ts +0 -0
  19. package/lib/cron.js +0 -0
  20. package/lib/crypto.d.ts +0 -0
  21. package/lib/crypto.js +0 -0
  22. package/lib/db/conn.d.ts +0 -0
  23. package/lib/db/conn.js +0 -0
  24. package/lib/db/pool.d.ts +0 -0
  25. package/lib/db/pool.js +0 -0
  26. package/lib/db/tran.d.ts +0 -0
  27. package/lib/db/tran.js +8 -8
  28. package/lib/db.d.ts +0 -0
  29. package/lib/db.js +0 -0
  30. package/lib/dns.d.ts +0 -0
  31. package/lib/dns.js +0 -0
  32. package/lib/fs.d.ts +0 -0
  33. package/lib/fs.js +0 -0
  34. package/lib/kv.d.ts +0 -0
  35. package/lib/kv.js +0 -0
  36. package/lib/lan.d.ts +0 -0
  37. package/lib/lan.js +0 -0
  38. package/lib/lang.d.ts +0 -0
  39. package/lib/lang.js +0 -0
  40. package/lib/net/cacert.pem +0 -0
  41. package/lib/net/formdata.d.ts +0 -0
  42. package/lib/net/formdata.js +0 -0
  43. package/lib/net/request.d.ts +0 -0
  44. package/lib/net/request.js +0 -0
  45. package/lib/net/response.d.ts +0 -0
  46. package/lib/net/response.js +0 -0
  47. package/lib/net.d.ts +0 -0
  48. package/lib/net.js +0 -0
  49. package/lib/ratelimit.d.ts +0 -0
  50. package/lib/ratelimit.js +0 -0
  51. package/lib/s3.d.ts +0 -0
  52. package/lib/s3.js +0 -0
  53. package/lib/scan.d.ts +0 -0
  54. package/lib/scan.js +0 -0
  55. package/lib/session.d.ts +0 -0
  56. package/lib/session.js +0 -0
  57. package/lib/socket.d.ts +0 -0
  58. package/lib/socket.js +0 -0
  59. package/lib/sql.d.ts +0 -0
  60. package/lib/sql.js +0 -0
  61. package/lib/ssh/sftp.d.ts +0 -0
  62. package/lib/ssh/sftp.js +0 -0
  63. package/lib/ssh/shell.d.ts +0 -0
  64. package/lib/ssh/shell.js +0 -0
  65. package/lib/ssh.d.ts +0 -0
  66. package/lib/ssh.js +0 -0
  67. package/lib/text/tld.json +0 -0
  68. package/lib/text.d.ts +0 -0
  69. package/lib/text.js +0 -0
  70. package/lib/time.d.ts +0 -0
  71. package/lib/time.js +0 -0
  72. package/lib/turnstile.d.ts +0 -0
  73. package/lib/turnstile.js +0 -0
  74. package/lib/vector.d.ts +0 -0
  75. package/lib/vector.js +0 -0
  76. package/lib/ws.d.ts +0 -0
  77. package/lib/ws.js +0 -0
  78. package/lib/zip.d.ts +0 -0
  79. package/lib/zip.js +0 -0
  80. package/lib/zlib.d.ts +0 -0
  81. package/lib/zlib.js +0 -0
  82. package/main.d.ts +0 -0
  83. package/main.js +0 -0
  84. package/package.json +9 -2
  85. package/sys/child.d.ts +0 -0
  86. package/sys/child.js +0 -0
  87. package/sys/cmd.d.ts +0 -0
  88. package/sys/cmd.js +71 -42
  89. package/sys/ctr.d.ts +8 -0
  90. package/sys/ctr.js +86 -36
  91. package/sys/master.d.ts +0 -0
  92. package/sys/master.js +0 -0
  93. package/sys/mod.d.ts +0 -0
  94. package/sys/mod.js +0 -0
  95. package/sys/monitor/watchdog.d.ts +0 -0
  96. package/sys/monitor/watchdog.js +0 -0
  97. package/sys/monitor.d.ts +0 -0
  98. package/sys/monitor.js +1 -1
  99. package/sys/route.d.ts +0 -0
  100. package/sys/route.js +0 -0
  101. package/www/example/ctr/main.d.ts +0 -0
  102. package/www/example/ctr/main.js +0 -0
  103. package/www/example/ctr/middle.d.ts +0 -0
  104. package/www/example/ctr/middle.js +0 -0
  105. package/www/example/ctr/test.d.ts +4 -0
  106. package/www/example/ctr/test.js +18 -5
  107. package/www/example/data/locale/en.test.json +0 -0
  108. package/www/example/data/locale/index.html +0 -0
  109. package/www/example/data/locale/ja.test.json +0 -0
  110. package/www/example/data/locale/sc.test.json +0 -0
  111. package/www/example/data/locale/tc.test.json +0 -0
  112. package/www/example/data/test.zip +0 -0
  113. package/www/example/kebab.json +0 -0
  114. package/www/example/mod/test.d.ts +0 -0
  115. package/www/example/mod/test.js +0 -0
  116. package/www/example/mod/testdata.d.ts +0 -0
  117. package/www/example/mod/testdata.js +0 -0
  118. package/www/example/route.json +0 -0
  119. package/www/example/stc/chunk-YJ3GYATF.js +81 -0
  120. package/www/example/stc/lib/ui/checkbox.d.ts +9 -0
  121. package/www/example/stc/lib/ui/checkbox.js +11 -0
  122. package/www/example/stc/lib/ui/checkbox.tsx +30 -0
  123. package/www/example/stc/lib/ui/input.d.ts +3 -0
  124. package/www/example/stc/lib/ui/input.js +10 -0
  125. package/www/example/stc/lib/ui/input.tsx +24 -0
  126. package/www/example/stc/lib/ui/label.d.ts +11 -0
  127. package/www/example/stc/lib/ui/label.js +13 -0
  128. package/www/example/stc/lib/ui/label.tsx +24 -0
  129. package/www/example/stc/lib/ui/switch.d.ts +9 -0
  130. package/www/example/stc/lib/ui/switch.js +11 -0
  131. package/www/example/stc/lib/ui/switch.tsx +31 -0
  132. package/www/example/stc/lib/utils.d.ts +7 -0
  133. package/www/example/stc/lib/utils.js +10 -0
  134. package/www/example/stc/view/hello.page.bundle.js +1 -0
  135. package/www/example/stc/view/hello.page.css +2 -0
  136. package/www/example/stc/view/hello.page.d.ts +17 -0
  137. package/www/example/stc/view/hello.page.js +15 -0
  138. package/www/example/stc/view/hello.page.tsx +49 -0
  139. package/www/example/stc/view/react-router.page.bundle.js +1 -0
  140. package/www/example/stc/view/react-router.page.css +2 -0
  141. package/www/example/stc/view/{react-router-page.d.ts → react-router.page.d.ts} +1 -1
  142. package/www/example/stc/view/{react-router-page.js → react-router.page.js} +1 -1
  143. package/www/example/stc/view/{react-router-page.tsx → react-router.page.tsx} +1 -1
  144. package/www/example/stc/view/react.page.bundle.js +26 -0
  145. package/www/example/stc/view/react.page.css +2 -0
  146. package/www/example/stc/view/{react-page.d.ts → react.page.d.ts} +16 -18
  147. package/www/example/stc/view/react.page.js +181 -0
  148. package/www/example/stc/view/{react-page.tsx → react.page.tsx} +259 -111
  149. package/www/example/view/test.ejs +0 -0
  150. package/www/example/ws/handler.d.ts +0 -0
  151. package/www/example/ws/handler.js +0 -0
  152. package/www/example/ws/main.d.ts +0 -0
  153. package/www/example/ws/main.js +0 -0
  154. package/www/example/ws/mproxy.d.ts +0 -0
  155. package/www/example/ws/mproxy.js +0 -0
  156. package/www/example/ws/rproxy.d.ts +0 -0
  157. package/www/example/ws/rproxy.js +0 -0
  158. package/www/example/ws/rsocket.d.ts +0 -0
  159. package/www/example/ws/rsocket.js +0 -0
  160. package/www/example/ws/test.d.ts +0 -0
  161. package/www/example/ws/test.js +0 -0
  162. package/www/example/stc/view/react-page.bundle.js +0 -97
  163. package/www/example/stc/view/react-page.css +0 -2
  164. package/www/example/stc/view/react-page.js +0 -136
  165. package/www/example/stc/view/react-router-page.bundle.js +0 -81
  166. package/www/example/stc/view/react-router-page.css +0 -2
package/doc/kebab-rag.md CHANGED
@@ -54,59 +54,6 @@ if (!this._checkInput(this._post, {
54
54
  return retur;
55
55
  }
56
56
  ```
57
- index.md
58
- ---
59
-
60
- **Documents for @maiyunnet/kebab**
61
-
62
- ***
63
-
64
- # Documents for @maiyunnet/kebab
65
-
66
- ## Modules
67
-
68
- - [index](index/index.md)
69
- - [lib/ai](lib/ai/index.md)
70
- - [lib/buffer](lib/buffer/index.md)
71
- - [lib/captcha](lib/captcha/index.md)
72
- - [lib/consistent](lib/consistent/index.md)
73
- - [lib/core](lib/core/index.md)
74
- - [lib/cron](lib/cron/index.md)
75
- - [lib/crypto](lib/crypto/index.md)
76
- - [lib/db](lib/db/index.md)
77
- - [lib/db/conn](lib/db/conn/index.md)
78
- - [lib/db/pool](lib/db/pool/index.md)
79
- - [lib/db/tran](lib/db/tran/index.md)
80
- - [lib/dns](lib/dns/index.md)
81
- - [lib/fs](lib/fs/index.md)
82
- - [lib/kv](lib/kv/index.md)
83
- - [lib/lan](lib/lan/index.md)
84
- - [lib/lang](lib/lang/index.md)
85
- - [lib/net](lib/net/index.md)
86
- - [lib/net/formdata](lib/net/formdata/index.md)
87
- - [lib/net/request](lib/net/request/index.md)
88
- - [lib/net/response](lib/net/response/index.md)
89
- - [lib/ratelimit](lib/ratelimit/index.md)
90
- - [lib/s3](lib/s3/index.md)
91
- - [lib/scan](lib/scan/index.md)
92
- - [lib/session](lib/session/index.md)
93
- - [lib/socket](lib/socket/index.md)
94
- - [lib/sql](lib/sql/index.md)
95
- - [lib/ssh](lib/ssh/index.md)
96
- - [lib/ssh/sftp](lib/ssh/sftp/index.md)
97
- - [lib/ssh/shell](lib/ssh/shell/index.md)
98
- - [lib/text](lib/text/index.md)
99
- - [lib/time](lib/time/index.md)
100
- - [lib/turnstile](lib/turnstile/index.md)
101
- - [lib/vector](lib/vector/index.md)
102
- - [lib/ws](lib/ws/index.md)
103
- - [lib/zip](lib/zip/index.md)
104
- - [lib/zlib](lib/zlib/index.md)
105
- - [main](main/index.md)
106
- - [sys/ctr](sys/ctr/index.md)
107
- - [sys/mod](sys/mod/index.md)
108
- - [sys/route](sys/route/index.md)
109
-
110
57
  index/index.md
111
58
  ---
112
59
 
@@ -157,175 +104,6 @@ index/index.md
157
104
  - [VHOST\_CWD](variables/VHOST_CWD.md)
158
105
  - [WWW\_CWD](variables/WWW_CWD.md)
159
106
 
160
- index/interfaces/IConfig.md
161
- ---
162
-
163
- [**Documents for @maiyunnet/kebab**](../../index.md)
164
-
165
- ***
166
-
167
- [Documents for @maiyunnet/kebab](../../index.md) / [index](../index.md) / IConfig
168
-
169
- # Interface: IConfig
170
-
171
- Defined in: [index.ts:52](https://github.com/maiyunnet/kebab/blob/master/index.ts#L52)
172
-
173
- 目录配置文件
174
-
175
- ## Indexable
176
-
177
- > \[`key`: `string`\]: `Record`\<`string`, `any`\>
178
-
179
- ## Properties
180
-
181
- ### ai
182
-
183
- > **ai**: `Record`\<`string`, [`IConfigAi`](IConfigAi.md)\>
184
-
185
- Defined in: [index.ts:83](https://github.com/maiyunnet/kebab/blob/master/index.ts#L83)
186
-
187
- ***
188
-
189
- ### const
190
-
191
- > **const**: [`IConfigConst`](IConfigConst.md)
192
-
193
- Defined in: [index.ts:64](https://github.com/maiyunnet/kebab/blob/master/index.ts#L64)
194
-
195
- ***
196
-
197
- ### db
198
-
199
- > **db**: `Record`\<`string`, \{ `default`: [`IConfigDb`](IConfigDb.md); `read`: [`IConfigDb`](IConfigDb.md); \}\> & `object`
200
-
201
- Defined in: [index.ts:65](https://github.com/maiyunnet/kebab/blob/master/index.ts#L65)
202
-
203
- #### Type Declaration
204
-
205
- ##### default
206
-
207
- > **default**: `"MYSQL"` \| `"PGSQL"`
208
-
209
- ***
210
-
211
- ### dns
212
-
213
- > **dns**: `Record`\<`string`, [`IConfigDns`](IConfigDns.md)\>
214
-
215
- Defined in: [index.ts:79](https://github.com/maiyunnet/kebab/blob/master/index.ts#L79)
216
-
217
- ***
218
-
219
- ### kv
220
-
221
- > **kv**: [`IConfigKv`](IConfigKv.md)
222
-
223
- Defined in: [index.ts:71](https://github.com/maiyunnet/kebab/blob/master/index.ts#L71)
224
-
225
- ***
226
-
227
- ### lang
228
-
229
- > **lang**: [`IConfigLang`](IConfigLang.md)
230
-
231
- Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.ts#L80)
232
-
233
- ***
234
-
235
- ### route
236
-
237
- > **route**: `Record`\<`string`, `string`\>
238
-
239
- Defined in: [index.ts:72](https://github.com/maiyunnet/kebab/blob/master/index.ts#L72)
240
-
241
- ***
242
-
243
- ### s3
244
-
245
- > **s3**: `Record`\<`string`, [`IConfigS3`](IConfigS3.md)\>
246
-
247
- Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.ts#L81)
248
-
249
- ***
250
-
251
- ### session
252
-
253
- > **session**: `object`
254
-
255
- Defined in: [index.ts:73](https://github.com/maiyunnet/kebab/blob/master/index.ts#L73)
256
-
257
- #### name
258
-
259
- > **name**: `string`
260
-
261
- #### ssl
262
-
263
- > **ssl**: `boolean`
264
-
265
- #### ttl
266
-
267
- > **ttl**: `number`
268
-
269
- ***
270
-
271
- ### set
272
-
273
- > **set**: `object`
274
-
275
- Defined in: [index.ts:53](https://github.com/maiyunnet/kebab/blob/master/index.ts#L53)
276
-
277
- #### Index Signature
278
-
279
- \[`key`: `string`\]: `any`
280
-
281
- #### cacheTtl
282
-
283
- > **cacheTtl**: `number`
284
-
285
- #### mustHttps
286
-
287
- > **mustHttps**: `boolean`
288
-
289
- #### staticPath
290
-
291
- > **staticPath**: `string`
292
-
293
- #### staticPathFull
294
-
295
- > **staticPathFull**: `string`
296
-
297
- #### staticVer
298
-
299
- > **staticVer**: `string`
300
-
301
- #### timezone
302
-
303
- > **timezone**: `number`
304
-
305
- ***
306
-
307
- ### sql
308
-
309
- > **sql**: [`IConfigSql`](IConfigSql.md)
310
-
311
- Defined in: [index.ts:78](https://github.com/maiyunnet/kebab/blob/master/index.ts#L78)
312
-
313
- ***
314
-
315
- ### turnstile
316
-
317
- > **turnstile**: [`IConfigTurnstile`](IConfigTurnstile.md)
318
-
319
- Defined in: [index.ts:82](https://github.com/maiyunnet/kebab/blob/master/index.ts#L82)
320
-
321
- ***
322
-
323
- ### vector
324
-
325
- > **vector**: [`IConfigVector`](IConfigVector.md)
326
-
327
- Defined in: [index.ts:84](https://github.com/maiyunnet/kebab/blob/master/index.ts#L84)
328
-
329
107
  index/interfaces/IConfigAi.md
330
108
  ---
331
109
 
@@ -675,82 +453,251 @@ kv
675
453
 
676
454
  ## Properties
677
455
 
678
- ### host
456
+ ### host
457
+
458
+ > **host**: `string`
459
+
460
+ Defined in: [index.ts:168](https://github.com/maiyunnet/kebab/blob/master/index.ts#L168)
461
+
462
+ ***
463
+
464
+ ### index
465
+
466
+ > **index**: `number`
467
+
468
+ Defined in: [index.ts:170](https://github.com/maiyunnet/kebab/blob/master/index.ts#L170)
469
+
470
+ ***
471
+
472
+ ### port
473
+
474
+ > **port**: `number`
475
+
476
+ Defined in: [index.ts:169](https://github.com/maiyunnet/kebab/blob/master/index.ts#L169)
477
+
478
+ ***
479
+
480
+ ### pre
481
+
482
+ > **pre**: `string`
483
+
484
+ Defined in: [index.ts:171](https://github.com/maiyunnet/kebab/blob/master/index.ts#L171)
485
+
486
+ ***
487
+
488
+ ### pwd
489
+
490
+ > **pwd**: `string`
491
+
492
+ Defined in: [index.ts:174](https://github.com/maiyunnet/kebab/blob/master/index.ts#L174)
493
+
494
+ ***
495
+
496
+ ### user
497
+
498
+ > **user**: `string`
499
+
500
+ Defined in: [index.ts:173](https://github.com/maiyunnet/kebab/blob/master/index.ts#L173)
501
+
502
+ index/interfaces/IConfigLang.md
503
+ ---
504
+
505
+ [**Documents for @maiyunnet/kebab**](../../index.md)
506
+
507
+ ***
508
+
509
+ [Documents for @maiyunnet/kebab](../../index.md) / [index](../index.md) / IConfigLang
510
+
511
+ # Interface: IConfigLang
512
+
513
+ Defined in: [index.ts:104](https://github.com/maiyunnet/kebab/blob/master/index.ts#L104)
514
+
515
+ 语言
516
+
517
+ ## Properties
518
+
519
+ ### direct
520
+
521
+ > **direct**: `string`[]
522
+
523
+ Defined in: [index.ts:106](https://github.com/maiyunnet/kebab/blob/master/index.ts#L106)
524
+
525
+ ***
526
+
527
+ ### list
528
+
529
+ > **list**: `string`[]
530
+
531
+ Defined in: [index.ts:105](https://github.com/maiyunnet/kebab/blob/master/index.ts#L105)
532
+
533
+ index/interfaces/IConfig.md
534
+ ---
535
+
536
+ [**Documents for @maiyunnet/kebab**](../../index.md)
537
+
538
+ ***
539
+
540
+ [Documents for @maiyunnet/kebab](../../index.md) / [index](../index.md) / IConfig
541
+
542
+ # Interface: IConfig
543
+
544
+ Defined in: [index.ts:52](https://github.com/maiyunnet/kebab/blob/master/index.ts#L52)
545
+
546
+ 目录配置文件
547
+
548
+ ## Indexable
549
+
550
+ > \[`key`: `string`\]: `Record`\<`string`, `any`\>
551
+
552
+ ## Properties
553
+
554
+ ### ai
555
+
556
+ > **ai**: `Record`\<`string`, [`IConfigAi`](IConfigAi.md)\>
557
+
558
+ Defined in: [index.ts:83](https://github.com/maiyunnet/kebab/blob/master/index.ts#L83)
559
+
560
+ ***
561
+
562
+ ### const
563
+
564
+ > **const**: [`IConfigConst`](IConfigConst.md)
565
+
566
+ Defined in: [index.ts:64](https://github.com/maiyunnet/kebab/blob/master/index.ts#L64)
567
+
568
+ ***
569
+
570
+ ### db
571
+
572
+ > **db**: `Record`\<`string`, \{ `default`: [`IConfigDb`](IConfigDb.md); `read`: [`IConfigDb`](IConfigDb.md); \}\> & `object`
573
+
574
+ Defined in: [index.ts:65](https://github.com/maiyunnet/kebab/blob/master/index.ts#L65)
575
+
576
+ #### Type Declaration
577
+
578
+ ##### default
579
+
580
+ > **default**: `"MYSQL"` \| `"PGSQL"`
581
+
582
+ ***
583
+
584
+ ### dns
585
+
586
+ > **dns**: `Record`\<`string`, [`IConfigDns`](IConfigDns.md)\>
587
+
588
+ Defined in: [index.ts:79](https://github.com/maiyunnet/kebab/blob/master/index.ts#L79)
589
+
590
+ ***
591
+
592
+ ### kv
593
+
594
+ > **kv**: [`IConfigKv`](IConfigKv.md)
595
+
596
+ Defined in: [index.ts:71](https://github.com/maiyunnet/kebab/blob/master/index.ts#L71)
597
+
598
+ ***
599
+
600
+ ### lang
601
+
602
+ > **lang**: [`IConfigLang`](IConfigLang.md)
603
+
604
+ Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.ts#L80)
605
+
606
+ ***
607
+
608
+ ### route
609
+
610
+ > **route**: `Record`\<`string`, `string`\>
611
+
612
+ Defined in: [index.ts:72](https://github.com/maiyunnet/kebab/blob/master/index.ts#L72)
613
+
614
+ ***
615
+
616
+ ### s3
617
+
618
+ > **s3**: `Record`\<`string`, [`IConfigS3`](IConfigS3.md)\>
619
+
620
+ Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.ts#L81)
621
+
622
+ ***
623
+
624
+ ### session
625
+
626
+ > **session**: `object`
627
+
628
+ Defined in: [index.ts:73](https://github.com/maiyunnet/kebab/blob/master/index.ts#L73)
679
629
 
680
- > **host**: `string`
630
+ #### name
681
631
 
682
- Defined in: [index.ts:168](https://github.com/maiyunnet/kebab/blob/master/index.ts#L168)
632
+ > **name**: `string`
683
633
 
684
- ***
634
+ #### ssl
685
635
 
686
- ### index
636
+ > **ssl**: `boolean`
687
637
 
688
- > **index**: `number`
638
+ #### ttl
689
639
 
690
- Defined in: [index.ts:170](https://github.com/maiyunnet/kebab/blob/master/index.ts#L170)
640
+ > **ttl**: `number`
691
641
 
692
642
  ***
693
643
 
694
- ### port
644
+ ### set
695
645
 
696
- > **port**: `number`
646
+ > **set**: `object`
697
647
 
698
- Defined in: [index.ts:169](https://github.com/maiyunnet/kebab/blob/master/index.ts#L169)
648
+ Defined in: [index.ts:53](https://github.com/maiyunnet/kebab/blob/master/index.ts#L53)
699
649
 
700
- ***
650
+ #### Index Signature
701
651
 
702
- ### pre
652
+ \[`key`: `string`\]: `any`
703
653
 
704
- > **pre**: `string`
654
+ #### cacheTtl
705
655
 
706
- Defined in: [index.ts:171](https://github.com/maiyunnet/kebab/blob/master/index.ts#L171)
656
+ > **cacheTtl**: `number`
707
657
 
708
- ***
658
+ #### mustHttps
709
659
 
710
- ### pwd
660
+ > **mustHttps**: `boolean`
711
661
 
712
- > **pwd**: `string`
662
+ #### staticPath
713
663
 
714
- Defined in: [index.ts:174](https://github.com/maiyunnet/kebab/blob/master/index.ts#L174)
664
+ > **staticPath**: `string`
715
665
 
716
- ***
666
+ #### staticPathFull
717
667
 
718
- ### user
668
+ > **staticPathFull**: `string`
719
669
 
720
- > **user**: `string`
670
+ #### staticVer
721
671
 
722
- Defined in: [index.ts:173](https://github.com/maiyunnet/kebab/blob/master/index.ts#L173)
672
+ > **staticVer**: `string`
723
673
 
724
- index/interfaces/IConfigLang.md
725
- ---
674
+ #### timezone
726
675
 
727
- [**Documents for @maiyunnet/kebab**](../../index.md)
676
+ > **timezone**: `number`
728
677
 
729
678
  ***
730
679
 
731
- [Documents for @maiyunnet/kebab](../../index.md) / [index](../index.md) / IConfigLang
732
-
733
- # Interface: IConfigLang
680
+ ### sql
734
681
 
735
- Defined in: [index.ts:104](https://github.com/maiyunnet/kebab/blob/master/index.ts#L104)
682
+ > **sql**: [`IConfigSql`](IConfigSql.md)
736
683
 
737
- 语言
684
+ Defined in: [index.ts:78](https://github.com/maiyunnet/kebab/blob/master/index.ts#L78)
738
685
 
739
- ## Properties
686
+ ***
740
687
 
741
- ### direct
688
+ ### turnstile
742
689
 
743
- > **direct**: `string`[]
690
+ > **turnstile**: [`IConfigTurnstile`](IConfigTurnstile.md)
744
691
 
745
- Defined in: [index.ts:106](https://github.com/maiyunnet/kebab/blob/master/index.ts#L106)
692
+ Defined in: [index.ts:82](https://github.com/maiyunnet/kebab/blob/master/index.ts#L82)
746
693
 
747
694
  ***
748
695
 
749
- ### list
696
+ ### vector
750
697
 
751
- > **list**: `string`[]
698
+ > **vector**: [`IConfigVector`](IConfigVector.md)
752
699
 
753
- Defined in: [index.ts:105](https://github.com/maiyunnet/kebab/blob/master/index.ts#L105)
700
+ Defined in: [index.ts:84](https://github.com/maiyunnet/kebab/blob/master/index.ts#L84)
754
701
 
755
702
  index/interfaces/IConfigS3.md
756
703
  ---
@@ -1137,6 +1084,59 @@ Defined in: [index.ts:226](https://github.com/maiyunnet/kebab/blob/master/index.
1137
1084
 
1138
1085
  Defined in: [index.ts:225](https://github.com/maiyunnet/kebab/blob/master/index.ts#L225)
1139
1086
 
1087
+ index.md
1088
+ ---
1089
+
1090
+ **Documents for @maiyunnet/kebab**
1091
+
1092
+ ***
1093
+
1094
+ # Documents for @maiyunnet/kebab
1095
+
1096
+ ## Modules
1097
+
1098
+ - [index](index/index.md)
1099
+ - [lib/ai](lib/ai/index.md)
1100
+ - [lib/buffer](lib/buffer/index.md)
1101
+ - [lib/captcha](lib/captcha/index.md)
1102
+ - [lib/consistent](lib/consistent/index.md)
1103
+ - [lib/core](lib/core/index.md)
1104
+ - [lib/cron](lib/cron/index.md)
1105
+ - [lib/crypto](lib/crypto/index.md)
1106
+ - [lib/db](lib/db/index.md)
1107
+ - [lib/db/conn](lib/db/conn/index.md)
1108
+ - [lib/db/pool](lib/db/pool/index.md)
1109
+ - [lib/db/tran](lib/db/tran/index.md)
1110
+ - [lib/dns](lib/dns/index.md)
1111
+ - [lib/fs](lib/fs/index.md)
1112
+ - [lib/kv](lib/kv/index.md)
1113
+ - [lib/lan](lib/lan/index.md)
1114
+ - [lib/lang](lib/lang/index.md)
1115
+ - [lib/net](lib/net/index.md)
1116
+ - [lib/net/formdata](lib/net/formdata/index.md)
1117
+ - [lib/net/request](lib/net/request/index.md)
1118
+ - [lib/net/response](lib/net/response/index.md)
1119
+ - [lib/ratelimit](lib/ratelimit/index.md)
1120
+ - [lib/s3](lib/s3/index.md)
1121
+ - [lib/scan](lib/scan/index.md)
1122
+ - [lib/session](lib/session/index.md)
1123
+ - [lib/socket](lib/socket/index.md)
1124
+ - [lib/sql](lib/sql/index.md)
1125
+ - [lib/ssh](lib/ssh/index.md)
1126
+ - [lib/ssh/sftp](lib/ssh/sftp/index.md)
1127
+ - [lib/ssh/shell](lib/ssh/shell/index.md)
1128
+ - [lib/text](lib/text/index.md)
1129
+ - [lib/time](lib/time/index.md)
1130
+ - [lib/turnstile](lib/turnstile/index.md)
1131
+ - [lib/vector](lib/vector/index.md)
1132
+ - [lib/ws](lib/ws/index.md)
1133
+ - [lib/zip](lib/zip/index.md)
1134
+ - [lib/zlib](lib/zlib/index.md)
1135
+ - [main](main/index.md)
1136
+ - [sys/ctr](sys/ctr/index.md)
1137
+ - [sys/mod](sys/mod/index.md)
1138
+ - [sys/route](sys/route/index.md)
1139
+
1140
1140
  index/type-aliases/DbValue.md
1141
1141
  ---
1142
1142
 
@@ -1355,7 +1355,7 @@ index/variables/VER.md
1355
1355
 
1356
1356
  # Variable: VER
1357
1357
 
1358
- > `const` **VER**: `"9.0.1"` = `'9.0.1'`
1358
+ > `const` **VER**: `"9.1.0"` = `'9.1.0'`
1359
1359
 
1360
1360
  Defined in: [index.ts:10](https://github.com/maiyunnet/kebab/blob/master/index.ts#L10)
1361
1361
 
@@ -1402,7 +1402,7 @@ lib/ai/classes/Ai.md
1402
1402
 
1403
1403
  # Class: Ai
1404
1404
 
1405
- Defined in: [lib/ai.ts:58](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L58)
1405
+ Defined in: [lib/ai.ts:60](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L60)
1406
1406
 
1407
1407
  ## Constructors
1408
1408
 
@@ -1410,7 +1410,7 @@ Defined in: [lib/ai.ts:58](https://github.com/maiyunnet/kebab/blob/master/lib/ai
1410
1410
 
1411
1411
  > **new Ai**(`ctrEtc`, `opt`): `Ai`
1412
1412
 
1413
- Defined in: [lib/ai.ts:71](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L71)
1413
+ Defined in: [lib/ai.ts:73](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L73)
1414
1414
 
1415
1415
  #### Parameters
1416
1416
 
@@ -1432,7 +1432,7 @@ Defined in: [lib/ai.ts:71](https://github.com/maiyunnet/kebab/blob/master/lib/ai
1432
1432
 
1433
1433
  > `readonly` **link**: `OpenAI`
1434
1434
 
1435
- Defined in: [lib/ai.ts:61](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L61)
1435
+ Defined in: [lib/ai.ts:63](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L63)
1436
1436
 
1437
1437
  openai 原生对象
1438
1438
 
@@ -1444,7 +1444,7 @@ openai 原生对象
1444
1444
 
1445
1445
  > **get** **service**(): [`ESERVICE`](../enumerations/ESERVICE.md)
1446
1446
 
1447
- Defined in: [lib/ai.ts:143](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L143)
1447
+ Defined in: [lib/ai.ts:149](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L149)
1448
1448
 
1449
1449
  获取当前服务商
1450
1450
 
@@ -1462,7 +1462,7 @@ Defined in: [lib/ai.ts:143](https://github.com/maiyunnet/kebab/blob/master/lib/a
1462
1462
 
1463
1463
  > **chat**(`body`): `Promise`\<`false` \| `APIPromise`\<`ChatCompletion`\>\>
1464
1464
 
1465
- Defined in: [lib/ai.ts:148](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L148)
1465
+ Defined in: [lib/ai.ts:154](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L154)
1466
1466
 
1467
1467
  创建非流式对话
1468
1468
 
@@ -1480,7 +1480,7 @@ Defined in: [lib/ai.ts:148](https://github.com/maiyunnet/kebab/blob/master/lib/a
1480
1480
 
1481
1481
  > **chat**(`body`): `Promise`\<`false` \| `APIPromise`\<`Stream`\<`ChatCompletionChunk`\>\>\>
1482
1482
 
1483
- Defined in: [lib/ai.ts:152](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L152)
1483
+ Defined in: [lib/ai.ts:158](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L158)
1484
1484
 
1485
1485
  创建流式对话
1486
1486
 
@@ -1500,7 +1500,7 @@ Defined in: [lib/ai.ts:152](https://github.com/maiyunnet/kebab/blob/master/lib/a
1500
1500
 
1501
1501
  > **embedding**(`body`): `Promise`\<`false` \| `APIPromise`\<`CreateEmbeddingResponse`\>\>
1502
1502
 
1503
- Defined in: [lib/ai.ts:175](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L175)
1503
+ Defined in: [lib/ai.ts:181](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L181)
1504
1504
 
1505
1505
  创建向量
1506
1506
 
@@ -1520,7 +1520,7 @@ Defined in: [lib/ai.ts:175](https://github.com/maiyunnet/kebab/blob/master/lib/a
1520
1520
 
1521
1521
  > **image**(`opt`): `Promise`\<`false` \| \{ `list`: `object`[]; `request`: `string`; `seed`: `number`; \}\>
1522
1522
 
1523
- Defined in: [lib/ai.ts:191](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L191)
1523
+ Defined in: [lib/ai.ts:197](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L197)
1524
1524
 
1525
1525
  生成图像,不支持 GEMINI、GROK 服务商
1526
1526
 
@@ -1538,7 +1538,7 @@ Defined in: [lib/ai.ts:191](https://github.com/maiyunnet/kebab/blob/master/lib/a
1538
1538
 
1539
1539
  `string`[]
1540
1540
 
1541
- 参考图,请注意模型是否支持,以及是否支持多张,仅支持 ALICN、ALIAS、VOLCN、VOLAS 服务商
1541
+ 参考图,请注意模型是否支持,以及是否支持多张,仅支持 ALICN、ALIAS、ALINE、VOLCN、VOLAS 服务商
1542
1542
 
1543
1543
  ###### model
1544
1544
 
@@ -1580,9 +1580,9 @@ Defined in: [lib/ai.ts:191](https://github.com/maiyunnet/kebab/blob/master/lib/a
1580
1580
 
1581
1581
  ### poll()
1582
1582
 
1583
- > **poll**(`opt`): `Promise`\<`false` \| \{ `add?`: `number`; `end?`: `number`; `error?`: `string`; `start?`: `number`; `status`: `"FAILED"` \| `"PENDING"` \| `"RUNNING"` \| `"SUCCEEDED"` \| `"CANCELED"` \| `"UNKNOWN"`; `task`: `string`; `url?`: `string`; \}\>
1583
+ > **poll**(`opt`): `Promise`\<`false` \| \{ `add?`: `number`; `end?`: `number`; `error?`: `string`; `start?`: `number`; `status`: `"PENDING"` \| `"RUNNING"` \| `"SUCCEEDED"` \| `"FAILED"` \| `"CANCELED"` \| `"UNKNOWN"`; `task`: `string`; `url?`: `string`; \}\>
1584
1584
 
1585
- Defined in: [lib/ai.ts:539](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L539)
1585
+ Defined in: [lib/ai.ts:546](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L546)
1586
1586
 
1587
1587
  轮询任务
1588
1588
 
@@ -1600,17 +1600,17 @@ Defined in: [lib/ai.ts:539](https://github.com/maiyunnet/kebab/blob/master/lib/a
1600
1600
 
1601
1601
  #### Returns
1602
1602
 
1603
- `Promise`\<`false` \| \{ `add?`: `number`; `end?`: `number`; `error?`: `string`; `start?`: `number`; `status`: `"FAILED"` \| `"PENDING"` \| `"RUNNING"` \| `"SUCCEEDED"` \| `"CANCELED"` \| `"UNKNOWN"`; `task`: `string`; `url?`: `string`; \}\>
1603
+ `Promise`\<`false` \| \{ `add?`: `number`; `end?`: `number`; `error?`: `string`; `start?`: `number`; `status`: `"PENDING"` \| `"RUNNING"` \| `"SUCCEEDED"` \| `"FAILED"` \| `"CANCELED"` \| `"UNKNOWN"`; `task`: `string`; `url?`: `string`; \}\>
1604
1604
 
1605
1605
  ***
1606
1606
 
1607
1607
  ### video()
1608
1608
 
1609
- > **video**(`opt`): `Promise`\<`false` \| \{ `request`: `string`; `seed`: `number`; `status`: `"FAILED"` \| `"PENDING"` \| `"RUNNING"` \| `"SUCCEEDED"` \| `"CANCELED"` \| `"UNKNOWN"`; `task`: `string`; \}\>
1609
+ > **video**(`opt`): `Promise`\<`false` \| \{ `request`: `string`; `seed`: `number`; `status`: `"PENDING"` \| `"RUNNING"` \| `"SUCCEEDED"` \| `"FAILED"` \| `"CANCELED"` \| `"UNKNOWN"`; `task`: `string`; \}\>
1610
1610
 
1611
- Defined in: [lib/ai.ts:371](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L371)
1611
+ Defined in: [lib/ai.ts:378](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L378)
1612
1612
 
1613
- 异步生成视频,仅支持 ALICN、ALIAS
1613
+ 异步生成视频,仅支持 ALICN、ALIAS、ALINE
1614
1614
 
1615
1615
  #### Parameters
1616
1616
 
@@ -1686,7 +1686,7 @@ Defined in: [lib/ai.ts:371](https://github.com/maiyunnet/kebab/blob/master/lib/a
1686
1686
 
1687
1687
  #### Returns
1688
1688
 
1689
- `Promise`\<`false` \| \{ `request`: `string`; `seed`: `number`; `status`: `"FAILED"` \| `"PENDING"` \| `"RUNNING"` \| `"SUCCEEDED"` \| `"CANCELED"` \| `"UNKNOWN"`; `task`: `string`; \}\>
1689
+ `Promise`\<`false` \| \{ `request`: `string`; `seed`: `number`; `status`: `"PENDING"` \| `"RUNNING"` \| `"SUCCEEDED"` \| `"FAILED"` \| `"CANCELED"` \| `"UNKNOWN"`; `task`: `string`; \}\>
1690
1690
 
1691
1691
  lib/ai/enumerations/ESERVICE.md
1692
1692
  ---
@@ -1711,7 +1711,7 @@ Defined in: [lib/ai.ts:19](https://github.com/maiyunnet/kebab/blob/master/lib/ai
1711
1711
 
1712
1712
  Defined in: [lib/ai.ts:23](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L23)
1713
1713
 
1714
- 阿里国际区
1714
+ 阿里新加坡
1715
1715
 
1716
1716
  ***
1717
1717
 
@@ -1725,21 +1725,31 @@ Defined in: [lib/ai.ts:21](https://github.com/maiyunnet/kebab/blob/master/lib/ai
1725
1725
 
1726
1726
  ***
1727
1727
 
1728
- ### AZURE
1728
+ ### ALINE
1729
1729
 
1730
- > **AZURE**: `2`
1730
+ > **ALINE**: `2`
1731
1731
 
1732
1732
  Defined in: [lib/ai.ts:25](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L25)
1733
1733
 
1734
+ 阿里美国
1735
+
1736
+ ***
1737
+
1738
+ ### AZURE
1739
+
1740
+ > **AZURE**: `3`
1741
+
1742
+ Defined in: [lib/ai.ts:27](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L27)
1743
+
1734
1744
  微软 Azure
1735
1745
 
1736
1746
  ***
1737
1747
 
1738
1748
  ### AZURE2
1739
1749
 
1740
- > **AZURE2**: `3`
1750
+ > **AZURE2**: `4`
1741
1751
 
1742
- Defined in: [lib/ai.ts:27](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L27)
1752
+ Defined in: [lib/ai.ts:29](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L29)
1743
1753
 
1744
1754
  微软 Azure 2
1745
1755
 
@@ -1747,9 +1757,9 @@ Defined in: [lib/ai.ts:27](https://github.com/maiyunnet/kebab/blob/master/lib/ai
1747
1757
 
1748
1758
  ### AZURE3
1749
1759
 
1750
- > **AZURE3**: `4`
1760
+ > **AZURE3**: `5`
1751
1761
 
1752
- Defined in: [lib/ai.ts:29](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L29)
1762
+ Defined in: [lib/ai.ts:31](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L31)
1753
1763
 
1754
1764
  微软 Azure 3
1755
1765
 
@@ -1757,9 +1767,9 @@ Defined in: [lib/ai.ts:29](https://github.com/maiyunnet/kebab/blob/master/lib/ai
1757
1767
 
1758
1768
  ### GEMINI
1759
1769
 
1760
- > **GEMINI**: `5`
1770
+ > **GEMINI**: `6`
1761
1771
 
1762
- Defined in: [lib/ai.ts:31](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L31)
1772
+ Defined in: [lib/ai.ts:33](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L33)
1763
1773
 
1764
1774
  Gemini
1765
1775
 
@@ -1767,9 +1777,9 @@ Gemini
1767
1777
 
1768
1778
  ### GROK
1769
1779
 
1770
- > **GROK**: `6`
1780
+ > **GROK**: `7`
1771
1781
 
1772
- Defined in: [lib/ai.ts:33](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L33)
1782
+ Defined in: [lib/ai.ts:35](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L35)
1773
1783
 
1774
1784
  Grok
1775
1785
 
@@ -1777,9 +1787,9 @@ Grok
1777
1787
 
1778
1788
  ### VOLAS
1779
1789
 
1780
- > **VOLAS**: `8`
1790
+ > **VOLAS**: `9`
1781
1791
 
1782
- Defined in: [lib/ai.ts:37](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L37)
1792
+ Defined in: [lib/ai.ts:39](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L39)
1783
1793
 
1784
1794
  火山引擎国际区
1785
1795
 
@@ -1787,9 +1797,9 @@ Defined in: [lib/ai.ts:37](https://github.com/maiyunnet/kebab/blob/master/lib/ai
1787
1797
 
1788
1798
  ### VOLCN
1789
1799
 
1790
- > **VOLCN**: `7`
1800
+ > **VOLCN**: `8`
1791
1801
 
1792
- Defined in: [lib/ai.ts:35](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L35)
1802
+ Defined in: [lib/ai.ts:37](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L37)
1793
1803
 
1794
1804
  火山引擎中国大陆区
1795
1805
 
@@ -1806,7 +1816,7 @@ lib/ai/functions/get.md
1806
1816
 
1807
1817
  > **get**(`ctrEtc`, `opt`): [`Ai`](../classes/Ai.md)
1808
1818
 
1809
- Defined in: [lib/ai.ts:594](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L594)
1819
+ Defined in: [lib/ai.ts:601](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L601)
1810
1820
 
1811
1821
  创建一个 AI 对象
1812
1822
 
@@ -1864,7 +1874,7 @@ lib/ai/interfaces/IOptions.md
1864
1874
 
1865
1875
  # Interface: IOptions
1866
1876
 
1867
- Defined in: [lib/ai.ts:41](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L41)
1877
+ Defined in: [lib/ai.ts:43](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L43)
1868
1878
 
1869
1879
  选项
1870
1880
 
@@ -1874,7 +1884,7 @@ Defined in: [lib/ai.ts:41](https://github.com/maiyunnet/kebab/blob/master/lib/ai
1874
1884
 
1875
1885
  > `optional` **endpoint?**: `string`
1876
1886
 
1877
- Defined in: [lib/ai.ts:45](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L45)
1887
+ Defined in: [lib/ai.ts:47](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L47)
1878
1888
 
1879
1889
  接入点
1880
1890
 
@@ -1884,7 +1894,7 @@ Defined in: [lib/ai.ts:45](https://github.com/maiyunnet/kebab/blob/master/lib/ai
1884
1894
 
1885
1895
  > `optional` **fetch?**: (`input`, `init?`) => `Promise`\<`Response`\>
1886
1896
 
1887
- Defined in: [lib/ai.ts:49](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L49)
1897
+ Defined in: [lib/ai.ts:51](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L51)
1888
1898
 
1889
1899
  自定义 fetch 函数
1890
1900
 
@@ -1908,7 +1918,7 @@ Defined in: [lib/ai.ts:49](https://github.com/maiyunnet/kebab/blob/master/lib/ai
1908
1918
 
1909
1919
  > `optional` **secretKey?**: `string`
1910
1920
 
1911
- Defined in: [lib/ai.ts:47](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L47)
1921
+ Defined in: [lib/ai.ts:49](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L49)
1912
1922
 
1913
1923
  密钥
1914
1924
 
@@ -1918,7 +1928,7 @@ Defined in: [lib/ai.ts:47](https://github.com/maiyunnet/kebab/blob/master/lib/ai
1918
1928
 
1919
1929
  > **service**: [`ESERVICE`](../enumerations/ESERVICE.md)
1920
1930
 
1921
- Defined in: [lib/ai.ts:43](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L43)
1931
+ Defined in: [lib/ai.ts:45](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L45)
1922
1932
 
1923
1933
  服务商 -
1924
1934
 
@@ -4034,41 +4044,6 @@ zip 文件
4034
4044
 
4035
4045
  `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
4036
4046
 
4037
- lib/core/functions/write.md
4038
- ---
4039
-
4040
- [**Documents for @maiyunnet/kebab**](../../../index.md)
4041
-
4042
- ***
4043
-
4044
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/core](../index.md) / write
4045
-
4046
- # Function: write()
4047
-
4048
- > **write**(`res`, `data`): `void`
4049
-
4050
- Defined in: [lib/core.ts:1082](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1082)
4051
-
4052
- 向 res 发送数据
4053
-
4054
- ## Parameters
4055
-
4056
- ### res
4057
-
4058
- `Socket` \| `Http2ServerResponse`\<`Http2ServerRequest`\> \| `ServerResponse`\<`IncomingMessage`\>
4059
-
4060
- 响应对象
4061
-
4062
- ### data
4063
-
4064
- `string` \| `Buffer`\<`ArrayBufferLike`\>
4065
-
4066
- 数据
4067
-
4068
- ## Returns
4069
-
4070
- `void`
4071
-
4072
4047
  lib/core/functions/writeEventStreamHead.md
4073
4048
  ---
4074
4049
 
@@ -4135,6 +4110,41 @@ Defined in: [lib/core.ts:1059](https://github.com/maiyunnet/kebab/blob/master/li
4135
4110
 
4136
4111
  `void`
4137
4112
 
4113
+ lib/core/functions/write.md
4114
+ ---
4115
+
4116
+ [**Documents for @maiyunnet/kebab**](../../../index.md)
4117
+
4118
+ ***
4119
+
4120
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/core](../index.md) / write
4121
+
4122
+ # Function: write()
4123
+
4124
+ > **write**(`res`, `data`): `void`
4125
+
4126
+ Defined in: [lib/core.ts:1082](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1082)
4127
+
4128
+ 向 res 发送数据
4129
+
4130
+ ## Parameters
4131
+
4132
+ ### res
4133
+
4134
+ `Socket` \| `Http2ServerResponse`\<`Http2ServerRequest`\> \| `ServerResponse`\<`IncomingMessage`\>
4135
+
4136
+ 响应对象
4137
+
4138
+ ### data
4139
+
4140
+ `string` \| `Buffer`\<`ArrayBufferLike`\>
4141
+
4142
+ 数据
4143
+
4144
+ ## Returns
4145
+
4146
+ `void`
4147
+
4138
4148
  lib/core/index.md
4139
4149
  ---
4140
4150
 
@@ -4367,23 +4377,6 @@ Defined in: [lib/core.ts:593](https://github.com/maiyunnet/kebab/blob/master/lib
4367
4377
 
4368
4378
  PM2 操作类型
4369
4379
 
4370
- lib/core/variables/global.md
4371
- ---
4372
-
4373
- [**Documents for @maiyunnet/kebab**](../../../index.md)
4374
-
4375
- ***
4376
-
4377
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/core](../index.md) / global
4378
-
4379
- # Variable: global
4380
-
4381
- > `const` **global**: `Record`\<`string`, `any`\> = `{}`
4382
-
4383
- Defined in: [lib/core.ts:676](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L676)
4384
-
4385
- 跨进程全局变量
4386
-
4387
4380
  lib/core/variables/globalConfig.md
4388
4381
  ---
4389
4382
 
@@ -4433,13 +4426,30 @@ Defined in: [lib/core.ts:24](https://github.com/maiyunnet/kebab/blob/master/lib/
4433
4426
 
4434
4427
  > **max**: `number`
4435
4428
 
4436
- ### rpcPort
4429
+ ### rpcPort
4430
+
4431
+ > **rpcPort**: `number`
4432
+
4433
+ ### rpcSecret
4434
+
4435
+ > **rpcSecret**: `string`
4436
+
4437
+ lib/core/variables/global.md
4438
+ ---
4439
+
4440
+ [**Documents for @maiyunnet/kebab**](../../../index.md)
4441
+
4442
+ ***
4443
+
4444
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/core](../index.md) / global
4445
+
4446
+ # Variable: global
4437
4447
 
4438
- > **rpcPort**: `number`
4448
+ > `const` **global**: `Record`\<`string`, `any`\> = `{}`
4439
4449
 
4440
- ### rpcSecret
4450
+ Defined in: [lib/core.ts:676](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L676)
4441
4451
 
4442
- > **rpcSecret**: `string`
4452
+ 跨进程全局变量
4443
4453
 
4444
4454
  lib/core/variables/RANDOM_L.md
4445
4455
  ---
@@ -4705,24 +4715,24 @@ lib/cron/index.md
4705
4715
  - [getRegulars](functions/getRegulars.md)
4706
4716
  - [regular](functions/regular.md)
4707
4717
 
4708
- lib/cron/interfaces/IRegular.md
4718
+ lib/cron/interfaces/IRegularData.md
4709
4719
  ---
4710
4720
 
4711
4721
  [**Documents for @maiyunnet/kebab**](../../../index.md)
4712
4722
 
4713
4723
  ***
4714
4724
 
4715
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/cron](../index.md) / IRegular
4725
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/cron](../index.md) / IRegularData
4716
4726
 
4717
- # Interface: IRegular
4727
+ # Interface: IRegularData
4718
4728
 
4719
- Defined in: [lib/cron.ts:147](https://github.com/maiyunnet/kebab/blob/master/lib/cron.ts#L147)
4729
+ Defined in: [lib/cron.ts:156](https://github.com/maiyunnet/kebab/blob/master/lib/cron.ts#L156)
4720
4730
 
4721
4731
  定时任务
4722
4732
 
4723
- ## Extended by
4733
+ ## Extends
4724
4734
 
4725
- - [`IRegularData`](IRegularData.md)
4735
+ - [`IRegular`](IRegular.md)
4726
4736
 
4727
4737
  ## Properties
4728
4738
 
@@ -4748,6 +4758,30 @@ Defined in: [lib/cron.ts:153](https://github.com/maiyunnet/kebab/blob/master/lib
4748
4758
 
4749
4759
  `void` \| `Promise`\<`void`\>
4750
4760
 
4761
+ #### Inherited from
4762
+
4763
+ [`IRegular`](IRegular.md).[`callback`](IRegular.md#callback)
4764
+
4765
+ ***
4766
+
4767
+ ### count
4768
+
4769
+ > **count**: `number`
4770
+
4771
+ Defined in: [lib/cron.ts:160](https://github.com/maiyunnet/kebab/blob/master/lib/cron.ts#L160)
4772
+
4773
+ 总执行次数
4774
+
4775
+ ***
4776
+
4777
+ ### last
4778
+
4779
+ > **last**: `string`
4780
+
4781
+ Defined in: [lib/cron.ts:158](https://github.com/maiyunnet/kebab/blob/master/lib/cron.ts#L158)
4782
+
4783
+ 上次执行时间字符串,格式:YmdHi(系统时区)
4784
+
4751
4785
  ***
4752
4786
 
4753
4787
  ### name
@@ -4758,6 +4792,20 @@ Defined in: [lib/cron.ts:149](https://github.com/maiyunnet/kebab/blob/master/lib
4758
4792
 
4759
4793
  任务名称,只能小写字母、数字、短横线、下划线,长度 1-32
4760
4794
 
4795
+ #### Inherited from
4796
+
4797
+ [`IRegular`](IRegular.md).[`name`](IRegular.md#name)
4798
+
4799
+ ***
4800
+
4801
+ ### rcount
4802
+
4803
+ > **rcount**: `number`
4804
+
4805
+ Defined in: [lib/cron.ts:162](https://github.com/maiyunnet/kebab/blob/master/lib/cron.ts#L162)
4806
+
4807
+ 定时任务重启后的执行次数
4808
+
4761
4809
  ***
4762
4810
 
4763
4811
  ### rule
@@ -4768,24 +4816,28 @@ Defined in: [lib/cron.ts:151](https://github.com/maiyunnet/kebab/blob/master/lib
4768
4816
 
4769
4817
  规则,分、时、日、月、星期,与 linux 的 cron 相同(不支持秒)
4770
4818
 
4771
- lib/cron/interfaces/IRegularData.md
4819
+ #### Inherited from
4820
+
4821
+ [`IRegular`](IRegular.md).[`rule`](IRegular.md#rule)
4822
+
4823
+ lib/cron/interfaces/IRegular.md
4772
4824
  ---
4773
4825
 
4774
4826
  [**Documents for @maiyunnet/kebab**](../../../index.md)
4775
4827
 
4776
4828
  ***
4777
4829
 
4778
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/cron](../index.md) / IRegularData
4830
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/cron](../index.md) / IRegular
4779
4831
 
4780
- # Interface: IRegularData
4832
+ # Interface: IRegular
4781
4833
 
4782
- Defined in: [lib/cron.ts:156](https://github.com/maiyunnet/kebab/blob/master/lib/cron.ts#L156)
4834
+ Defined in: [lib/cron.ts:147](https://github.com/maiyunnet/kebab/blob/master/lib/cron.ts#L147)
4783
4835
 
4784
4836
  定时任务
4785
4837
 
4786
- ## Extends
4838
+ ## Extended by
4787
4839
 
4788
- - [`IRegular`](IRegular.md)
4840
+ - [`IRegularData`](IRegularData.md)
4789
4841
 
4790
4842
  ## Properties
4791
4843
 
@@ -4811,30 +4863,6 @@ Defined in: [lib/cron.ts:153](https://github.com/maiyunnet/kebab/blob/master/lib
4811
4863
 
4812
4864
  `void` \| `Promise`\<`void`\>
4813
4865
 
4814
- #### Inherited from
4815
-
4816
- [`IRegular`](IRegular.md).[`callback`](IRegular.md#callback)
4817
-
4818
- ***
4819
-
4820
- ### count
4821
-
4822
- > **count**: `number`
4823
-
4824
- Defined in: [lib/cron.ts:160](https://github.com/maiyunnet/kebab/blob/master/lib/cron.ts#L160)
4825
-
4826
- 总执行次数
4827
-
4828
- ***
4829
-
4830
- ### last
4831
-
4832
- > **last**: `string`
4833
-
4834
- Defined in: [lib/cron.ts:158](https://github.com/maiyunnet/kebab/blob/master/lib/cron.ts#L158)
4835
-
4836
- 上次执行时间字符串,格式:YmdHi(系统时区)
4837
-
4838
4866
  ***
4839
4867
 
4840
4868
  ### name
@@ -4845,20 +4873,6 @@ Defined in: [lib/cron.ts:149](https://github.com/maiyunnet/kebab/blob/master/lib
4845
4873
 
4846
4874
  任务名称,只能小写字母、数字、短横线、下划线,长度 1-32
4847
4875
 
4848
- #### Inherited from
4849
-
4850
- [`IRegular`](IRegular.md).[`name`](IRegular.md#name)
4851
-
4852
- ***
4853
-
4854
- ### rcount
4855
-
4856
- > **rcount**: `number`
4857
-
4858
- Defined in: [lib/cron.ts:162](https://github.com/maiyunnet/kebab/blob/master/lib/cron.ts#L162)
4859
-
4860
- 定时任务重启后的执行次数
4861
-
4862
4876
  ***
4863
4877
 
4864
4878
  ### rule
@@ -4869,10 +4883,6 @@ Defined in: [lib/cron.ts:151](https://github.com/maiyunnet/kebab/blob/master/lib
4869
4883
 
4870
4884
  规则,分、时、日、月、星期,与 linux 的 cron 相同(不支持秒)
4871
4885
 
4872
- #### Inherited from
4873
-
4874
- [`IRegular`](IRegular.md).[`rule`](IRegular.md#rule)
4875
-
4876
4886
  lib/crypto/functions/aesDecrypt.md
4877
4887
  ---
4878
4888
 
@@ -5480,24 +5490,24 @@ Defined in: [lib/crypto.ts:18](https://github.com/maiyunnet/kebab/blob/master/li
5480
5490
 
5481
5491
  `Promise`\<\{ `private`: `string` \| `Buffer`\<`ArrayBufferLike`\>; `public`: `string` \| `Buffer`\<`ArrayBufferLike`\>; \}\>
5482
5492
 
5483
- lib/crypto/functions/hashHmac.md
5493
+ lib/crypto/functions/hashHmacFile.md
5484
5494
  ---
5485
5495
 
5486
5496
  [**Documents for @maiyunnet/kebab**](../../../index.md)
5487
5497
 
5488
5498
  ***
5489
5499
 
5490
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/crypto](../index.md) / hashHmac
5500
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/crypto](../index.md) / hashHmacFile
5491
5501
 
5492
- # Function: hashHmac()
5502
+ # Function: hashHmacFile()
5493
5503
 
5494
5504
  ## Call Signature
5495
5505
 
5496
- > **hashHmac**(`algorithm`, `data`, `key?`, `format?`): `string`
5506
+ > **hashHmacFile**(`algorithm`, `path`, `key?`, `encoding?`): `Promise`\<`string` \| `false`\>
5497
5507
 
5498
- Defined in: [lib/crypto.ts:394](https://github.com/maiyunnet/kebab/blob/master/lib/crypto.ts#L394)
5508
+ Defined in: [lib/crypto.ts:413](https://github.com/maiyunnet/kebab/blob/master/lib/crypto.ts#L413)
5499
5509
 
5500
- hash 或 hmac 加密
5510
+ hash 或 hmac 加密文件
5501
5511
 
5502
5512
  ### Parameters
5503
5513
 
@@ -5505,13 +5515,13 @@ hash 或 hmac 加密
5505
5515
 
5506
5516
  `string`
5507
5517
 
5508
- 哈希方式
5518
+ 加密方式,如 md5、sha256、sm3 等
5509
5519
 
5510
- #### data
5520
+ #### path
5511
5521
 
5512
- `string` \| `Buffer`\<`ArrayBufferLike`\>
5522
+ `string`
5513
5523
 
5514
- 源数据
5524
+ 文件路径
5515
5525
 
5516
5526
  #### key?
5517
5527
 
@@ -5519,21 +5529,21 @@ hash 或 hmac 加密
5519
5529
 
5520
5530
  设置则采用 hmac 加密
5521
5531
 
5522
- #### format?
5532
+ #### encoding?
5523
5533
 
5524
- `"hex"` \| `"base64"`
5534
+ `"hex"` \| `"base64"` \| `"base64url"`
5525
5535
 
5526
5536
  ### Returns
5527
5537
 
5528
- `string`
5538
+ `Promise`\<`string` \| `false`\>
5529
5539
 
5530
5540
  ## Call Signature
5531
5541
 
5532
- > **hashHmac**(`algorithm`, `data`, `key`, `format`): `Buffer`
5542
+ > **hashHmacFile**(`algorithm`, `path`, `key`, `encoding`): `Promise`\<`false` \| `Buffer`\<`ArrayBufferLike`\>\>
5533
5543
 
5534
- Defined in: [lib/crypto.ts:395](https://github.com/maiyunnet/kebab/blob/master/lib/crypto.ts#L395)
5544
+ Defined in: [lib/crypto.ts:414](https://github.com/maiyunnet/kebab/blob/master/lib/crypto.ts#L414)
5535
5545
 
5536
- hash 或 hmac 加密
5546
+ hash 或 hmac 加密文件
5537
5547
 
5538
5548
  ### Parameters
5539
5549
 
@@ -5541,46 +5551,46 @@ hash 或 hmac 加密
5541
5551
 
5542
5552
  `string`
5543
5553
 
5544
- 哈希方式
5554
+ 加密方式,如 md5、sha256、sm3 等
5545
5555
 
5546
- #### data
5556
+ #### path
5547
5557
 
5548
- `string` \| `Buffer`\<`ArrayBufferLike`\>
5558
+ `string`
5549
5559
 
5550
- 源数据
5560
+ 文件路径
5551
5561
 
5552
5562
  #### key
5553
5563
 
5554
- `CipherKey` \| `undefined`
5564
+ `CipherKey`
5555
5565
 
5556
5566
  设置则采用 hmac 加密
5557
5567
 
5558
- #### format
5568
+ #### encoding
5559
5569
 
5560
5570
  `"buffer"`
5561
5571
 
5562
5572
  ### Returns
5563
5573
 
5564
- `Buffer`
5574
+ `Promise`\<`false` \| `Buffer`\<`ArrayBufferLike`\>\>
5565
5575
 
5566
- lib/crypto/functions/hashHmacFile.md
5576
+ lib/crypto/functions/hashHmac.md
5567
5577
  ---
5568
5578
 
5569
5579
  [**Documents for @maiyunnet/kebab**](../../../index.md)
5570
5580
 
5571
5581
  ***
5572
5582
 
5573
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/crypto](../index.md) / hashHmacFile
5583
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/crypto](../index.md) / hashHmac
5574
5584
 
5575
- # Function: hashHmacFile()
5585
+ # Function: hashHmac()
5576
5586
 
5577
5587
  ## Call Signature
5578
5588
 
5579
- > **hashHmacFile**(`algorithm`, `path`, `key?`, `encoding?`): `Promise`\<`string` \| `false`\>
5589
+ > **hashHmac**(`algorithm`, `data`, `key?`, `format?`): `string`
5580
5590
 
5581
- Defined in: [lib/crypto.ts:413](https://github.com/maiyunnet/kebab/blob/master/lib/crypto.ts#L413)
5591
+ Defined in: [lib/crypto.ts:394](https://github.com/maiyunnet/kebab/blob/master/lib/crypto.ts#L394)
5582
5592
 
5583
- hash 或 hmac 加密文件
5593
+ hash 或 hmac 加密
5584
5594
 
5585
5595
  ### Parameters
5586
5596
 
@@ -5588,13 +5598,13 @@ hash 或 hmac 加密文件
5588
5598
 
5589
5599
  `string`
5590
5600
 
5591
- 加密方式,如 md5、sha256、sm3 等
5601
+ 哈希方式
5592
5602
 
5593
- #### path
5603
+ #### data
5594
5604
 
5595
- `string`
5605
+ `string` \| `Buffer`\<`ArrayBufferLike`\>
5596
5606
 
5597
- 文件路径
5607
+ 源数据
5598
5608
 
5599
5609
  #### key?
5600
5610
 
@@ -5602,21 +5612,21 @@ hash 或 hmac 加密文件
5602
5612
 
5603
5613
  设置则采用 hmac 加密
5604
5614
 
5605
- #### encoding?
5615
+ #### format?
5606
5616
 
5607
- `"hex"` \| `"base64"` \| `"base64url"`
5617
+ `"hex"` \| `"base64"`
5608
5618
 
5609
5619
  ### Returns
5610
5620
 
5611
- `Promise`\<`string` \| `false`\>
5621
+ `string`
5612
5622
 
5613
5623
  ## Call Signature
5614
5624
 
5615
- > **hashHmacFile**(`algorithm`, `path`, `key`, `encoding`): `Promise`\<`false` \| `Buffer`\<`ArrayBufferLike`\>\>
5625
+ > **hashHmac**(`algorithm`, `data`, `key`, `format`): `Buffer`
5616
5626
 
5617
- Defined in: [lib/crypto.ts:414](https://github.com/maiyunnet/kebab/blob/master/lib/crypto.ts#L414)
5627
+ Defined in: [lib/crypto.ts:395](https://github.com/maiyunnet/kebab/blob/master/lib/crypto.ts#L395)
5618
5628
 
5619
- hash 或 hmac 加密文件
5629
+ hash 或 hmac 加密
5620
5630
 
5621
5631
  ### Parameters
5622
5632
 
@@ -5624,27 +5634,27 @@ hash 或 hmac 加密文件
5624
5634
 
5625
5635
  `string`
5626
5636
 
5627
- 加密方式,如 md5、sha256、sm3 等
5637
+ 哈希方式
5628
5638
 
5629
- #### path
5639
+ #### data
5630
5640
 
5631
- `string`
5641
+ `string` \| `Buffer`\<`ArrayBufferLike`\>
5632
5642
 
5633
- 文件路径
5643
+ 源数据
5634
5644
 
5635
5645
  #### key
5636
5646
 
5637
- `CipherKey`
5647
+ `CipherKey` \| `undefined`
5638
5648
 
5639
5649
  设置则采用 hmac 加密
5640
5650
 
5641
- #### encoding
5651
+ #### format
5642
5652
 
5643
5653
  `"buffer"`
5644
5654
 
5645
5655
  ### Returns
5646
5656
 
5647
- `Promise`\<`false` \| `Buffer`\<`ArrayBufferLike`\>\>
5657
+ `Buffer`
5648
5658
 
5649
5659
  lib/crypto/functions/privateDecrypt.md
5650
5660
  ---
@@ -8494,22 +8504,24 @@ Defined in: [lib/fs.ts:293](https://github.com/maiyunnet/kebab/blob/master/lib/f
8494
8504
 
8495
8505
  `Promise`\<`boolean`\>
8496
8506
 
8497
- lib/fs/functions/rmdir.md
8507
+ lib/fs/functions/rmdirDeep.md
8498
8508
  ---
8499
8509
 
8500
8510
  [**Documents for @maiyunnet/kebab**](../../../index.md)
8501
8511
 
8502
8512
  ***
8503
8513
 
8504
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / rmdir
8514
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / rmdirDeep
8505
8515
 
8506
- # Function: rmdir()
8516
+ # Function: rmdirDeep()
8507
8517
 
8508
- > **rmdir**(`path`): `Promise`\<`boolean`\>
8518
+ > **rmdirDeep**(`path`): `Promise`\<`boolean`\>
8509
8519
 
8510
- Defined in: [lib/fs.ts:228](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L228)
8520
+ Defined in: [lib/fs.ts:246](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L246)
8511
8521
 
8512
- 删除空目录
8522
+ Danger 危险:危险函数,尽量不要使用
8523
+ This is a danger function, please don't use it
8524
+ 删除一个非空目录
8513
8525
 
8514
8526
  ## Parameters
8515
8527
 
@@ -8517,30 +8529,26 @@ Defined in: [lib/fs.ts:228](https://github.com/maiyunnet/kebab/blob/master/lib/f
8517
8529
 
8518
8530
  `string`
8519
8531
 
8520
- 要删除的目录
8521
-
8522
8532
  ## Returns
8523
8533
 
8524
8534
  `Promise`\<`boolean`\>
8525
8535
 
8526
- lib/fs/functions/rmdirDeep.md
8536
+ lib/fs/functions/rmdir.md
8527
8537
  ---
8528
8538
 
8529
8539
  [**Documents for @maiyunnet/kebab**](../../../index.md)
8530
8540
 
8531
8541
  ***
8532
8542
 
8533
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / rmdirDeep
8543
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / rmdir
8534
8544
 
8535
- # Function: rmdirDeep()
8545
+ # Function: rmdir()
8536
8546
 
8537
- > **rmdirDeep**(`path`): `Promise`\<`boolean`\>
8547
+ > **rmdir**(`path`): `Promise`\<`boolean`\>
8538
8548
 
8539
- Defined in: [lib/fs.ts:246](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L246)
8549
+ Defined in: [lib/fs.ts:228](https://github.com/maiyunnet/kebab/blob/master/lib/fs.ts#L228)
8540
8550
 
8541
- Danger 危险:危险函数,尽量不要使用
8542
- This is a danger function, please don't use it
8543
- 删除一个非空目录
8551
+ 删除空目录
8544
8552
 
8545
8553
  ## Parameters
8546
8554
 
@@ -8548,6 +8556,8 @@ This is a danger function, please don't use it
8548
8556
 
8549
8557
  `string`
8550
8558
 
8559
+ 要删除的目录
8560
+
8551
8561
  ## Returns
8552
8562
 
8553
8563
  `Promise`\<`boolean`\>
@@ -10054,31 +10064,15 @@ lib/lan/functions/scan.md
10054
10064
 
10055
10065
  # Function: scan()
10056
10066
 
10057
- > **scan**(): `Promise`\<`object`[]\>
10058
-
10059
- Defined in: [lib/lan.ts:63](https://github.com/maiyunnet/kebab/blob/master/lib/lan.ts#L63)
10060
-
10061
- 扫描发生关联的局域网 IP
10062
-
10063
- ## Returns
10064
-
10065
- `Promise`\<`object`[]\>
10066
-
10067
- lib/lan/index.md
10068
- ---
10069
-
10070
- [**Documents for @maiyunnet/kebab**](../../index.md)
10071
-
10072
- ***
10067
+ > **scan**(): `Promise`\<`object`[]\>
10073
10068
 
10074
- [Documents for @maiyunnet/kebab](../../index.md) / lib/lan
10069
+ Defined in: [lib/lan.ts:63](https://github.com/maiyunnet/kebab/blob/master/lib/lan.ts#L63)
10075
10070
 
10076
- # lib/lan
10071
+ 扫描发生关联的局域网 IP
10077
10072
 
10078
- ## Functions
10073
+ ## Returns
10079
10074
 
10080
- - [card](functions/card.md)
10081
- - [scan](functions/scan.md)
10075
+ `Promise`\<`object`[]\>
10082
10076
 
10083
10077
  lib/lang/functions/getCodeByAccept.md
10084
10078
  ---
@@ -10179,6 +10173,22 @@ lib/lang/variables/names.md
10179
10173
 
10180
10174
  Defined in: [lib/lang.ts:7](https://github.com/maiyunnet/kebab/blob/master/lib/lang.ts#L7)
10181
10175
 
10176
+ lib/lan/index.md
10177
+ ---
10178
+
10179
+ [**Documents for @maiyunnet/kebab**](../../index.md)
10180
+
10181
+ ***
10182
+
10183
+ [Documents for @maiyunnet/kebab](../../index.md) / lib/lan
10184
+
10185
+ # lib/lan
10186
+
10187
+ ## Functions
10188
+
10189
+ - [card](functions/card.md)
10190
+ - [scan](functions/scan.md)
10191
+
10182
10192
  lib/net/formdata/classes/FormData.md
10183
10193
  ---
10184
10194
 
@@ -10603,41 +10613,6 @@ Defined in: [lib/net.ts:717](https://github.com/maiyunnet/kebab/blob/master/lib/
10603
10613
 
10604
10614
  `Record`\<`string`, `string` \| `string`[]\>
10605
10615
 
10606
- lib/net/functions/get.md
10607
- ---
10608
-
10609
- [**Documents for @maiyunnet/kebab**](../../../index.md)
10610
-
10611
- ***
10612
-
10613
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/net](../index.md) / get
10614
-
10615
- # Function: get()
10616
-
10617
- > **get**(`u`, `opt?`): `Promise`\<[`Response`](../response/classes/Response.md)\>
10618
-
10619
- Defined in: [lib/net.ts:69](https://github.com/maiyunnet/kebab/blob/master/lib/net.ts#L69)
10620
-
10621
- 发起一个 get 请求
10622
-
10623
- ## Parameters
10624
-
10625
- ### u
10626
-
10627
- `string`
10628
-
10629
- 请求的 URL
10630
-
10631
- ### opt?
10632
-
10633
- [`IRequestOptions`](../interfaces/IRequestOptions.md) = `{}`
10634
-
10635
- 参数
10636
-
10637
- ## Returns
10638
-
10639
- `Promise`\<[`Response`](../response/classes/Response.md)\>
10640
-
10641
10616
  lib/net/functions/getCa.md
10642
10617
  ---
10643
10618
 
@@ -10680,47 +10655,40 @@ Defined in: [lib/net.ts:701](https://github.com/maiyunnet/kebab/blob/master/lib/
10680
10655
 
10681
10656
  [`FormData`](../formdata/classes/FormData.md)
10682
10657
 
10683
- lib/net/functions/mproxy.md
10658
+ lib/net/functions/get.md
10684
10659
  ---
10685
10660
 
10686
10661
  [**Documents for @maiyunnet/kebab**](../../../index.md)
10687
10662
 
10688
10663
  ***
10689
10664
 
10690
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/net](../index.md) / mproxy
10665
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/net](../index.md) / get
10691
10666
 
10692
- # Function: mproxy()
10667
+ # Function: get()
10693
10668
 
10694
- > **mproxy**(`ctr`, `auth`, `opt?`): `Promise`\<`number`\>
10669
+ > **get**(`u`, `opt?`): `Promise`\<[`Response`](../response/classes/Response.md)\>
10695
10670
 
10696
- Defined in: [lib/net.ts:753](https://github.com/maiyunnet/kebab/blob/master/lib/net.ts#L753)
10671
+ Defined in: [lib/net.ts:69](https://github.com/maiyunnet/kebab/blob/master/lib/net.ts#L69)
10697
10672
 
10698
- 正向 mproxy 代理,注意提前处理不要自动处理 post 数据,读取 get 的 url 为实际请求地址
10699
- get: url, auth
10673
+ 发起一个 get 请求
10700
10674
 
10701
10675
  ## Parameters
10702
10676
 
10703
- ### ctr
10704
-
10705
- [`Ctr`](../../../sys/ctr/classes/Ctr.md)
10706
-
10707
- 当前控制器
10708
-
10709
- ### auth
10677
+ ### u
10710
10678
 
10711
10679
  `string`
10712
10680
 
10713
- 校验字符串,读取 get 的 auth 和本参数做比对
10681
+ 请求的 URL
10714
10682
 
10715
10683
  ### opt?
10716
10684
 
10717
- [`IMproxyOptions`](../interfaces/IMproxyOptions.md) = `{}`
10685
+ [`IRequestOptions`](../interfaces/IRequestOptions.md) = `{}`
10718
10686
 
10719
10687
  参数
10720
10688
 
10721
10689
  ## Returns
10722
10690
 
10723
- `Promise`\<`number`\>
10691
+ `Promise`\<[`Response`](../response/classes/Response.md)\>
10724
10692
 
10725
10693
  lib/net/functions/mproxyData.md
10726
10694
  ---
@@ -10751,49 +10719,64 @@ Defined in: [lib/net.ts:805](https://github.com/maiyunnet/kebab/blob/master/lib/
10751
10719
 
10752
10720
  `any`
10753
10721
 
10754
- lib/net/functions/open.md
10722
+ lib/net/functions/mproxy.md
10755
10723
  ---
10756
10724
 
10757
10725
  [**Documents for @maiyunnet/kebab**](../../../index.md)
10758
10726
 
10759
10727
  ***
10760
10728
 
10761
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/net](../index.md) / open
10729
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/net](../index.md) / mproxy
10762
10730
 
10763
- # Function: open()
10731
+ # Function: mproxy()
10764
10732
 
10765
- > **open**(`u`): [`Request`](../request/classes/Request.md)
10733
+ > **mproxy**(`ctr`, `auth`, `opt?`): `Promise`\<`number`\>
10766
10734
 
10767
- Defined in: [lib/net.ts:60](https://github.com/maiyunnet/kebab/blob/master/lib/net.ts#L60)
10735
+ Defined in: [lib/net.ts:753](https://github.com/maiyunnet/kebab/blob/master/lib/net.ts#L753)
10768
10736
 
10769
- 创建一个请求对象
10737
+ 正向 mproxy 代理,注意提前处理不要自动处理 post 数据,读取 get 的 url 为实际请求地址
10738
+ get: url, auth
10770
10739
 
10771
10740
  ## Parameters
10772
10741
 
10773
- ### u
10742
+ ### ctr
10743
+
10744
+ [`Ctr`](../../../sys/ctr/classes/Ctr.md)
10745
+
10746
+ 当前控制器
10747
+
10748
+ ### auth
10774
10749
 
10775
10750
  `string`
10776
10751
 
10752
+ 校验字符串,读取 get 的 auth 和本参数做比对
10753
+
10754
+ ### opt?
10755
+
10756
+ [`IMproxyOptions`](../interfaces/IMproxyOptions.md) = `{}`
10757
+
10758
+ 参数
10759
+
10777
10760
  ## Returns
10778
10761
 
10779
- [`Request`](../request/classes/Request.md)
10762
+ `Promise`\<`number`\>
10780
10763
 
10781
- lib/net/functions/post.md
10764
+ lib/net/functions/open.md
10782
10765
  ---
10783
10766
 
10784
10767
  [**Documents for @maiyunnet/kebab**](../../../index.md)
10785
10768
 
10786
10769
  ***
10787
10770
 
10788
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/net](../index.md) / post
10771
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/net](../index.md) / open
10789
10772
 
10790
- # Function: post()
10773
+ # Function: open()
10791
10774
 
10792
- > **post**(`u`, `data`, `opt?`): `Promise`\<[`Response`](../response/classes/Response.md)\>
10775
+ > **open**(`u`): [`Request`](../request/classes/Request.md)
10793
10776
 
10794
- Defined in: [lib/net.ts:79](https://github.com/maiyunnet/kebab/blob/master/lib/net.ts#L79)
10777
+ Defined in: [lib/net.ts:60](https://github.com/maiyunnet/kebab/blob/master/lib/net.ts#L60)
10795
10778
 
10796
- 发起一个 post 请求
10779
+ 创建一个请求对象
10797
10780
 
10798
10781
  ## Parameters
10799
10782
 
@@ -10801,23 +10784,9 @@ Defined in: [lib/net.ts:79](https://github.com/maiyunnet/kebab/blob/master/lib/n
10801
10784
 
10802
10785
  `string`
10803
10786
 
10804
- 请求的 URL
10805
-
10806
- ### data
10807
-
10808
- `string` \| `Record`\<`string`, `any`\> \| `Buffer`\<`ArrayBufferLike`\> \| `Readable`
10809
-
10810
- 要发送的数据
10811
-
10812
- ### opt?
10813
-
10814
- [`IRequestOptions`](../interfaces/IRequestOptions.md) = `{}`
10815
-
10816
- 参数
10817
-
10818
10787
  ## Returns
10819
10788
 
10820
- `Promise`\<[`Response`](../response/classes/Response.md)\>
10789
+ [`Request`](../request/classes/Request.md)
10821
10790
 
10822
10791
  lib/net/functions/postJson.md
10823
10792
  ---
@@ -10903,6 +10872,47 @@ Defined in: [lib/net.ts:111](https://github.com/maiyunnet/kebab/blob/master/lib/
10903
10872
 
10904
10873
  JSON 数据,失败时返回 null
10905
10874
 
10875
+ lib/net/functions/post.md
10876
+ ---
10877
+
10878
+ [**Documents for @maiyunnet/kebab**](../../../index.md)
10879
+
10880
+ ***
10881
+
10882
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/net](../index.md) / post
10883
+
10884
+ # Function: post()
10885
+
10886
+ > **post**(`u`, `data`, `opt?`): `Promise`\<[`Response`](../response/classes/Response.md)\>
10887
+
10888
+ Defined in: [lib/net.ts:79](https://github.com/maiyunnet/kebab/blob/master/lib/net.ts#L79)
10889
+
10890
+ 发起一个 post 请求
10891
+
10892
+ ## Parameters
10893
+
10894
+ ### u
10895
+
10896
+ `string`
10897
+
10898
+ 请求的 URL
10899
+
10900
+ ### data
10901
+
10902
+ `string` \| `Record`\<`string`, `any`\> \| `Buffer`\<`ArrayBufferLike`\> \| `Readable`
10903
+
10904
+ 要发送的数据
10905
+
10906
+ ### opt?
10907
+
10908
+ [`IRequestOptions`](../interfaces/IRequestOptions.md) = `{}`
10909
+
10910
+ 参数
10911
+
10912
+ ## Returns
10913
+
10914
+ `Promise`\<[`Response`](../response/classes/Response.md)\>
10915
+
10906
10916
  lib/net/functions/request.md
10907
10917
  ---
10908
10918
 
@@ -12025,22 +12035,22 @@ http headers
12025
12035
 
12026
12036
  > `optional` **http-version?**: `"1.1"` \| `"2.0"`
12027
12037
 
12028
- lib/ratelimit/functions/check.md
12038
+ lib/ratelimit/functions/checkFixed.md
12029
12039
  ---
12030
12040
 
12031
12041
  [**Documents for @maiyunnet/kebab**](../../../index.md)
12032
12042
 
12033
12043
  ***
12034
12044
 
12035
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/ratelimit](../index.md) / check
12045
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/ratelimit](../index.md) / checkFixed
12036
12046
 
12037
- # Function: check()
12047
+ # Function: checkFixed()
12038
12048
 
12039
- > **check**(`kv`, `key`, `opt?`): `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
12049
+ > **checkFixed**(`kv`, `key`, `opt?`): `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
12040
12050
 
12041
- Defined in: [lib/ratelimit.ts:18](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L18)
12051
+ Defined in: [lib/ratelimit.ts:77](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L77)
12042
12052
 
12043
- 检查指定 key 是否超速,使用多段近似滑动窗口算法
12053
+ 简易固定窗口限速检查(性能更高,精度较低)
12044
12054
 
12045
12055
  ## Parameters
12046
12056
 
@@ -12054,7 +12064,7 @@ KV 实例
12054
12064
 
12055
12065
  `string`
12056
12066
 
12057
- 限速标识(如 IP、用户 UID 等)
12067
+ 限速标识
12058
12068
 
12059
12069
  ### opt?
12060
12070
 
@@ -12082,24 +12092,22 @@ key 前缀,默认 rl:
12082
12092
 
12083
12093
  `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
12084
12094
 
12085
- 返回结果对象
12086
-
12087
- lib/ratelimit/functions/checkFixed.md
12095
+ lib/ratelimit/functions/check.md
12088
12096
  ---
12089
12097
 
12090
12098
  [**Documents for @maiyunnet/kebab**](../../../index.md)
12091
12099
 
12092
12100
  ***
12093
12101
 
12094
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/ratelimit](../index.md) / checkFixed
12102
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/ratelimit](../index.md) / check
12095
12103
 
12096
- # Function: checkFixed()
12104
+ # Function: check()
12097
12105
 
12098
- > **checkFixed**(`kv`, `key`, `opt?`): `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
12106
+ > **check**(`kv`, `key`, `opt?`): `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
12099
12107
 
12100
- Defined in: [lib/ratelimit.ts:77](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L77)
12108
+ Defined in: [lib/ratelimit.ts:18](https://github.com/maiyunnet/kebab/blob/master/lib/ratelimit.ts#L18)
12101
12109
 
12102
- 简易固定窗口限速检查(性能更高,精度较低)
12110
+ 检查指定 key 是否超速,使用多段近似滑动窗口算法
12103
12111
 
12104
12112
  ## Parameters
12105
12113
 
@@ -12113,7 +12121,7 @@ KV 实例
12113
12121
 
12114
12122
  `string`
12115
12123
 
12116
- 限速标识
12124
+ 限速标识(如 IP、用户 UID 等)
12117
12125
 
12118
12126
  ### opt?
12119
12127
 
@@ -12141,6 +12149,8 @@ key 前缀,默认 rl:
12141
12149
 
12142
12150
  `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
12143
12151
 
12152
+ 返回结果对象
12153
+
12144
12154
  lib/ratelimit/index.md
12145
12155
  ---
12146
12156
 
@@ -19821,28 +19831,28 @@ lib/zlib/index.md
19821
19831
  - [gzip](functions/gzip.md)
19822
19832
  - [inflate](functions/inflate.md)
19823
19833
 
19824
- lib/zlib/interfaces/ICompress.md
19834
+ lib/zlib/interfaces/ICompressBuffer.md
19825
19835
  ---
19826
19836
 
19827
19837
  [**Documents for @maiyunnet/kebab**](../../../index.md)
19828
19838
 
19829
19839
  ***
19830
19840
 
19831
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/zlib](../index.md) / ICompress
19841
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/zlib](../index.md) / ICompressBuffer
19832
19842
 
19833
- # Interface: ICompress
19843
+ # Interface: ICompressBuffer
19834
19844
 
19835
- Defined in: [lib/zlib.ts:9](https://github.com/maiyunnet/kebab/blob/master/lib/zlib.ts#L9)
19845
+ Defined in: [lib/zlib.ts:16](https://github.com/maiyunnet/kebab/blob/master/lib/zlib.ts#L16)
19836
19846
 
19837
- 某个压缩对象
19847
+ 某个压缩后的变量
19838
19848
 
19839
19849
  ## Properties
19840
19850
 
19841
- ### compress
19851
+ ### buffer
19842
19852
 
19843
- > `readonly` **compress**: `BrotliCompress` \| `BrotliDecompress` \| `Gzip` \| `Gunzip` \| `Deflate` \| `Inflate`
19853
+ > `readonly` **buffer**: `Buffer`
19844
19854
 
19845
- Defined in: [lib/zlib.ts:11](https://github.com/maiyunnet/kebab/blob/master/lib/zlib.ts#L11)
19855
+ Defined in: [lib/zlib.ts:18](https://github.com/maiyunnet/kebab/blob/master/lib/zlib.ts#L18)
19846
19856
 
19847
19857
  ***
19848
19858
 
@@ -19850,30 +19860,30 @@ Defined in: [lib/zlib.ts:11](https://github.com/maiyunnet/kebab/blob/master/lib/
19850
19860
 
19851
19861
  > `readonly` **type**: `string`
19852
19862
 
19853
- Defined in: [lib/zlib.ts:10](https://github.com/maiyunnet/kebab/blob/master/lib/zlib.ts#L10)
19863
+ Defined in: [lib/zlib.ts:17](https://github.com/maiyunnet/kebab/blob/master/lib/zlib.ts#L17)
19854
19864
 
19855
- lib/zlib/interfaces/ICompressBuffer.md
19865
+ lib/zlib/interfaces/ICompress.md
19856
19866
  ---
19857
19867
 
19858
19868
  [**Documents for @maiyunnet/kebab**](../../../index.md)
19859
19869
 
19860
19870
  ***
19861
19871
 
19862
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/zlib](../index.md) / ICompressBuffer
19872
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/zlib](../index.md) / ICompress
19863
19873
 
19864
- # Interface: ICompressBuffer
19874
+ # Interface: ICompress
19865
19875
 
19866
- Defined in: [lib/zlib.ts:16](https://github.com/maiyunnet/kebab/blob/master/lib/zlib.ts#L16)
19876
+ Defined in: [lib/zlib.ts:9](https://github.com/maiyunnet/kebab/blob/master/lib/zlib.ts#L9)
19867
19877
 
19868
- 某个压缩后的变量
19878
+ 某个压缩对象
19869
19879
 
19870
19880
  ## Properties
19871
19881
 
19872
- ### buffer
19882
+ ### compress
19873
19883
 
19874
- > `readonly` **buffer**: `Buffer`
19884
+ > `readonly` **compress**: `BrotliCompress` \| `BrotliDecompress` \| `Gzip` \| `Gunzip` \| `Deflate` \| `Inflate`
19875
19885
 
19876
- Defined in: [lib/zlib.ts:18](https://github.com/maiyunnet/kebab/blob/master/lib/zlib.ts#L18)
19886
+ Defined in: [lib/zlib.ts:11](https://github.com/maiyunnet/kebab/blob/master/lib/zlib.ts#L11)
19877
19887
 
19878
19888
  ***
19879
19889
 
@@ -19881,7 +19891,7 @@ Defined in: [lib/zlib.ts:18](https://github.com/maiyunnet/kebab/blob/master/lib/
19881
19891
 
19882
19892
  > `readonly` **type**: `string`
19883
19893
 
19884
- Defined in: [lib/zlib.ts:17](https://github.com/maiyunnet/kebab/blob/master/lib/zlib.ts#L17)
19894
+ Defined in: [lib/zlib.ts:10](https://github.com/maiyunnet/kebab/blob/master/lib/zlib.ts#L10)
19885
19895
 
19886
19896
  main/index.md
19887
19897
  ---
@@ -20241,7 +20251,7 @@ Defined in: [sys/ctr.ts:173](https://github.com/maiyunnet/kebab/blob/master/sys/
20241
20251
 
20242
20252
  > `protected` **\_checkInput**(`input`, `rule`, `rtn`): `boolean`
20243
20253
 
20244
- Defined in: [sys/ctr.ts:512](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L512)
20254
+ Defined in: [sys/ctr.ts:568](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L568)
20245
20255
 
20246
20256
  检测提交的数据类型
20247
20257
 
@@ -20275,7 +20285,7 @@ Defined in: [sys/ctr.ts:512](https://github.com/maiyunnet/kebab/blob/master/sys/
20275
20285
 
20276
20286
  > `protected` **\_checkXInput**(`input`, `rule`, `rtn`): `boolean`
20277
20287
 
20278
- Defined in: [sys/ctr.ts:690](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L690)
20288
+ Defined in: [sys/ctr.ts:746](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L746)
20279
20289
 
20280
20290
  检测提交的数据类型(会检测 XSRF)
20281
20291
 
@@ -20309,7 +20319,7 @@ Defined in: [sys/ctr.ts:690](https://github.com/maiyunnet/kebab/blob/master/sys/
20309
20319
 
20310
20320
  > `protected` **\_cross**(`opt?`): `boolean`
20311
20321
 
20312
- Defined in: [sys/ctr.ts:904](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L904)
20322
+ Defined in: [sys/ctr.ts:960](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L960)
20313
20323
 
20314
20324
  开启跨域请求
20315
20325
 
@@ -20354,7 +20364,7 @@ Defined in: [sys/ctr.ts:904](https://github.com/maiyunnet/kebab/blob/master/sys/
20354
20364
 
20355
20365
  > `protected` **\_device**(): `"unknown"` \| `"android"` \| `"linux"` \| `"windows"` \| `"macintosh"` \| `"ipad"`
20356
20366
 
20357
- Defined in: [sys/ctr.ts:732](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L732)
20367
+ Defined in: [sys/ctr.ts:788](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L788)
20358
20368
 
20359
20369
  根据用户 ua 获取当前用户的设备类型
20360
20370
 
@@ -20368,7 +20378,7 @@ Defined in: [sys/ctr.ts:732](https://github.com/maiyunnet/kebab/blob/master/sys/
20368
20378
 
20369
20379
  > `protected` **\_enabledXsrf**(`opt?`): `void`
20370
20380
 
20371
- Defined in: [sys/ctr.ts:701](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L701)
20381
+ Defined in: [sys/ctr.ts:757](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L757)
20372
20382
 
20373
20383
  当前页面开启 XSRF 支持(主要检测 cookie 是否存在)
20374
20384
  如果当前页面有 CDN,请不要使用
@@ -20391,7 +20401,7 @@ Defined in: [sys/ctr.ts:701](https://github.com/maiyunnet/kebab/blob/master/sys/
20391
20401
 
20392
20402
  > `protected` **\_end**(): `void`
20393
20403
 
20394
- Defined in: [sys/ctr.ts:1012](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1012)
20404
+ Defined in: [sys/ctr.ts:1068](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1068)
20395
20405
 
20396
20406
  主动关闭当前 socket 连接
20397
20407
 
@@ -20405,7 +20415,7 @@ Defined in: [sys/ctr.ts:1012](https://github.com/maiyunnet/kebab/blob/master/sys
20405
20415
 
20406
20416
  > `protected` **\_getBasicAuth**(`user`, `pwd`): `string`
20407
20417
 
20408
- Defined in: [sys/ctr.ts:725](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L725)
20418
+ Defined in: [sys/ctr.ts:781](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L781)
20409
20419
 
20410
20420
  获取 Auth 字符串,用于客户端提交
20411
20421
 
@@ -20433,7 +20443,7 @@ Defined in: [sys/ctr.ts:725](https://github.com/maiyunnet/kebab/blob/master/sys/
20433
20443
 
20434
20444
  > `protected` **\_getLocale**(): `string`
20435
20445
 
20436
- Defined in: [sys/ctr.ts:895](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L895)
20446
+ Defined in: [sys/ctr.ts:951](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L951)
20437
20447
 
20438
20448
  获取当前语言名
20439
20449
 
@@ -20447,7 +20457,7 @@ Defined in: [sys/ctr.ts:895](https://github.com/maiyunnet/kebab/blob/master/sys/
20447
20457
 
20448
20458
  > `protected` **\_getLocaleJsonString**(): `string`
20449
20459
 
20450
- Defined in: [sys/ctr.ts:883](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L883)
20460
+ Defined in: [sys/ctr.ts:939](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L939)
20451
20461
 
20452
20462
  根据当前后台语言包设置情况获取 JSON 字符串传输到前台
20453
20463
 
@@ -20499,7 +20509,7 @@ Defined in: [sys/ctr.ts:315](https://github.com/maiyunnet/kebab/blob/master/sys/
20499
20509
 
20500
20510
  > `protected` **\_handleFormData**(`events?`, `limits?`): `Promise`\<`boolean`\>
20501
20511
 
20502
- Defined in: [sys/ctr.ts:1021](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1021)
20512
+ Defined in: [sys/ctr.ts:1077](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1077)
20503
20513
 
20504
20514
  获取 formdata 的信息
20505
20515
 
@@ -20547,7 +20557,7 @@ Defined in: [sys/ctr.ts:1021](https://github.com/maiyunnet/kebab/blob/master/sys
20547
20557
 
20548
20558
  > **\_l**(`key`, `data?`): `string`
20549
20559
 
20550
- Defined in: [sys/ctr.ts:947](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L947)
20560
+ Defined in: [sys/ctr.ts:1003](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1003)
20551
20561
 
20552
20562
  获取语言包值
20553
20563
 
@@ -20573,7 +20583,7 @@ Defined in: [sys/ctr.ts:947](https://github.com/maiyunnet/kebab/blob/master/sys/
20573
20583
 
20574
20584
  > `protected` **\_loadData**(`path`): `Promise`\<`Record`\<`string`, `string`\> \| `null`\>
20575
20585
 
20576
- Defined in: [sys/ctr.ts:786](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L786)
20586
+ Defined in: [sys/ctr.ts:842](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L842)
20577
20587
 
20578
20588
  获取 data 数据
20579
20589
 
@@ -20595,7 +20605,7 @@ Defined in: [sys/ctr.ts:786](https://github.com/maiyunnet/kebab/blob/master/sys/
20595
20605
 
20596
20606
  > `protected` **\_loadLocale**(`loc`, `pkg?`): `Promise`\<`boolean`\>
20597
20607
 
20598
- Defined in: [sys/ctr.ts:834](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L834)
20608
+ Defined in: [sys/ctr.ts:890](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L890)
20599
20609
 
20600
20610
  设定语言并加载语言包
20601
20611
 
@@ -20716,7 +20726,7 @@ Defined in: [sys/ctr.ts:332](https://github.com/maiyunnet/kebab/blob/master/sys/
20716
20726
 
20717
20727
  > `protected` **\_location**(`location`): `false`
20718
20728
 
20719
- Defined in: [sys/ctr.ts:804](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L804)
20729
+ Defined in: [sys/ctr.ts:860](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L860)
20720
20730
 
20721
20731
  跳转(302临时跳转),支持相对本项目根路径的路径或绝对路径
20722
20732
 
@@ -20738,7 +20748,7 @@ Defined in: [sys/ctr.ts:804](https://github.com/maiyunnet/kebab/blob/master/sys/
20738
20748
 
20739
20749
  > `protected` **\_ping**(`data?`): `boolean`
20740
20750
 
20741
- Defined in: [sys/ctr.ts:997](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L997)
20751
+ Defined in: [sys/ctr.ts:1053](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1053)
20742
20752
 
20743
20753
  发送 socket ping
20744
20754
 
@@ -20760,7 +20770,7 @@ Defined in: [sys/ctr.ts:997](https://github.com/maiyunnet/kebab/blob/master/sys/
20760
20770
 
20761
20771
  > `protected` **\_pong**(`data?`): `boolean`
20762
20772
 
20763
- Defined in: [sys/ctr.ts:1005](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1005)
20773
+ Defined in: [sys/ctr.ts:1061](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1061)
20764
20774
 
20765
20775
  发送 socket pong
20766
20776
 
@@ -20782,7 +20792,7 @@ Defined in: [sys/ctr.ts:1005](https://github.com/maiyunnet/kebab/blob/master/sys
20782
20792
 
20783
20793
  > `protected` **\_startSession**(`link`, `auth?`, `opt?`): `Promise`\<`boolean`\>
20784
20794
 
20785
- Defined in: [sys/ctr.ts:818](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L818)
20795
+ Defined in: [sys/ctr.ts:874](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L874)
20786
20796
 
20787
20797
  开启 Session
20788
20798
 
@@ -20816,7 +20826,7 @@ Kv 或 Db 实例
20816
20826
 
20817
20827
  > `protected` **\_writeBinary**(`data`): `boolean`
20818
20828
 
20819
- Defined in: [sys/ctr.ts:989](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L989)
20829
+ Defined in: [sys/ctr.ts:1045](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1045)
20820
20830
 
20821
20831
  发送 socket 二进制
20822
20832
 
@@ -20838,7 +20848,7 @@ Defined in: [sys/ctr.ts:989](https://github.com/maiyunnet/kebab/blob/master/sys/
20838
20848
 
20839
20849
  > `protected` **\_writeResult**(`data`): `boolean`
20840
20850
 
20841
- Defined in: [sys/ctr.ts:981](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L981)
20851
+ Defined in: [sys/ctr.ts:1037](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1037)
20842
20852
 
20843
20853
  发送结果对象文本
20844
20854
 
@@ -20860,7 +20870,7 @@ Defined in: [sys/ctr.ts:981](https://github.com/maiyunnet/kebab/blob/master/sys/
20860
20870
 
20861
20871
  > `protected` **\_writeText**(`data`): `boolean`
20862
20872
 
20863
- Defined in: [sys/ctr.ts:973](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L973)
20873
+ Defined in: [sys/ctr.ts:1029](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1029)
20864
20874
 
20865
20875
  发送 socket 文本
20866
20876
 
@@ -20882,7 +20892,7 @@ Defined in: [sys/ctr.ts:973](https://github.com/maiyunnet/kebab/blob/master/sys/
20882
20892
 
20883
20893
  > **getAuthorization**(): `false` \| \{ `pwd`: `string`; `user`: `string`; \}
20884
20894
 
20885
- Defined in: [sys/ctr.ts:753](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L753)
20895
+ Defined in: [sys/ctr.ts:809](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L809)
20886
20896
 
20887
20897
  通过 header 或 _auth 获取 Basic Auth 鉴权信息
20888
20898