@maiyunnet/kebab 9.0.2 → 9.1.1

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 +616 -616
  5. package/index.d.ts +1 -1
  6. package/index.js +1 -1
  7. package/lib/ai.d.ts +0 -0
  8. package/lib/ai.js +0 -0
  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 +6 -1
  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 +69 -42
  89. package/sys/ctr.d.ts +16 -4
  90. package/sys/ctr.js +108 -45
  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 +31 -2
  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 +12 -3
  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
 
@@ -652,105 +430,274 @@ Defined in: [index.ts:162](https://github.com/maiyunnet/kebab/blob/master/index.
652
430
 
653
431
  ***
654
432
 
655
- ### skey
433
+ ### skey
434
+
435
+ > **skey**: `string`
436
+
437
+ Defined in: [index.ts:163](https://github.com/maiyunnet/kebab/blob/master/index.ts#L163)
438
+
439
+ index/interfaces/IConfigKv.md
440
+ ---
441
+
442
+ [**Documents for @maiyunnet/kebab**](../../index.md)
443
+
444
+ ***
445
+
446
+ [Documents for @maiyunnet/kebab](../../index.md) / [index](../index.md) / IConfigKv
447
+
448
+ # Interface: IConfigKv
449
+
450
+ Defined in: [index.ts:167](https://github.com/maiyunnet/kebab/blob/master/index.ts#L167)
451
+
452
+ kv
453
+
454
+ ## Properties
455
+
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
656
601
 
657
- > **skey**: `string`
602
+ > **lang**: [`IConfigLang`](IConfigLang.md)
658
603
 
659
- Defined in: [index.ts:163](https://github.com/maiyunnet/kebab/blob/master/index.ts#L163)
604
+ Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.ts#L80)
660
605
 
661
- index/interfaces/IConfigKv.md
662
- ---
606
+ ***
663
607
 
664
- [**Documents for @maiyunnet/kebab**](../../index.md)
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)
665
613
 
666
614
  ***
667
615
 
668
- [Documents for @maiyunnet/kebab](../../index.md) / [index](../index.md) / IConfigKv
616
+ ### s3
669
617
 
670
- # Interface: IConfigKv
618
+ > **s3**: `Record`\<`string`, [`IConfigS3`](IConfigS3.md)\>
671
619
 
672
- Defined in: [index.ts:167](https://github.com/maiyunnet/kebab/blob/master/index.ts#L167)
620
+ Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.ts#L81)
673
621
 
674
- kv
622
+ ***
675
623
 
676
- ## Properties
624
+ ### session
677
625
 
678
- ### host
626
+ > **session**: `object`
679
627
 
680
- > **host**: `string`
628
+ Defined in: [index.ts:73](https://github.com/maiyunnet/kebab/blob/master/index.ts#L73)
681
629
 
682
- Defined in: [index.ts:168](https://github.com/maiyunnet/kebab/blob/master/index.ts#L168)
630
+ #### name
683
631
 
684
- ***
632
+ > **name**: `string`
685
633
 
686
- ### index
634
+ #### ssl
687
635
 
688
- > **index**: `number`
636
+ > **ssl**: `boolean`
689
637
 
690
- Defined in: [index.ts:170](https://github.com/maiyunnet/kebab/blob/master/index.ts#L170)
638
+ #### ttl
639
+
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.2"` = `'9.0.2'`
1358
+ > `const` **VER**: `"9.1.1"` = `'9.1.1'`
1359
1359
 
1360
1360
  Defined in: [index.ts:10](https://github.com/maiyunnet/kebab/blob/master/index.ts#L10)
1361
1361
 
@@ -1580,7 +1580,7 @@ Defined in: [lib/ai.ts:197](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
1585
  Defined in: [lib/ai.ts:546](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L546)
1586
1586
 
@@ -1600,13 +1600,13 @@ Defined in: [lib/ai.ts:546](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
1611
  Defined in: [lib/ai.ts:378](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L378)
1612
1612
 
@@ -1686,7 +1686,7 @@ Defined in: [lib/ai.ts:378](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
  ---
@@ -4044,41 +4044,6 @@ zip 文件
4044
4044
 
4045
4045
  `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
4046
4046
 
4047
- lib/core/functions/write.md
4048
- ---
4049
-
4050
- [**Documents for @maiyunnet/kebab**](../../../index.md)
4051
-
4052
- ***
4053
-
4054
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/core](../index.md) / write
4055
-
4056
- # Function: write()
4057
-
4058
- > **write**(`res`, `data`): `void`
4059
-
4060
- Defined in: [lib/core.ts:1082](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1082)
4061
-
4062
- 向 res 发送数据
4063
-
4064
- ## Parameters
4065
-
4066
- ### res
4067
-
4068
- `Socket` \| `Http2ServerResponse`\<`Http2ServerRequest`\> \| `ServerResponse`\<`IncomingMessage`\>
4069
-
4070
- 响应对象
4071
-
4072
- ### data
4073
-
4074
- `string` \| `Buffer`\<`ArrayBufferLike`\>
4075
-
4076
- 数据
4077
-
4078
- ## Returns
4079
-
4080
- `void`
4081
-
4082
4047
  lib/core/functions/writeEventStreamHead.md
4083
4048
  ---
4084
4049
 
@@ -4145,6 +4110,41 @@ Defined in: [lib/core.ts:1059](https://github.com/maiyunnet/kebab/blob/master/li
4145
4110
 
4146
4111
  `void`
4147
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
+
4148
4148
  lib/core/index.md
4149
4149
  ---
4150
4150
 
@@ -4377,23 +4377,6 @@ Defined in: [lib/core.ts:593](https://github.com/maiyunnet/kebab/blob/master/lib
4377
4377
 
4378
4378
  PM2 操作类型
4379
4379
 
4380
- lib/core/variables/global.md
4381
- ---
4382
-
4383
- [**Documents for @maiyunnet/kebab**](../../../index.md)
4384
-
4385
- ***
4386
-
4387
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/core](../index.md) / global
4388
-
4389
- # Variable: global
4390
-
4391
- > `const` **global**: `Record`\<`string`, `any`\> = `{}`
4392
-
4393
- Defined in: [lib/core.ts:676](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L676)
4394
-
4395
- 跨进程全局变量
4396
-
4397
4380
  lib/core/variables/globalConfig.md
4398
4381
  ---
4399
4382
 
@@ -4443,13 +4426,30 @@ Defined in: [lib/core.ts:24](https://github.com/maiyunnet/kebab/blob/master/lib/
4443
4426
 
4444
4427
  > **max**: `number`
4445
4428
 
4446
- ### 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
4447
4447
 
4448
- > **rpcPort**: `number`
4448
+ > `const` **global**: `Record`\<`string`, `any`\> = `{}`
4449
4449
 
4450
- ### rpcSecret
4450
+ Defined in: [lib/core.ts:676](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L676)
4451
4451
 
4452
- > **rpcSecret**: `string`
4452
+ 跨进程全局变量
4453
4453
 
4454
4454
  lib/core/variables/RANDOM_L.md
4455
4455
  ---
@@ -4715,24 +4715,24 @@ lib/cron/index.md
4715
4715
  - [getRegulars](functions/getRegulars.md)
4716
4716
  - [regular](functions/regular.md)
4717
4717
 
4718
- lib/cron/interfaces/IRegular.md
4718
+ lib/cron/interfaces/IRegularData.md
4719
4719
  ---
4720
4720
 
4721
4721
  [**Documents for @maiyunnet/kebab**](../../../index.md)
4722
4722
 
4723
4723
  ***
4724
4724
 
4725
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/cron](../index.md) / IRegular
4725
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/cron](../index.md) / IRegularData
4726
4726
 
4727
- # Interface: IRegular
4727
+ # Interface: IRegularData
4728
4728
 
4729
- 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)
4730
4730
 
4731
4731
  定时任务
4732
4732
 
4733
- ## Extended by
4733
+ ## Extends
4734
4734
 
4735
- - [`IRegularData`](IRegularData.md)
4735
+ - [`IRegular`](IRegular.md)
4736
4736
 
4737
4737
  ## Properties
4738
4738
 
@@ -4758,6 +4758,30 @@ Defined in: [lib/cron.ts:153](https://github.com/maiyunnet/kebab/blob/master/lib
4758
4758
 
4759
4759
  `void` \| `Promise`\<`void`\>
4760
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
+
4761
4785
  ***
4762
4786
 
4763
4787
  ### name
@@ -4768,6 +4792,20 @@ Defined in: [lib/cron.ts:149](https://github.com/maiyunnet/kebab/blob/master/lib
4768
4792
 
4769
4793
  任务名称,只能小写字母、数字、短横线、下划线,长度 1-32
4770
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
+
4771
4809
  ***
4772
4810
 
4773
4811
  ### rule
@@ -4778,24 +4816,28 @@ Defined in: [lib/cron.ts:151](https://github.com/maiyunnet/kebab/blob/master/lib
4778
4816
 
4779
4817
  规则,分、时、日、月、星期,与 linux 的 cron 相同(不支持秒)
4780
4818
 
4781
- lib/cron/interfaces/IRegularData.md
4819
+ #### Inherited from
4820
+
4821
+ [`IRegular`](IRegular.md).[`rule`](IRegular.md#rule)
4822
+
4823
+ lib/cron/interfaces/IRegular.md
4782
4824
  ---
4783
4825
 
4784
4826
  [**Documents for @maiyunnet/kebab**](../../../index.md)
4785
4827
 
4786
4828
  ***
4787
4829
 
4788
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/cron](../index.md) / IRegularData
4830
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/cron](../index.md) / IRegular
4789
4831
 
4790
- # Interface: IRegularData
4832
+ # Interface: IRegular
4791
4833
 
4792
- 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)
4793
4835
 
4794
4836
  定时任务
4795
4837
 
4796
- ## Extends
4838
+ ## Extended by
4797
4839
 
4798
- - [`IRegular`](IRegular.md)
4840
+ - [`IRegularData`](IRegularData.md)
4799
4841
 
4800
4842
  ## Properties
4801
4843
 
@@ -4821,30 +4863,6 @@ Defined in: [lib/cron.ts:153](https://github.com/maiyunnet/kebab/blob/master/lib
4821
4863
 
4822
4864
  `void` \| `Promise`\<`void`\>
4823
4865
 
4824
- #### Inherited from
4825
-
4826
- [`IRegular`](IRegular.md).[`callback`](IRegular.md#callback)
4827
-
4828
- ***
4829
-
4830
- ### count
4831
-
4832
- > **count**: `number`
4833
-
4834
- Defined in: [lib/cron.ts:160](https://github.com/maiyunnet/kebab/blob/master/lib/cron.ts#L160)
4835
-
4836
- 总执行次数
4837
-
4838
- ***
4839
-
4840
- ### last
4841
-
4842
- > **last**: `string`
4843
-
4844
- Defined in: [lib/cron.ts:158](https://github.com/maiyunnet/kebab/blob/master/lib/cron.ts#L158)
4845
-
4846
- 上次执行时间字符串,格式:YmdHi(系统时区)
4847
-
4848
4866
  ***
4849
4867
 
4850
4868
  ### name
@@ -4855,20 +4873,6 @@ Defined in: [lib/cron.ts:149](https://github.com/maiyunnet/kebab/blob/master/lib
4855
4873
 
4856
4874
  任务名称,只能小写字母、数字、短横线、下划线,长度 1-32
4857
4875
 
4858
- #### Inherited from
4859
-
4860
- [`IRegular`](IRegular.md).[`name`](IRegular.md#name)
4861
-
4862
- ***
4863
-
4864
- ### rcount
4865
-
4866
- > **rcount**: `number`
4867
-
4868
- Defined in: [lib/cron.ts:162](https://github.com/maiyunnet/kebab/blob/master/lib/cron.ts#L162)
4869
-
4870
- 定时任务重启后的执行次数
4871
-
4872
4876
  ***
4873
4877
 
4874
4878
  ### rule
@@ -4879,10 +4883,6 @@ Defined in: [lib/cron.ts:151](https://github.com/maiyunnet/kebab/blob/master/lib
4879
4883
 
4880
4884
  规则,分、时、日、月、星期,与 linux 的 cron 相同(不支持秒)
4881
4885
 
4882
- #### Inherited from
4883
-
4884
- [`IRegular`](IRegular.md).[`rule`](IRegular.md#rule)
4885
-
4886
4886
  lib/crypto/functions/aesDecrypt.md
4887
4887
  ---
4888
4888
 
@@ -5490,24 +5490,24 @@ Defined in: [lib/crypto.ts:18](https://github.com/maiyunnet/kebab/blob/master/li
5490
5490
 
5491
5491
  `Promise`\<\{ `private`: `string` \| `Buffer`\<`ArrayBufferLike`\>; `public`: `string` \| `Buffer`\<`ArrayBufferLike`\>; \}\>
5492
5492
 
5493
- lib/crypto/functions/hashHmac.md
5493
+ lib/crypto/functions/hashHmacFile.md
5494
5494
  ---
5495
5495
 
5496
5496
  [**Documents for @maiyunnet/kebab**](../../../index.md)
5497
5497
 
5498
5498
  ***
5499
5499
 
5500
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/crypto](../index.md) / hashHmac
5500
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/crypto](../index.md) / hashHmacFile
5501
5501
 
5502
- # Function: hashHmac()
5502
+ # Function: hashHmacFile()
5503
5503
 
5504
5504
  ## Call Signature
5505
5505
 
5506
- > **hashHmac**(`algorithm`, `data`, `key?`, `format?`): `string`
5506
+ > **hashHmacFile**(`algorithm`, `path`, `key?`, `encoding?`): `Promise`\<`string` \| `false`\>
5507
5507
 
5508
- 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)
5509
5509
 
5510
- hash 或 hmac 加密
5510
+ hash 或 hmac 加密文件
5511
5511
 
5512
5512
  ### Parameters
5513
5513
 
@@ -5515,13 +5515,13 @@ hash 或 hmac 加密
5515
5515
 
5516
5516
  `string`
5517
5517
 
5518
- 哈希方式
5518
+ 加密方式,如 md5、sha256、sm3 等
5519
5519
 
5520
- #### data
5520
+ #### path
5521
5521
 
5522
- `string` \| `Buffer`\<`ArrayBufferLike`\>
5522
+ `string`
5523
5523
 
5524
- 源数据
5524
+ 文件路径
5525
5525
 
5526
5526
  #### key?
5527
5527
 
@@ -5529,21 +5529,21 @@ hash 或 hmac 加密
5529
5529
 
5530
5530
  设置则采用 hmac 加密
5531
5531
 
5532
- #### format?
5532
+ #### encoding?
5533
5533
 
5534
- `"hex"` \| `"base64"`
5534
+ `"hex"` \| `"base64"` \| `"base64url"`
5535
5535
 
5536
5536
  ### Returns
5537
5537
 
5538
- `string`
5538
+ `Promise`\<`string` \| `false`\>
5539
5539
 
5540
5540
  ## Call Signature
5541
5541
 
5542
- > **hashHmac**(`algorithm`, `data`, `key`, `format`): `Buffer`
5542
+ > **hashHmacFile**(`algorithm`, `path`, `key`, `encoding`): `Promise`\<`false` \| `Buffer`\<`ArrayBufferLike`\>\>
5543
5543
 
5544
- 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)
5545
5545
 
5546
- hash 或 hmac 加密
5546
+ hash 或 hmac 加密文件
5547
5547
 
5548
5548
  ### Parameters
5549
5549
 
@@ -5551,46 +5551,46 @@ hash 或 hmac 加密
5551
5551
 
5552
5552
  `string`
5553
5553
 
5554
- 哈希方式
5554
+ 加密方式,如 md5、sha256、sm3 等
5555
5555
 
5556
- #### data
5556
+ #### path
5557
5557
 
5558
- `string` \| `Buffer`\<`ArrayBufferLike`\>
5558
+ `string`
5559
5559
 
5560
- 源数据
5560
+ 文件路径
5561
5561
 
5562
5562
  #### key
5563
5563
 
5564
- `CipherKey` \| `undefined`
5564
+ `CipherKey`
5565
5565
 
5566
5566
  设置则采用 hmac 加密
5567
5567
 
5568
- #### format
5568
+ #### encoding
5569
5569
 
5570
5570
  `"buffer"`
5571
5571
 
5572
5572
  ### Returns
5573
5573
 
5574
- `Buffer`
5574
+ `Promise`\<`false` \| `Buffer`\<`ArrayBufferLike`\>\>
5575
5575
 
5576
- lib/crypto/functions/hashHmacFile.md
5576
+ lib/crypto/functions/hashHmac.md
5577
5577
  ---
5578
5578
 
5579
5579
  [**Documents for @maiyunnet/kebab**](../../../index.md)
5580
5580
 
5581
5581
  ***
5582
5582
 
5583
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/crypto](../index.md) / hashHmacFile
5583
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/crypto](../index.md) / hashHmac
5584
5584
 
5585
- # Function: hashHmacFile()
5585
+ # Function: hashHmac()
5586
5586
 
5587
5587
  ## Call Signature
5588
5588
 
5589
- > **hashHmacFile**(`algorithm`, `path`, `key?`, `encoding?`): `Promise`\<`string` \| `false`\>
5589
+ > **hashHmac**(`algorithm`, `data`, `key?`, `format?`): `string`
5590
5590
 
5591
- 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)
5592
5592
 
5593
- hash 或 hmac 加密文件
5593
+ hash 或 hmac 加密
5594
5594
 
5595
5595
  ### Parameters
5596
5596
 
@@ -5598,13 +5598,13 @@ hash 或 hmac 加密文件
5598
5598
 
5599
5599
  `string`
5600
5600
 
5601
- 加密方式,如 md5、sha256、sm3 等
5601
+ 哈希方式
5602
5602
 
5603
- #### path
5603
+ #### data
5604
5604
 
5605
- `string`
5605
+ `string` \| `Buffer`\<`ArrayBufferLike`\>
5606
5606
 
5607
- 文件路径
5607
+ 源数据
5608
5608
 
5609
5609
  #### key?
5610
5610
 
@@ -5612,21 +5612,21 @@ hash 或 hmac 加密文件
5612
5612
 
5613
5613
  设置则采用 hmac 加密
5614
5614
 
5615
- #### encoding?
5615
+ #### format?
5616
5616
 
5617
- `"hex"` \| `"base64"` \| `"base64url"`
5617
+ `"hex"` \| `"base64"`
5618
5618
 
5619
5619
  ### Returns
5620
5620
 
5621
- `Promise`\<`string` \| `false`\>
5621
+ `string`
5622
5622
 
5623
5623
  ## Call Signature
5624
5624
 
5625
- > **hashHmacFile**(`algorithm`, `path`, `key`, `encoding`): `Promise`\<`false` \| `Buffer`\<`ArrayBufferLike`\>\>
5625
+ > **hashHmac**(`algorithm`, `data`, `key`, `format`): `Buffer`
5626
5626
 
5627
- 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)
5628
5628
 
5629
- hash 或 hmac 加密文件
5629
+ hash 或 hmac 加密
5630
5630
 
5631
5631
  ### Parameters
5632
5632
 
@@ -5634,27 +5634,27 @@ hash 或 hmac 加密文件
5634
5634
 
5635
5635
  `string`
5636
5636
 
5637
- 加密方式,如 md5、sha256、sm3 等
5637
+ 哈希方式
5638
5638
 
5639
- #### path
5639
+ #### data
5640
5640
 
5641
- `string`
5641
+ `string` \| `Buffer`\<`ArrayBufferLike`\>
5642
5642
 
5643
- 文件路径
5643
+ 源数据
5644
5644
 
5645
5645
  #### key
5646
5646
 
5647
- `CipherKey`
5647
+ `CipherKey` \| `undefined`
5648
5648
 
5649
5649
  设置则采用 hmac 加密
5650
5650
 
5651
- #### encoding
5651
+ #### format
5652
5652
 
5653
5653
  `"buffer"`
5654
5654
 
5655
5655
  ### Returns
5656
5656
 
5657
- `Promise`\<`false` \| `Buffer`\<`ArrayBufferLike`\>\>
5657
+ `Buffer`
5658
5658
 
5659
5659
  lib/crypto/functions/privateDecrypt.md
5660
5660
  ---
@@ -8504,22 +8504,24 @@ Defined in: [lib/fs.ts:293](https://github.com/maiyunnet/kebab/blob/master/lib/f
8504
8504
 
8505
8505
  `Promise`\<`boolean`\>
8506
8506
 
8507
- lib/fs/functions/rmdir.md
8507
+ lib/fs/functions/rmdirDeep.md
8508
8508
  ---
8509
8509
 
8510
8510
  [**Documents for @maiyunnet/kebab**](../../../index.md)
8511
8511
 
8512
8512
  ***
8513
8513
 
8514
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / rmdir
8514
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / rmdirDeep
8515
8515
 
8516
- # Function: rmdir()
8516
+ # Function: rmdirDeep()
8517
8517
 
8518
- > **rmdir**(`path`): `Promise`\<`boolean`\>
8518
+ > **rmdirDeep**(`path`): `Promise`\<`boolean`\>
8519
8519
 
8520
- 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)
8521
8521
 
8522
- 删除空目录
8522
+ Danger 危险:危险函数,尽量不要使用
8523
+ This is a danger function, please don't use it
8524
+ 删除一个非空目录
8523
8525
 
8524
8526
  ## Parameters
8525
8527
 
@@ -8527,30 +8529,26 @@ Defined in: [lib/fs.ts:228](https://github.com/maiyunnet/kebab/blob/master/lib/f
8527
8529
 
8528
8530
  `string`
8529
8531
 
8530
- 要删除的目录
8531
-
8532
8532
  ## Returns
8533
8533
 
8534
8534
  `Promise`\<`boolean`\>
8535
8535
 
8536
- lib/fs/functions/rmdirDeep.md
8536
+ lib/fs/functions/rmdir.md
8537
8537
  ---
8538
8538
 
8539
8539
  [**Documents for @maiyunnet/kebab**](../../../index.md)
8540
8540
 
8541
8541
  ***
8542
8542
 
8543
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / rmdirDeep
8543
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/fs](../index.md) / rmdir
8544
8544
 
8545
- # Function: rmdirDeep()
8545
+ # Function: rmdir()
8546
8546
 
8547
- > **rmdirDeep**(`path`): `Promise`\<`boolean`\>
8547
+ > **rmdir**(`path`): `Promise`\<`boolean`\>
8548
8548
 
8549
- 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)
8550
8550
 
8551
- Danger 危险:危险函数,尽量不要使用
8552
- This is a danger function, please don't use it
8553
- 删除一个非空目录
8551
+ 删除空目录
8554
8552
 
8555
8553
  ## Parameters
8556
8554
 
@@ -8558,6 +8556,8 @@ This is a danger function, please don't use it
8558
8556
 
8559
8557
  `string`
8560
8558
 
8559
+ 要删除的目录
8560
+
8561
8561
  ## Returns
8562
8562
 
8563
8563
  `Promise`\<`boolean`\>
@@ -10064,31 +10064,15 @@ lib/lan/functions/scan.md
10064
10064
 
10065
10065
  # Function: scan()
10066
10066
 
10067
- > **scan**(): `Promise`\<`object`[]\>
10068
-
10069
- Defined in: [lib/lan.ts:63](https://github.com/maiyunnet/kebab/blob/master/lib/lan.ts#L63)
10070
-
10071
- 扫描发生关联的局域网 IP
10072
-
10073
- ## Returns
10074
-
10075
- `Promise`\<`object`[]\>
10076
-
10077
- lib/lan/index.md
10078
- ---
10079
-
10080
- [**Documents for @maiyunnet/kebab**](../../index.md)
10081
-
10082
- ***
10067
+ > **scan**(): `Promise`\<`object`[]\>
10083
10068
 
10084
- [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)
10085
10070
 
10086
- # lib/lan
10071
+ 扫描发生关联的局域网 IP
10087
10072
 
10088
- ## Functions
10073
+ ## Returns
10089
10074
 
10090
- - [card](functions/card.md)
10091
- - [scan](functions/scan.md)
10075
+ `Promise`\<`object`[]\>
10092
10076
 
10093
10077
  lib/lang/functions/getCodeByAccept.md
10094
10078
  ---
@@ -10189,6 +10173,22 @@ lib/lang/variables/names.md
10189
10173
 
10190
10174
  Defined in: [lib/lang.ts:7](https://github.com/maiyunnet/kebab/blob/master/lib/lang.ts#L7)
10191
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
+
10192
10192
  lib/net/formdata/classes/FormData.md
10193
10193
  ---
10194
10194
 
@@ -10613,41 +10613,6 @@ Defined in: [lib/net.ts:717](https://github.com/maiyunnet/kebab/blob/master/lib/
10613
10613
 
10614
10614
  `Record`\<`string`, `string` \| `string`[]\>
10615
10615
 
10616
- lib/net/functions/get.md
10617
- ---
10618
-
10619
- [**Documents for @maiyunnet/kebab**](../../../index.md)
10620
-
10621
- ***
10622
-
10623
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/net](../index.md) / get
10624
-
10625
- # Function: get()
10626
-
10627
- > **get**(`u`, `opt?`): `Promise`\<[`Response`](../response/classes/Response.md)\>
10628
-
10629
- Defined in: [lib/net.ts:69](https://github.com/maiyunnet/kebab/blob/master/lib/net.ts#L69)
10630
-
10631
- 发起一个 get 请求
10632
-
10633
- ## Parameters
10634
-
10635
- ### u
10636
-
10637
- `string`
10638
-
10639
- 请求的 URL
10640
-
10641
- ### opt?
10642
-
10643
- [`IRequestOptions`](../interfaces/IRequestOptions.md) = `{}`
10644
-
10645
- 参数
10646
-
10647
- ## Returns
10648
-
10649
- `Promise`\<[`Response`](../response/classes/Response.md)\>
10650
-
10651
10616
  lib/net/functions/getCa.md
10652
10617
  ---
10653
10618
 
@@ -10690,47 +10655,40 @@ Defined in: [lib/net.ts:701](https://github.com/maiyunnet/kebab/blob/master/lib/
10690
10655
 
10691
10656
  [`FormData`](../formdata/classes/FormData.md)
10692
10657
 
10693
- lib/net/functions/mproxy.md
10658
+ lib/net/functions/get.md
10694
10659
  ---
10695
10660
 
10696
10661
  [**Documents for @maiyunnet/kebab**](../../../index.md)
10697
10662
 
10698
10663
  ***
10699
10664
 
10700
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/net](../index.md) / mproxy
10665
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/net](../index.md) / get
10701
10666
 
10702
- # Function: mproxy()
10667
+ # Function: get()
10703
10668
 
10704
- > **mproxy**(`ctr`, `auth`, `opt?`): `Promise`\<`number`\>
10669
+ > **get**(`u`, `opt?`): `Promise`\<[`Response`](../response/classes/Response.md)\>
10705
10670
 
10706
- 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)
10707
10672
 
10708
- 正向 mproxy 代理,注意提前处理不要自动处理 post 数据,读取 get 的 url 为实际请求地址
10709
- get: url, auth
10673
+ 发起一个 get 请求
10710
10674
 
10711
10675
  ## Parameters
10712
10676
 
10713
- ### ctr
10714
-
10715
- [`Ctr`](../../../sys/ctr/classes/Ctr.md)
10716
-
10717
- 当前控制器
10718
-
10719
- ### auth
10677
+ ### u
10720
10678
 
10721
10679
  `string`
10722
10680
 
10723
- 校验字符串,读取 get 的 auth 和本参数做比对
10681
+ 请求的 URL
10724
10682
 
10725
10683
  ### opt?
10726
10684
 
10727
- [`IMproxyOptions`](../interfaces/IMproxyOptions.md) = `{}`
10685
+ [`IRequestOptions`](../interfaces/IRequestOptions.md) = `{}`
10728
10686
 
10729
10687
  参数
10730
10688
 
10731
10689
  ## Returns
10732
10690
 
10733
- `Promise`\<`number`\>
10691
+ `Promise`\<[`Response`](../response/classes/Response.md)\>
10734
10692
 
10735
10693
  lib/net/functions/mproxyData.md
10736
10694
  ---
@@ -10761,49 +10719,64 @@ Defined in: [lib/net.ts:805](https://github.com/maiyunnet/kebab/blob/master/lib/
10761
10719
 
10762
10720
  `any`
10763
10721
 
10764
- lib/net/functions/open.md
10722
+ lib/net/functions/mproxy.md
10765
10723
  ---
10766
10724
 
10767
10725
  [**Documents for @maiyunnet/kebab**](../../../index.md)
10768
10726
 
10769
10727
  ***
10770
10728
 
10771
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/net](../index.md) / open
10729
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/net](../index.md) / mproxy
10772
10730
 
10773
- # Function: open()
10731
+ # Function: mproxy()
10774
10732
 
10775
- > **open**(`u`): [`Request`](../request/classes/Request.md)
10733
+ > **mproxy**(`ctr`, `auth`, `opt?`): `Promise`\<`number`\>
10776
10734
 
10777
- 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)
10778
10736
 
10779
- 创建一个请求对象
10737
+ 正向 mproxy 代理,注意提前处理不要自动处理 post 数据,读取 get 的 url 为实际请求地址
10738
+ get: url, auth
10780
10739
 
10781
10740
  ## Parameters
10782
10741
 
10783
- ### u
10742
+ ### ctr
10743
+
10744
+ [`Ctr`](../../../sys/ctr/classes/Ctr.md)
10745
+
10746
+ 当前控制器
10747
+
10748
+ ### auth
10784
10749
 
10785
10750
  `string`
10786
10751
 
10752
+ 校验字符串,读取 get 的 auth 和本参数做比对
10753
+
10754
+ ### opt?
10755
+
10756
+ [`IMproxyOptions`](../interfaces/IMproxyOptions.md) = `{}`
10757
+
10758
+ 参数
10759
+
10787
10760
  ## Returns
10788
10761
 
10789
- [`Request`](../request/classes/Request.md)
10762
+ `Promise`\<`number`\>
10790
10763
 
10791
- lib/net/functions/post.md
10764
+ lib/net/functions/open.md
10792
10765
  ---
10793
10766
 
10794
10767
  [**Documents for @maiyunnet/kebab**](../../../index.md)
10795
10768
 
10796
10769
  ***
10797
10770
 
10798
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/net](../index.md) / post
10771
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/net](../index.md) / open
10799
10772
 
10800
- # Function: post()
10773
+ # Function: open()
10801
10774
 
10802
- > **post**(`u`, `data`, `opt?`): `Promise`\<[`Response`](../response/classes/Response.md)\>
10775
+ > **open**(`u`): [`Request`](../request/classes/Request.md)
10803
10776
 
10804
- 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)
10805
10778
 
10806
- 发起一个 post 请求
10779
+ 创建一个请求对象
10807
10780
 
10808
10781
  ## Parameters
10809
10782
 
@@ -10811,23 +10784,9 @@ Defined in: [lib/net.ts:79](https://github.com/maiyunnet/kebab/blob/master/lib/n
10811
10784
 
10812
10785
  `string`
10813
10786
 
10814
- 请求的 URL
10815
-
10816
- ### data
10817
-
10818
- `string` \| `Record`\<`string`, `any`\> \| `Buffer`\<`ArrayBufferLike`\> \| `Readable`
10819
-
10820
- 要发送的数据
10821
-
10822
- ### opt?
10823
-
10824
- [`IRequestOptions`](../interfaces/IRequestOptions.md) = `{}`
10825
-
10826
- 参数
10827
-
10828
10787
  ## Returns
10829
10788
 
10830
- `Promise`\<[`Response`](../response/classes/Response.md)\>
10789
+ [`Request`](../request/classes/Request.md)
10831
10790
 
10832
10791
  lib/net/functions/postJson.md
10833
10792
  ---
@@ -10913,6 +10872,47 @@ Defined in: [lib/net.ts:111](https://github.com/maiyunnet/kebab/blob/master/lib/
10913
10872
 
10914
10873
  JSON 数据,失败时返回 null
10915
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
+
10916
10916
  lib/net/functions/request.md
10917
10917
  ---
10918
10918
 
@@ -12035,22 +12035,22 @@ http headers
12035
12035
 
12036
12036
  > `optional` **http-version?**: `"1.1"` \| `"2.0"`
12037
12037
 
12038
- lib/ratelimit/functions/check.md
12038
+ lib/ratelimit/functions/checkFixed.md
12039
12039
  ---
12040
12040
 
12041
12041
  [**Documents for @maiyunnet/kebab**](../../../index.md)
12042
12042
 
12043
12043
  ***
12044
12044
 
12045
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/ratelimit](../index.md) / check
12045
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/ratelimit](../index.md) / checkFixed
12046
12046
 
12047
- # Function: check()
12047
+ # Function: checkFixed()
12048
12048
 
12049
- > **check**(`kv`, `key`, `opt?`): `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
12049
+ > **checkFixed**(`kv`, `key`, `opt?`): `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
12050
12050
 
12051
- 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)
12052
12052
 
12053
- 检查指定 key 是否超速,使用多段近似滑动窗口算法
12053
+ 简易固定窗口限速检查(性能更高,精度较低)
12054
12054
 
12055
12055
  ## Parameters
12056
12056
 
@@ -12064,7 +12064,7 @@ KV 实例
12064
12064
 
12065
12065
  `string`
12066
12066
 
12067
- 限速标识(如 IP、用户 UID 等)
12067
+ 限速标识
12068
12068
 
12069
12069
  ### opt?
12070
12070
 
@@ -12092,24 +12092,22 @@ key 前缀,默认 rl:
12092
12092
 
12093
12093
  `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
12094
12094
 
12095
- 返回结果对象
12096
-
12097
- lib/ratelimit/functions/checkFixed.md
12095
+ lib/ratelimit/functions/check.md
12098
12096
  ---
12099
12097
 
12100
12098
  [**Documents for @maiyunnet/kebab**](../../../index.md)
12101
12099
 
12102
12100
  ***
12103
12101
 
12104
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/ratelimit](../index.md) / checkFixed
12102
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/ratelimit](../index.md) / check
12105
12103
 
12106
- # Function: checkFixed()
12104
+ # Function: check()
12107
12105
 
12108
- > **checkFixed**(`kv`, `key`, `opt?`): `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
12106
+ > **check**(`kv`, `key`, `opt?`): `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
12109
12107
 
12110
- 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)
12111
12109
 
12112
- 简易固定窗口限速检查(性能更高,精度较低)
12110
+ 检查指定 key 是否超速,使用多段近似滑动窗口算法
12113
12111
 
12114
12112
  ## Parameters
12115
12113
 
@@ -12123,7 +12121,7 @@ KV 实例
12123
12121
 
12124
12122
  `string`
12125
12123
 
12126
- 限速标识
12124
+ 限速标识(如 IP、用户 UID 等)
12127
12125
 
12128
12126
  ### opt?
12129
12127
 
@@ -12151,6 +12149,8 @@ key 前缀,默认 rl:
12151
12149
 
12152
12150
  `Promise`\<[`ICheckResult`](../interfaces/ICheckResult.md)\>
12153
12151
 
12152
+ 返回结果对象
12153
+
12154
12154
  lib/ratelimit/index.md
12155
12155
  ---
12156
12156
 
@@ -13049,7 +13049,7 @@ Defined in: [lib/session.ts:39](https://github.com/maiyunnet/kebab/blob/master/l
13049
13049
 
13050
13050
  > **getName**(): `string`
13051
13051
 
13052
- Defined in: [lib/session.ts:207](https://github.com/maiyunnet/kebab/blob/master/lib/session.ts#L207)
13052
+ Defined in: [lib/session.ts:212](https://github.com/maiyunnet/kebab/blob/master/lib/session.ts#L212)
13053
13053
 
13054
13054
  获取当前的 cookie 的 name 值
13055
13055
 
@@ -13063,7 +13063,7 @@ Defined in: [lib/session.ts:207](https://github.com/maiyunnet/kebab/blob/master/
13063
13063
 
13064
13064
  > **getToken**(): `string`
13065
13065
 
13066
- Defined in: [lib/session.ts:200](https://github.com/maiyunnet/kebab/blob/master/lib/session.ts#L200)
13066
+ Defined in: [lib/session.ts:205](https://github.com/maiyunnet/kebab/blob/master/lib/session.ts#L205)
13067
13067
 
13068
13068
  获取当前的 token 值
13069
13069
 
@@ -13119,7 +13119,7 @@ false 表示系统错误
13119
13119
 
13120
13120
  > **update**(): `Promise`\<`void`\>
13121
13121
 
13122
- Defined in: [lib/session.ts:214](https://github.com/maiyunnet/kebab/blob/master/lib/session.ts#L214)
13122
+ Defined in: [lib/session.ts:219](https://github.com/maiyunnet/kebab/blob/master/lib/session.ts#L219)
13123
13123
 
13124
13124
  页面整体结束时,要写入到 Kv 或 数据库
13125
13125
 
@@ -19831,28 +19831,28 @@ lib/zlib/index.md
19831
19831
  - [gzip](functions/gzip.md)
19832
19832
  - [inflate](functions/inflate.md)
19833
19833
 
19834
- lib/zlib/interfaces/ICompress.md
19834
+ lib/zlib/interfaces/ICompressBuffer.md
19835
19835
  ---
19836
19836
 
19837
19837
  [**Documents for @maiyunnet/kebab**](../../../index.md)
19838
19838
 
19839
19839
  ***
19840
19840
 
19841
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/zlib](../index.md) / ICompress
19841
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/zlib](../index.md) / ICompressBuffer
19842
19842
 
19843
- # Interface: ICompress
19843
+ # Interface: ICompressBuffer
19844
19844
 
19845
- 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)
19846
19846
 
19847
- 某个压缩对象
19847
+ 某个压缩后的变量
19848
19848
 
19849
19849
  ## Properties
19850
19850
 
19851
- ### compress
19851
+ ### buffer
19852
19852
 
19853
- > `readonly` **compress**: `BrotliCompress` \| `BrotliDecompress` \| `Gzip` \| `Gunzip` \| `Deflate` \| `Inflate`
19853
+ > `readonly` **buffer**: `Buffer`
19854
19854
 
19855
- 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)
19856
19856
 
19857
19857
  ***
19858
19858
 
@@ -19860,30 +19860,30 @@ Defined in: [lib/zlib.ts:11](https://github.com/maiyunnet/kebab/blob/master/lib/
19860
19860
 
19861
19861
  > `readonly` **type**: `string`
19862
19862
 
19863
- 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)
19864
19864
 
19865
- lib/zlib/interfaces/ICompressBuffer.md
19865
+ lib/zlib/interfaces/ICompress.md
19866
19866
  ---
19867
19867
 
19868
19868
  [**Documents for @maiyunnet/kebab**](../../../index.md)
19869
19869
 
19870
19870
  ***
19871
19871
 
19872
- [Documents for @maiyunnet/kebab](../../../index.md) / [lib/zlib](../index.md) / ICompressBuffer
19872
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/zlib](../index.md) / ICompress
19873
19873
 
19874
- # Interface: ICompressBuffer
19874
+ # Interface: ICompress
19875
19875
 
19876
- 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)
19877
19877
 
19878
- 某个压缩后的变量
19878
+ 某个压缩对象
19879
19879
 
19880
19880
  ## Properties
19881
19881
 
19882
- ### buffer
19882
+ ### compress
19883
19883
 
19884
- > `readonly` **buffer**: `Buffer`
19884
+ > `readonly` **compress**: `BrotliCompress` \| `BrotliDecompress` \| `Gzip` \| `Gunzip` \| `Deflate` \| `Inflate`
19885
19885
 
19886
- 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)
19887
19887
 
19888
19888
  ***
19889
19889
 
@@ -19891,7 +19891,7 @@ Defined in: [lib/zlib.ts:18](https://github.com/maiyunnet/kebab/blob/master/lib/
19891
19891
 
19892
19892
  > `readonly` **type**: `string`
19893
19893
 
19894
- 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)
19895
19895
 
19896
19896
  main/index.md
19897
19897
  ---
@@ -20199,7 +20199,7 @@ Defined in: [sys/ctr.ts:120](https://github.com/maiyunnet/kebab/blob/master/sys/
20199
20199
 
20200
20200
  Defined in: [sys/ctr.ts:132](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L132)
20201
20201
 
20202
- 获取当前过期时间
20202
+ 获取当前过期时间(毫秒)
20203
20203
 
20204
20204
  ##### Returns
20205
20205
 
@@ -20211,7 +20211,7 @@ Defined in: [sys/ctr.ts:132](https://github.com/maiyunnet/kebab/blob/master/sys/
20211
20211
 
20212
20212
  Defined in: [sys/ctr.ts:139](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L139)
20213
20213
 
20214
- 设置当前过期时间
20214
+ 设置当前过期时间(毫秒)
20215
20215
 
20216
20216
  ##### Parameters
20217
20217
 
@@ -20251,7 +20251,7 @@ Defined in: [sys/ctr.ts:173](https://github.com/maiyunnet/kebab/blob/master/sys/
20251
20251
 
20252
20252
  > `protected` **\_checkInput**(`input`, `rule`, `rtn`): `boolean`
20253
20253
 
20254
- 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)
20255
20255
 
20256
20256
  检测提交的数据类型
20257
20257
 
@@ -20285,7 +20285,7 @@ Defined in: [sys/ctr.ts:512](https://github.com/maiyunnet/kebab/blob/master/sys/
20285
20285
 
20286
20286
  > `protected` **\_checkXInput**(`input`, `rule`, `rtn`): `boolean`
20287
20287
 
20288
- 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)
20289
20289
 
20290
20290
  检测提交的数据类型(会检测 XSRF)
20291
20291
 
@@ -20319,7 +20319,7 @@ Defined in: [sys/ctr.ts:690](https://github.com/maiyunnet/kebab/blob/master/sys/
20319
20319
 
20320
20320
  > `protected` **\_cross**(`opt?`): `boolean`
20321
20321
 
20322
- Defined in: [sys/ctr.ts:904](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L904)
20322
+ Defined in: [sys/ctr.ts:975](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L975)
20323
20323
 
20324
20324
  开启跨域请求
20325
20325
 
@@ -20364,7 +20364,7 @@ Defined in: [sys/ctr.ts:904](https://github.com/maiyunnet/kebab/blob/master/sys/
20364
20364
 
20365
20365
  > `protected` **\_device**(): `"unknown"` \| `"android"` \| `"linux"` \| `"windows"` \| `"macintosh"` \| `"ipad"`
20366
20366
 
20367
- 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)
20368
20368
 
20369
20369
  根据用户 ua 获取当前用户的设备类型
20370
20370
 
@@ -20378,7 +20378,7 @@ Defined in: [sys/ctr.ts:732](https://github.com/maiyunnet/kebab/blob/master/sys/
20378
20378
 
20379
20379
  > `protected` **\_enabledXsrf**(`opt?`): `void`
20380
20380
 
20381
- 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)
20382
20382
 
20383
20383
  当前页面开启 XSRF 支持(主要检测 cookie 是否存在)
20384
20384
  如果当前页面有 CDN,请不要使用
@@ -20401,7 +20401,7 @@ Defined in: [sys/ctr.ts:701](https://github.com/maiyunnet/kebab/blob/master/sys/
20401
20401
 
20402
20402
  > `protected` **\_end**(): `void`
20403
20403
 
20404
- Defined in: [sys/ctr.ts:1012](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1012)
20404
+ Defined in: [sys/ctr.ts:1083](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1083)
20405
20405
 
20406
20406
  主动关闭当前 socket 连接
20407
20407
 
@@ -20415,7 +20415,7 @@ Defined in: [sys/ctr.ts:1012](https://github.com/maiyunnet/kebab/blob/master/sys
20415
20415
 
20416
20416
  > `protected` **\_getBasicAuth**(`user`, `pwd`): `string`
20417
20417
 
20418
- 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)
20419
20419
 
20420
20420
  获取 Auth 字符串,用于客户端提交
20421
20421
 
@@ -20443,7 +20443,7 @@ Defined in: [sys/ctr.ts:725](https://github.com/maiyunnet/kebab/blob/master/sys/
20443
20443
 
20444
20444
  > `protected` **\_getLocale**(): `string`
20445
20445
 
20446
- Defined in: [sys/ctr.ts:895](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L895)
20446
+ Defined in: [sys/ctr.ts:966](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L966)
20447
20447
 
20448
20448
  获取当前语言名
20449
20449
 
@@ -20457,7 +20457,7 @@ Defined in: [sys/ctr.ts:895](https://github.com/maiyunnet/kebab/blob/master/sys/
20457
20457
 
20458
20458
  > `protected` **\_getLocaleJsonString**(): `string`
20459
20459
 
20460
- Defined in: [sys/ctr.ts:883](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L883)
20460
+ Defined in: [sys/ctr.ts:954](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L954)
20461
20461
 
20462
20462
  根据当前后台语言包设置情况获取 JSON 字符串传输到前台
20463
20463
 
@@ -20509,7 +20509,7 @@ Defined in: [sys/ctr.ts:315](https://github.com/maiyunnet/kebab/blob/master/sys/
20509
20509
 
20510
20510
  > `protected` **\_handleFormData**(`events?`, `limits?`): `Promise`\<`boolean`\>
20511
20511
 
20512
- Defined in: [sys/ctr.ts:1021](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1021)
20512
+ Defined in: [sys/ctr.ts:1092](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1092)
20513
20513
 
20514
20514
  获取 formdata 的信息
20515
20515
 
@@ -20557,7 +20557,7 @@ Defined in: [sys/ctr.ts:1021](https://github.com/maiyunnet/kebab/blob/master/sys
20557
20557
 
20558
20558
  > **\_l**(`key`, `data?`): `string`
20559
20559
 
20560
- Defined in: [sys/ctr.ts:947](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L947)
20560
+ Defined in: [sys/ctr.ts:1018](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1018)
20561
20561
 
20562
20562
  获取语言包值
20563
20563
 
@@ -20583,7 +20583,7 @@ Defined in: [sys/ctr.ts:947](https://github.com/maiyunnet/kebab/blob/master/sys/
20583
20583
 
20584
20584
  > `protected` **\_loadData**(`path`): `Promise`\<`Record`\<`string`, `string`\> \| `null`\>
20585
20585
 
20586
- Defined in: [sys/ctr.ts:786](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L786)
20586
+ Defined in: [sys/ctr.ts:857](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L857)
20587
20587
 
20588
20588
  获取 data 数据
20589
20589
 
@@ -20605,7 +20605,7 @@ Defined in: [sys/ctr.ts:786](https://github.com/maiyunnet/kebab/blob/master/sys/
20605
20605
 
20606
20606
  > `protected` **\_loadLocale**(`loc`, `pkg?`): `Promise`\<`boolean`\>
20607
20607
 
20608
- Defined in: [sys/ctr.ts:834](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L834)
20608
+ Defined in: [sys/ctr.ts:905](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L905)
20609
20609
 
20610
20610
  设定语言并加载语言包
20611
20611
 
@@ -20726,7 +20726,7 @@ Defined in: [sys/ctr.ts:332](https://github.com/maiyunnet/kebab/blob/master/sys/
20726
20726
 
20727
20727
  > `protected` **\_location**(`location`): `false`
20728
20728
 
20729
- Defined in: [sys/ctr.ts:804](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L804)
20729
+ Defined in: [sys/ctr.ts:875](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L875)
20730
20730
 
20731
20731
  跳转(302临时跳转),支持相对本项目根路径的路径或绝对路径
20732
20732
 
@@ -20748,7 +20748,7 @@ Defined in: [sys/ctr.ts:804](https://github.com/maiyunnet/kebab/blob/master/sys/
20748
20748
 
20749
20749
  > `protected` **\_ping**(`data?`): `boolean`
20750
20750
 
20751
- Defined in: [sys/ctr.ts:997](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L997)
20751
+ Defined in: [sys/ctr.ts:1068](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1068)
20752
20752
 
20753
20753
  发送 socket ping
20754
20754
 
@@ -20770,7 +20770,7 @@ Defined in: [sys/ctr.ts:997](https://github.com/maiyunnet/kebab/blob/master/sys/
20770
20770
 
20771
20771
  > `protected` **\_pong**(`data?`): `boolean`
20772
20772
 
20773
- Defined in: [sys/ctr.ts:1005](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1005)
20773
+ Defined in: [sys/ctr.ts:1076](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1076)
20774
20774
 
20775
20775
  发送 socket pong
20776
20776
 
@@ -20792,7 +20792,7 @@ Defined in: [sys/ctr.ts:1005](https://github.com/maiyunnet/kebab/blob/master/sys
20792
20792
 
20793
20793
  > `protected` **\_startSession**(`link`, `auth?`, `opt?`): `Promise`\<`boolean`\>
20794
20794
 
20795
- Defined in: [sys/ctr.ts:818](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L818)
20795
+ Defined in: [sys/ctr.ts:889](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L889)
20796
20796
 
20797
20797
  开启 Session
20798
20798
 
@@ -20826,7 +20826,7 @@ Kv 或 Db 实例
20826
20826
 
20827
20827
  > `protected` **\_writeBinary**(`data`): `boolean`
20828
20828
 
20829
- Defined in: [sys/ctr.ts:989](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L989)
20829
+ Defined in: [sys/ctr.ts:1060](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1060)
20830
20830
 
20831
20831
  发送 socket 二进制
20832
20832
 
@@ -20848,7 +20848,7 @@ Defined in: [sys/ctr.ts:989](https://github.com/maiyunnet/kebab/blob/master/sys/
20848
20848
 
20849
20849
  > `protected` **\_writeResult**(`data`): `boolean`
20850
20850
 
20851
- Defined in: [sys/ctr.ts:981](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L981)
20851
+ Defined in: [sys/ctr.ts:1052](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1052)
20852
20852
 
20853
20853
  发送结果对象文本
20854
20854
 
@@ -20870,7 +20870,7 @@ Defined in: [sys/ctr.ts:981](https://github.com/maiyunnet/kebab/blob/master/sys/
20870
20870
 
20871
20871
  > `protected` **\_writeText**(`data`): `boolean`
20872
20872
 
20873
- Defined in: [sys/ctr.ts:973](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L973)
20873
+ Defined in: [sys/ctr.ts:1044](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1044)
20874
20874
 
20875
20875
  发送 socket 文本
20876
20876
 
@@ -20890,15 +20890,15 @@ Defined in: [sys/ctr.ts:973](https://github.com/maiyunnet/kebab/blob/master/sys/
20890
20890
 
20891
20891
  ### getAuthorization()
20892
20892
 
20893
- > **getAuthorization**(): `false` \| \{ `pwd`: `string`; `user`: `string`; \}
20893
+ > **getAuthorization**(): `false` \| \{ `pwd`: `string`; `type`: `"basic"`; `user`: `string`; \} \| \{ `token`: `string`; `type`: `"bearer"`; \}
20894
20894
 
20895
- 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)
20896
20896
 
20897
- 通过 header 或 _auth 获取 Basic Auth 鉴权信息
20897
+ 通过 header 或 _auth 获取鉴权信息,支持 Basic Auth 和 Bearer Token
20898
20898
 
20899
20899
  #### Returns
20900
20900
 
20901
- `false` \| \{ `pwd`: `string`; `user`: `string`; \}
20901
+ `false` \| \{ `pwd`: `string`; `type`: `"basic"`; `user`: `string`; \} \| \{ `token`: `string`; `type`: `"bearer"`; \}
20902
20902
 
20903
20903
  ***
20904
20904
 
@@ -23890,7 +23890,7 @@ sys/route/functions/getFormData.md
23890
23890
 
23891
23891
  > **getFormData**(`req`, `events?`, `limits?`): `Promise`\<`false` \| \{ `files`: `Record`\<`string`, [`IPostFile`](../../../index/interfaces/IPostFile.md) \| [`IPostFile`](../../../index/interfaces/IPostFile.md)[]\>; `post`: `Record`\<`string`, [`Json`](../../../index/type-aliases/Json.md)\>; \}\>
23892
23892
 
23893
- Defined in: [sys/route.ts:933](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L933)
23893
+ Defined in: [sys/route.ts:962](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L962)
23894
23894
 
23895
23895
  获取 formdata 的 post
23896
23896
 
@@ -23957,7 +23957,7 @@ sys/route/functions/getPost.md
23957
23957
 
23958
23958
  > **getPost**(`req`): `Promise`\<\{ `input`: `string`; `post`: `Record`\<`string`, `any`\>; `raw`: `Record`\<`string`, `any`\>; \}\>
23959
23959
 
23960
- Defined in: [sys/route.ts:866](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L866)
23960
+ Defined in: [sys/route.ts:876](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L876)
23961
23961
 
23962
23962
  获取 post 对象(通常已自动获取),如果是文件上传(formdata)的情况则不获取
23963
23963
 
@@ -24073,7 +24073,7 @@ sys/route/functions/unlinkUploadFiles.md
24073
24073
 
24074
24074
  > **unlinkUploadFiles**(`cctr`): `Promise`\<`void`\>
24075
24075
 
24076
- Defined in: [sys/route.ts:825](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L825)
24076
+ Defined in: [sys/route.ts:835](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L835)
24077
24077
 
24078
24078
  删除本次请求所有已上传的临时文件
24079
24079
 
@@ -24102,7 +24102,7 @@ sys/route/functions/waitCtr.md
24102
24102
 
24103
24103
  > **waitCtr**(`cctr`): `Promise`\<`void`\>
24104
24104
 
24105
- Defined in: [sys/route.ts:845](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L845)
24105
+ Defined in: [sys/route.ts:855](https://github.com/maiyunnet/kebab/blob/master/sys/route.ts#L855)
24106
24106
 
24107
24107
  等待异步任务结束,并删除临时文件,如果结束后还有事务没关闭,则会在本函数中打印控制台并且写入 log 文件
24108
24108
  此时其实已经给客户端返回了,此处等待不消耗客户端的等待时间