@maiyunnet/kebab 9.13.0 → 9.13.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.
- package/doc/kebab-rag.md +85 -81
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/lib/undici/response.d.ts +1 -1
- package/lib/undici.js +51 -29
- package/lib/zip.d.ts +2 -0
- package/package.json +1 -1
- package/sys/ctr.d.ts +3 -3
package/doc/kebab-rag.md
CHANGED
|
@@ -1360,7 +1360,7 @@ index/variables/VER.md
|
|
|
1360
1360
|
|
|
1361
1361
|
# Variable: VER
|
|
1362
1362
|
|
|
1363
|
-
> `const` **VER**: `"9.13.
|
|
1363
|
+
> `const` **VER**: `"9.13.1"` = `'9.13.1'`
|
|
1364
1364
|
|
|
1365
1365
|
Defined in: [index.ts:10](https://github.com/maiyunnet/kebab/blob/master/index.ts#L10)
|
|
1366
1366
|
|
|
@@ -18462,7 +18462,7 @@ lib/undici/functions/mproxyData.md
|
|
|
18462
18462
|
|
|
18463
18463
|
> **mproxyData**(`ctr`): `any`
|
|
18464
18464
|
|
|
18465
|
-
Defined in: [lib/undici.ts:
|
|
18465
|
+
Defined in: [lib/undici.ts:633](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L633)
|
|
18466
18466
|
|
|
18467
18467
|
获取 mproxy 的附加数据
|
|
18468
18468
|
|
|
@@ -18491,7 +18491,7 @@ lib/undici/functions/mproxy.md
|
|
|
18491
18491
|
|
|
18492
18492
|
> **mproxy**(`ctr`, `auth`, `opt?`): `Promise`\<`number`\>
|
|
18493
18493
|
|
|
18494
|
-
Defined in: [lib/undici.ts:
|
|
18494
|
+
Defined in: [lib/undici.ts:571](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L571)
|
|
18495
18495
|
|
|
18496
18496
|
正向 mproxy 代理,注意提前处理不要自动处理 post 数据,读取 get 的 url 为实际请求地址
|
|
18497
18497
|
get: url, auth
|
|
@@ -18720,7 +18720,7 @@ lib/undici/functions/rproxy.md
|
|
|
18720
18720
|
|
|
18721
18721
|
> **rproxy**(`ctr`, `route`, `opt?`): `Promise`\<`boolean`\>
|
|
18722
18722
|
|
|
18723
|
-
Defined in: [lib/undici.ts:
|
|
18723
|
+
Defined in: [lib/undici.ts:663](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L663)
|
|
18724
18724
|
|
|
18725
18725
|
反向代理,将本服务器的某个路由反代到其他网址
|
|
18726
18726
|
|
|
@@ -18808,7 +18808,7 @@ lib/undici/interfaces/IMproxyOptions.md
|
|
|
18808
18808
|
|
|
18809
18809
|
# Interface: IMproxyOptions
|
|
18810
18810
|
|
|
18811
|
-
Defined in: [lib/undici.ts:
|
|
18811
|
+
Defined in: [lib/undici.ts:780](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L780)
|
|
18812
18812
|
|
|
18813
18813
|
正向代理请求的传入参数选项
|
|
18814
18814
|
|
|
@@ -18818,7 +18818,7 @@ Defined in: [lib/undici.ts:758](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
18818
18818
|
|
|
18819
18819
|
> `optional` **filter?**: (`h`) => `boolean`
|
|
18820
18820
|
|
|
18821
|
-
Defined in: [lib/undici.ts:
|
|
18821
|
+
Defined in: [lib/undici.ts:789](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L789)
|
|
18822
18822
|
|
|
18823
18823
|
过滤 header,返回 true 则留下
|
|
18824
18824
|
|
|
@@ -18838,7 +18838,7 @@ Defined in: [lib/undici.ts:767](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
18838
18838
|
|
|
18839
18839
|
> `optional` **follow?**: `number`
|
|
18840
18840
|
|
|
18841
|
-
Defined in: [lib/undici.ts:
|
|
18841
|
+
Defined in: [lib/undici.ts:783](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L783)
|
|
18842
18842
|
|
|
18843
18843
|
***
|
|
18844
18844
|
|
|
@@ -18846,7 +18846,7 @@ Defined in: [lib/undici.ts:761](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
18846
18846
|
|
|
18847
18847
|
> `optional` **headers?**: [`THttpHeaders`](../type-aliases/THttpHeaders.md)
|
|
18848
18848
|
|
|
18849
|
-
Defined in: [lib/undici.ts:
|
|
18849
|
+
Defined in: [lib/undici.ts:787](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L787)
|
|
18850
18850
|
|
|
18851
18851
|
***
|
|
18852
18852
|
|
|
@@ -18854,7 +18854,7 @@ Defined in: [lib/undici.ts:765](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
18854
18854
|
|
|
18855
18855
|
> `optional` **hosts?**: `string` \| `Record`\<`string`, `string`\>
|
|
18856
18856
|
|
|
18857
|
-
Defined in: [lib/undici.ts:
|
|
18857
|
+
Defined in: [lib/undici.ts:785](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L785)
|
|
18858
18858
|
|
|
18859
18859
|
自定义 host 映射,如 {'www.maiyun.net': '127.0.0.1'},或全部映射到一个 host
|
|
18860
18860
|
|
|
@@ -18864,7 +18864,7 @@ Defined in: [lib/undici.ts:763](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
18864
18864
|
|
|
18865
18865
|
> `optional` **local?**: `string`
|
|
18866
18866
|
|
|
18867
|
-
Defined in: [lib/undici.ts:
|
|
18867
|
+
Defined in: [lib/undici.ts:786](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L786)
|
|
18868
18868
|
|
|
18869
18869
|
***
|
|
18870
18870
|
|
|
@@ -18872,7 +18872,7 @@ Defined in: [lib/undici.ts:764](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
18872
18872
|
|
|
18873
18873
|
> `optional` **reuse?**: `string` \| `Agent` \| `ProxyAgent`
|
|
18874
18874
|
|
|
18875
|
-
Defined in: [lib/undici.ts:
|
|
18875
|
+
Defined in: [lib/undici.ts:791](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L791)
|
|
18876
18876
|
|
|
18877
18877
|
默认为 default
|
|
18878
18878
|
|
|
@@ -18882,7 +18882,7 @@ Defined in: [lib/undici.ts:769](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
18882
18882
|
|
|
18883
18883
|
> `optional` **timeout?**: `number`
|
|
18884
18884
|
|
|
18885
|
-
Defined in: [lib/undici.ts:
|
|
18885
|
+
Defined in: [lib/undici.ts:782](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L782)
|
|
18886
18886
|
|
|
18887
18887
|
秒数,默认 300 秒
|
|
18888
18888
|
|
|
@@ -18897,7 +18897,7 @@ lib/undici/interfaces/IRequestOptions.md
|
|
|
18897
18897
|
|
|
18898
18898
|
# Interface: IRequestOptions
|
|
18899
18899
|
|
|
18900
|
-
Defined in: [lib/undici.ts:
|
|
18900
|
+
Defined in: [lib/undici.ts:747](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L747)
|
|
18901
18901
|
|
|
18902
18902
|
请求的传入参数选项
|
|
18903
18903
|
|
|
@@ -18907,7 +18907,7 @@ Defined in: [lib/undici.ts:725](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
18907
18907
|
|
|
18908
18908
|
> `optional` **cookie?**: `Record`\<`string`, [`ICookie`](../../cookie/interfaces/ICookie.md)\>
|
|
18909
18909
|
|
|
18910
|
-
Defined in: [lib/undici.ts:
|
|
18910
|
+
Defined in: [lib/undici.ts:772](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L772)
|
|
18911
18911
|
|
|
18912
18912
|
cookie 托管对象
|
|
18913
18913
|
|
|
@@ -18917,7 +18917,7 @@ cookie 托管对象
|
|
|
18917
18917
|
|
|
18918
18918
|
> `optional` **follow?**: `number`
|
|
18919
18919
|
|
|
18920
|
-
Defined in: [lib/undici.ts:
|
|
18920
|
+
Defined in: [lib/undici.ts:753](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L753)
|
|
18921
18921
|
|
|
18922
18922
|
追踪 location 次数,0 为不追踪,默认为 0
|
|
18923
18923
|
|
|
@@ -18927,7 +18927,7 @@ Defined in: [lib/undici.ts:731](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
18927
18927
|
|
|
18928
18928
|
> `optional` **headers?**: [`THttpHeaders`](../type-aliases/THttpHeaders.md)
|
|
18929
18929
|
|
|
18930
|
-
Defined in: [lib/undici.ts:
|
|
18930
|
+
Defined in: [lib/undici.ts:758](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L758)
|
|
18931
18931
|
|
|
18932
18932
|
***
|
|
18933
18933
|
|
|
@@ -18935,7 +18935,7 @@ Defined in: [lib/undici.ts:736](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
18935
18935
|
|
|
18936
18936
|
> `optional` **hosts?**: `string` \| `Record`\<`string`, `string`\>
|
|
18937
18937
|
|
|
18938
|
-
Defined in: [lib/undici.ts:
|
|
18938
|
+
Defined in: [lib/undici.ts:755](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L755)
|
|
18939
18939
|
|
|
18940
18940
|
自定义 host 映射,如 {'www.maiyun.net': '127.0.0.1'},或全部映射到一个 host
|
|
18941
18941
|
|
|
@@ -18945,7 +18945,7 @@ Defined in: [lib/undici.ts:733](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
18945
18945
|
|
|
18946
18946
|
> `optional` **keep?**: `boolean`
|
|
18947
18947
|
|
|
18948
|
-
Defined in: [lib/undici.ts:
|
|
18948
|
+
Defined in: [lib/undici.ts:768](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L768)
|
|
18949
18949
|
|
|
18950
18950
|
连接是否保持长连接(即是否允许复用),默认为 true
|
|
18951
18951
|
|
|
@@ -18955,7 +18955,7 @@ Defined in: [lib/undici.ts:746](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
18955
18955
|
|
|
18956
18956
|
> `optional` **local?**: `string`
|
|
18957
18957
|
|
|
18958
|
-
Defined in: [lib/undici.ts:
|
|
18958
|
+
Defined in: [lib/undici.ts:757](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L757)
|
|
18959
18959
|
|
|
18960
18960
|
***
|
|
18961
18961
|
|
|
@@ -18963,7 +18963,7 @@ Defined in: [lib/undici.ts:735](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
18963
18963
|
|
|
18964
18964
|
> `optional` **log?**: `boolean`
|
|
18965
18965
|
|
|
18966
|
-
Defined in: [lib/undici.ts:
|
|
18966
|
+
Defined in: [lib/undici.ts:774](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L774)
|
|
18967
18967
|
|
|
18968
18968
|
若有异常写入文件日志,默认为 true
|
|
18969
18969
|
|
|
@@ -18973,7 +18973,7 @@ Defined in: [lib/undici.ts:752](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
18973
18973
|
|
|
18974
18974
|
> `optional` **method?**: `"GET"` \| `"POST"` \| `"PUT"` \| `"DELETE"` \| `"OPTIONS"`
|
|
18975
18975
|
|
|
18976
|
-
Defined in: [lib/undici.ts:
|
|
18976
|
+
Defined in: [lib/undici.ts:748](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L748)
|
|
18977
18977
|
|
|
18978
18978
|
***
|
|
18979
18979
|
|
|
@@ -18981,7 +18981,7 @@ Defined in: [lib/undici.ts:726](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
18981
18981
|
|
|
18982
18982
|
> `optional` **mproxy?**: `object`
|
|
18983
18983
|
|
|
18984
|
-
Defined in: [lib/undici.ts:
|
|
18984
|
+
Defined in: [lib/undici.ts:760](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L760)
|
|
18985
18985
|
|
|
18986
18986
|
正向 mproxy 代理,url 如 https://xxx/abc
|
|
18987
18987
|
|
|
@@ -19009,7 +19009,7 @@ Defined in: [lib/undici.ts:738](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
19009
19009
|
|
|
19010
19010
|
> `optional` **reuse?**: `string` \| `Agent` \| `ProxyAgent`
|
|
19011
19011
|
|
|
19012
|
-
Defined in: [lib/undici.ts:
|
|
19012
|
+
Defined in: [lib/undici.ts:770](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L770)
|
|
19013
19013
|
|
|
19014
19014
|
复用池名/Agent,默认为 default
|
|
19015
19015
|
|
|
@@ -19019,7 +19019,7 @@ Defined in: [lib/undici.ts:748](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
19019
19019
|
|
|
19020
19020
|
> `optional` **save?**: `string`
|
|
19021
19021
|
|
|
19022
|
-
Defined in: [lib/undici.ts:
|
|
19022
|
+
Defined in: [lib/undici.ts:756](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L756)
|
|
19023
19023
|
|
|
19024
19024
|
***
|
|
19025
19025
|
|
|
@@ -19027,7 +19027,7 @@ Defined in: [lib/undici.ts:734](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
19027
19027
|
|
|
19028
19028
|
> `optional` **signal?**: `AbortSignal`
|
|
19029
19029
|
|
|
19030
|
-
Defined in: [lib/undici.ts:
|
|
19030
|
+
Defined in: [lib/undici.ts:776](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L776)
|
|
19031
19031
|
|
|
19032
19032
|
请求中止信号
|
|
19033
19033
|
|
|
@@ -19037,7 +19037,7 @@ Defined in: [lib/undici.ts:754](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
19037
19037
|
|
|
19038
19038
|
> `optional` **timeout?**: `number`
|
|
19039
19039
|
|
|
19040
|
-
Defined in: [lib/undici.ts:
|
|
19040
|
+
Defined in: [lib/undici.ts:751](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L751)
|
|
19041
19041
|
|
|
19042
19042
|
秒数,默认 300 秒
|
|
19043
19043
|
|
|
@@ -19047,7 +19047,7 @@ Defined in: [lib/undici.ts:729](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
19047
19047
|
|
|
19048
19048
|
> `optional` **type?**: `"form"` \| `"json"`
|
|
19049
19049
|
|
|
19050
|
-
Defined in: [lib/undici.ts:
|
|
19050
|
+
Defined in: [lib/undici.ts:749](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L749)
|
|
19051
19051
|
|
|
19052
19052
|
lib/undici/interfaces/IRproxyOptions.md
|
|
19053
19053
|
---
|
|
@@ -19060,7 +19060,7 @@ lib/undici/interfaces/IRproxyOptions.md
|
|
|
19060
19060
|
|
|
19061
19061
|
# Interface: IRproxyOptions
|
|
19062
19062
|
|
|
19063
|
-
Defined in: [lib/undici.ts:
|
|
19063
|
+
Defined in: [lib/undici.ts:795](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L795)
|
|
19064
19064
|
|
|
19065
19065
|
反向代理请求的传入参数选项
|
|
19066
19066
|
|
|
@@ -19070,7 +19070,7 @@ Defined in: [lib/undici.ts:773](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
19070
19070
|
|
|
19071
19071
|
> `optional` **body?**: `string` \| `Buffer`\<`ArrayBufferLike`\> \| `Readable`
|
|
19072
19072
|
|
|
19073
|
-
Defined in: [lib/undici.ts:
|
|
19073
|
+
Defined in: [lib/undici.ts:814](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L814)
|
|
19074
19074
|
|
|
19075
19075
|
手动传入请求体(优先于原始 req 流),用于 req 流已消费后仍需转发 body 的场景
|
|
19076
19076
|
|
|
@@ -19080,7 +19080,7 @@ Defined in: [lib/undici.ts:792](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
19080
19080
|
|
|
19081
19081
|
> `optional` **filter?**: (`h`) => `boolean`
|
|
19082
19082
|
|
|
19083
|
-
Defined in: [lib/undici.ts:
|
|
19083
|
+
Defined in: [lib/undici.ts:804](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L804)
|
|
19084
19084
|
|
|
19085
19085
|
过滤 header,返回 true 则留下
|
|
19086
19086
|
|
|
@@ -19100,7 +19100,7 @@ Defined in: [lib/undici.ts:782](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
19100
19100
|
|
|
19101
19101
|
> `optional` **follow?**: `number`
|
|
19102
19102
|
|
|
19103
|
-
Defined in: [lib/undici.ts:
|
|
19103
|
+
Defined in: [lib/undici.ts:798](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L798)
|
|
19104
19104
|
|
|
19105
19105
|
***
|
|
19106
19106
|
|
|
@@ -19108,7 +19108,7 @@ Defined in: [lib/undici.ts:776](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
19108
19108
|
|
|
19109
19109
|
> `optional` **headers?**: [`THttpHeaders`](../type-aliases/THttpHeaders.md)
|
|
19110
19110
|
|
|
19111
|
-
Defined in: [lib/undici.ts:
|
|
19111
|
+
Defined in: [lib/undici.ts:802](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L802)
|
|
19112
19112
|
|
|
19113
19113
|
***
|
|
19114
19114
|
|
|
@@ -19116,7 +19116,7 @@ Defined in: [lib/undici.ts:780](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
19116
19116
|
|
|
19117
19117
|
> `optional` **hosts?**: `string` \| `Record`\<`string`, `string`\>
|
|
19118
19118
|
|
|
19119
|
-
Defined in: [lib/undici.ts:
|
|
19119
|
+
Defined in: [lib/undici.ts:800](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L800)
|
|
19120
19120
|
|
|
19121
19121
|
自定义 host 映射,如 {'www.maiyun.net': '127.0.0.1'},或全部映射到一个 host
|
|
19122
19122
|
|
|
@@ -19126,7 +19126,7 @@ Defined in: [lib/undici.ts:778](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
19126
19126
|
|
|
19127
19127
|
> `optional` **local?**: `string`
|
|
19128
19128
|
|
|
19129
|
-
Defined in: [lib/undici.ts:
|
|
19129
|
+
Defined in: [lib/undici.ts:801](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L801)
|
|
19130
19130
|
|
|
19131
19131
|
***
|
|
19132
19132
|
|
|
@@ -19134,7 +19134,7 @@ Defined in: [lib/undici.ts:779](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
19134
19134
|
|
|
19135
19135
|
> `optional` **mproxy?**: `object`
|
|
19136
19136
|
|
|
19137
|
-
Defined in: [lib/undici.ts:
|
|
19137
|
+
Defined in: [lib/undici.ts:806](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L806)
|
|
19138
19138
|
|
|
19139
19139
|
正向 mproxy 代理,url 如 https://xxx/abc
|
|
19140
19140
|
|
|
@@ -19162,7 +19162,7 @@ Defined in: [lib/undici.ts:784](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
19162
19162
|
|
|
19163
19163
|
> `optional` **querys?**: `Record`\<`string`, `any`\>
|
|
19164
19164
|
|
|
19165
|
-
Defined in: [lib/undici.ts:
|
|
19165
|
+
Defined in: [lib/undici.ts:816](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L816)
|
|
19166
19166
|
|
|
19167
19167
|
自定义 GET 查询参数,传入后直接替换代理目标 URL 的整个 query string
|
|
19168
19168
|
|
|
@@ -19172,7 +19172,7 @@ Defined in: [lib/undici.ts:794](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
19172
19172
|
|
|
19173
19173
|
> `optional` **reuse?**: `string` \| `Agent` \| `ProxyAgent`
|
|
19174
19174
|
|
|
19175
|
-
Defined in: [lib/undici.ts:
|
|
19175
|
+
Defined in: [lib/undici.ts:818](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L818)
|
|
19176
19176
|
|
|
19177
19177
|
默认为 default
|
|
19178
19178
|
|
|
@@ -19182,7 +19182,7 @@ Defined in: [lib/undici.ts:796](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
19182
19182
|
|
|
19183
19183
|
> `optional` **timeout?**: `number`
|
|
19184
19184
|
|
|
19185
|
-
Defined in: [lib/undici.ts:
|
|
19185
|
+
Defined in: [lib/undici.ts:797](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L797)
|
|
19186
19186
|
|
|
19187
19187
|
秒数,默认 300 秒
|
|
19188
19188
|
|
|
@@ -19671,7 +19671,7 @@ lib/undici/type-aliases/THttpHeaders.md
|
|
|
19671
19671
|
|
|
19672
19672
|
> **THttpHeaders** = `http.IncomingHttpHeaders` & `object`
|
|
19673
19673
|
|
|
19674
|
-
Defined in: [lib/undici.ts:
|
|
19674
|
+
Defined in: [lib/undici.ts:823](https://github.com/maiyunnet/kebab/blob/master/lib/undici.ts#L823)
|
|
19675
19675
|
|
|
19676
19676
|
http headers
|
|
19677
19677
|
|
|
@@ -21414,7 +21414,7 @@ lib/zip/interfaces/IZipInputByType.md
|
|
|
21414
21414
|
|
|
21415
21415
|
# Interface: IZipInputByType
|
|
21416
21416
|
|
|
21417
|
-
Defined in: [lib/zip.ts:
|
|
21417
|
+
Defined in: [lib/zip.ts:477](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L477)
|
|
21418
21418
|
|
|
21419
21419
|
## Properties
|
|
21420
21420
|
|
|
@@ -21422,7 +21422,7 @@ Defined in: [lib/zip.ts:475](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21422
21422
|
|
|
21423
21423
|
> **array**: `number`[]
|
|
21424
21424
|
|
|
21425
|
-
Defined in: [lib/zip.ts:
|
|
21425
|
+
Defined in: [lib/zip.ts:482](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L482)
|
|
21426
21426
|
|
|
21427
21427
|
***
|
|
21428
21428
|
|
|
@@ -21430,7 +21430,7 @@ Defined in: [lib/zip.ts:480](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21430
21430
|
|
|
21431
21431
|
> **arraybuffer**: `ArrayBuffer`
|
|
21432
21432
|
|
|
21433
|
-
Defined in: [lib/zip.ts:
|
|
21433
|
+
Defined in: [lib/zip.ts:484](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L484)
|
|
21434
21434
|
|
|
21435
21435
|
***
|
|
21436
21436
|
|
|
@@ -21438,7 +21438,7 @@ Defined in: [lib/zip.ts:482](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21438
21438
|
|
|
21439
21439
|
> **base64**: `string`
|
|
21440
21440
|
|
|
21441
|
-
Defined in: [lib/zip.ts:
|
|
21441
|
+
Defined in: [lib/zip.ts:478](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L478)
|
|
21442
21442
|
|
|
21443
21443
|
***
|
|
21444
21444
|
|
|
@@ -21446,7 +21446,7 @@ Defined in: [lib/zip.ts:476](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21446
21446
|
|
|
21447
21447
|
> **binarystring**: `string`
|
|
21448
21448
|
|
|
21449
|
-
Defined in: [lib/zip.ts:
|
|
21449
|
+
Defined in: [lib/zip.ts:481](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L481)
|
|
21450
21450
|
|
|
21451
21451
|
***
|
|
21452
21452
|
|
|
@@ -21454,7 +21454,7 @@ Defined in: [lib/zip.ts:479](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21454
21454
|
|
|
21455
21455
|
> **blob**: `Blob`
|
|
21456
21456
|
|
|
21457
|
-
Defined in: [lib/zip.ts:
|
|
21457
|
+
Defined in: [lib/zip.ts:485](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L485)
|
|
21458
21458
|
|
|
21459
21459
|
***
|
|
21460
21460
|
|
|
@@ -21462,7 +21462,7 @@ Defined in: [lib/zip.ts:483](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21462
21462
|
|
|
21463
21463
|
> **nodebuffer**: `Buffer`
|
|
21464
21464
|
|
|
21465
|
-
Defined in: [lib/zip.ts:
|
|
21465
|
+
Defined in: [lib/zip.ts:486](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L486)
|
|
21466
21466
|
|
|
21467
21467
|
***
|
|
21468
21468
|
|
|
@@ -21470,7 +21470,7 @@ Defined in: [lib/zip.ts:484](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21470
21470
|
|
|
21471
21471
|
> **string**: `string`
|
|
21472
21472
|
|
|
21473
|
-
Defined in: [lib/zip.ts:
|
|
21473
|
+
Defined in: [lib/zip.ts:479](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L479)
|
|
21474
21474
|
|
|
21475
21475
|
***
|
|
21476
21476
|
|
|
@@ -21478,7 +21478,7 @@ Defined in: [lib/zip.ts:477](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21478
21478
|
|
|
21479
21479
|
> **text**: `string`
|
|
21480
21480
|
|
|
21481
|
-
Defined in: [lib/zip.ts:
|
|
21481
|
+
Defined in: [lib/zip.ts:480](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L480)
|
|
21482
21482
|
|
|
21483
21483
|
***
|
|
21484
21484
|
|
|
@@ -21486,7 +21486,7 @@ Defined in: [lib/zip.ts:478](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21486
21486
|
|
|
21487
21487
|
> **uint8array**: `Uint8Array`
|
|
21488
21488
|
|
|
21489
|
-
Defined in: [lib/zip.ts:
|
|
21489
|
+
Defined in: [lib/zip.ts:483](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L483)
|
|
21490
21490
|
|
|
21491
21491
|
lib/zip/interfaces/IZipItem.md
|
|
21492
21492
|
---
|
|
@@ -21507,7 +21507,7 @@ Defined in: [lib/zip.ts:443](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21507
21507
|
|
|
21508
21508
|
> **compressedSize**: `number`
|
|
21509
21509
|
|
|
21510
|
-
Defined in: [lib/zip.ts:
|
|
21510
|
+
Defined in: [lib/zip.ts:446](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L446)
|
|
21511
21511
|
|
|
21512
21512
|
***
|
|
21513
21513
|
|
|
@@ -21515,7 +21515,7 @@ Defined in: [lib/zip.ts:445](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21515
21515
|
|
|
21516
21516
|
> **date**: `Date`
|
|
21517
21517
|
|
|
21518
|
-
Defined in: [lib/zip.ts:
|
|
21518
|
+
Defined in: [lib/zip.ts:448](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L448)
|
|
21519
21519
|
|
|
21520
21520
|
***
|
|
21521
21521
|
|
|
@@ -21523,7 +21523,7 @@ Defined in: [lib/zip.ts:447](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21523
21523
|
|
|
21524
21524
|
> **isDirectory**: `boolean`
|
|
21525
21525
|
|
|
21526
|
-
Defined in: [lib/zip.ts:
|
|
21526
|
+
Defined in: [lib/zip.ts:450](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L450)
|
|
21527
21527
|
|
|
21528
21528
|
***
|
|
21529
21529
|
|
|
@@ -21531,7 +21531,7 @@ Defined in: [lib/zip.ts:449](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21531
21531
|
|
|
21532
21532
|
> **isFile**: `boolean`
|
|
21533
21533
|
|
|
21534
|
-
Defined in: [lib/zip.ts:
|
|
21534
|
+
Defined in: [lib/zip.ts:449](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L449)
|
|
21535
21535
|
|
|
21536
21536
|
***
|
|
21537
21537
|
|
|
@@ -21539,7 +21539,9 @@ Defined in: [lib/zip.ts:448](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21539
21539
|
|
|
21540
21540
|
> **name**: `string`
|
|
21541
21541
|
|
|
21542
|
-
Defined in: [lib/zip.ts:
|
|
21542
|
+
Defined in: [lib/zip.ts:445](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L445)
|
|
21543
|
+
|
|
21544
|
+
文件/目录名(不含路径,不含前后斜杠)
|
|
21543
21545
|
|
|
21544
21546
|
***
|
|
21545
21547
|
|
|
@@ -21547,7 +21549,9 @@ Defined in: [lib/zip.ts:444](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21547
21549
|
|
|
21548
21550
|
> **path**: `string`
|
|
21549
21551
|
|
|
21550
|
-
Defined in: [lib/zip.ts:
|
|
21552
|
+
Defined in: [lib/zip.ts:452](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L452)
|
|
21553
|
+
|
|
21554
|
+
父目录路径(以 / 开头和结尾,如 /stc/ 或根目录 /),完整路径 = path + name
|
|
21551
21555
|
|
|
21552
21556
|
***
|
|
21553
21557
|
|
|
@@ -21555,7 +21559,7 @@ Defined in: [lib/zip.ts:450](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21555
21559
|
|
|
21556
21560
|
> **uncompressedSize**: `number`
|
|
21557
21561
|
|
|
21558
|
-
Defined in: [lib/zip.ts:
|
|
21562
|
+
Defined in: [lib/zip.ts:447](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L447)
|
|
21559
21563
|
|
|
21560
21564
|
lib/zip/interfaces/IZipMetadata.md
|
|
21561
21565
|
---
|
|
@@ -21568,7 +21572,7 @@ lib/zip/interfaces/IZipMetadata.md
|
|
|
21568
21572
|
|
|
21569
21573
|
# Interface: IZipMetadata
|
|
21570
21574
|
|
|
21571
|
-
Defined in: [lib/zip.ts:
|
|
21575
|
+
Defined in: [lib/zip.ts:493](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L493)
|
|
21572
21576
|
|
|
21573
21577
|
## Properties
|
|
21574
21578
|
|
|
@@ -21576,7 +21580,7 @@ Defined in: [lib/zip.ts:491](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21576
21580
|
|
|
21577
21581
|
> **currentFile**: `string` \| `null`
|
|
21578
21582
|
|
|
21579
|
-
Defined in: [lib/zip.ts:
|
|
21583
|
+
Defined in: [lib/zip.ts:495](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L495)
|
|
21580
21584
|
|
|
21581
21585
|
***
|
|
21582
21586
|
|
|
@@ -21584,7 +21588,7 @@ Defined in: [lib/zip.ts:493](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21584
21588
|
|
|
21585
21589
|
> **percent**: `number`
|
|
21586
21590
|
|
|
21587
|
-
Defined in: [lib/zip.ts:
|
|
21591
|
+
Defined in: [lib/zip.ts:494](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L494)
|
|
21588
21592
|
|
|
21589
21593
|
lib/zip/interfaces/IZipOutputByType.md
|
|
21590
21594
|
---
|
|
@@ -21597,7 +21601,7 @@ lib/zip/interfaces/IZipOutputByType.md
|
|
|
21597
21601
|
|
|
21598
21602
|
# Interface: IZipOutputByType
|
|
21599
21603
|
|
|
21600
|
-
Defined in: [lib/zip.ts:
|
|
21604
|
+
Defined in: [lib/zip.ts:463](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L463)
|
|
21601
21605
|
|
|
21602
21606
|
## Properties
|
|
21603
21607
|
|
|
@@ -21605,7 +21609,7 @@ Defined in: [lib/zip.ts:461](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21605
21609
|
|
|
21606
21610
|
> **array**: `number`[]
|
|
21607
21611
|
|
|
21608
|
-
Defined in: [lib/zip.ts:
|
|
21612
|
+
Defined in: [lib/zip.ts:468](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L468)
|
|
21609
21613
|
|
|
21610
21614
|
***
|
|
21611
21615
|
|
|
@@ -21613,7 +21617,7 @@ Defined in: [lib/zip.ts:466](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21613
21617
|
|
|
21614
21618
|
> **arraybuffer**: `ArrayBuffer`
|
|
21615
21619
|
|
|
21616
|
-
Defined in: [lib/zip.ts:
|
|
21620
|
+
Defined in: [lib/zip.ts:470](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L470)
|
|
21617
21621
|
|
|
21618
21622
|
***
|
|
21619
21623
|
|
|
@@ -21621,7 +21625,7 @@ Defined in: [lib/zip.ts:468](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21621
21625
|
|
|
21622
21626
|
> **base64**: `string`
|
|
21623
21627
|
|
|
21624
|
-
Defined in: [lib/zip.ts:
|
|
21628
|
+
Defined in: [lib/zip.ts:464](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L464)
|
|
21625
21629
|
|
|
21626
21630
|
***
|
|
21627
21631
|
|
|
@@ -21629,7 +21633,7 @@ Defined in: [lib/zip.ts:462](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21629
21633
|
|
|
21630
21634
|
> **binarystring**: `string`
|
|
21631
21635
|
|
|
21632
|
-
Defined in: [lib/zip.ts:
|
|
21636
|
+
Defined in: [lib/zip.ts:467](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L467)
|
|
21633
21637
|
|
|
21634
21638
|
***
|
|
21635
21639
|
|
|
@@ -21637,7 +21641,7 @@ Defined in: [lib/zip.ts:465](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21637
21641
|
|
|
21638
21642
|
> **blob**: `Blob`
|
|
21639
21643
|
|
|
21640
|
-
Defined in: [lib/zip.ts:
|
|
21644
|
+
Defined in: [lib/zip.ts:471](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L471)
|
|
21641
21645
|
|
|
21642
21646
|
***
|
|
21643
21647
|
|
|
@@ -21645,7 +21649,7 @@ Defined in: [lib/zip.ts:469](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21645
21649
|
|
|
21646
21650
|
> **nodebuffer**: `Buffer`
|
|
21647
21651
|
|
|
21648
|
-
Defined in: [lib/zip.ts:
|
|
21652
|
+
Defined in: [lib/zip.ts:472](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L472)
|
|
21649
21653
|
|
|
21650
21654
|
***
|
|
21651
21655
|
|
|
@@ -21653,7 +21657,7 @@ Defined in: [lib/zip.ts:470](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21653
21657
|
|
|
21654
21658
|
> **string**: `string`
|
|
21655
21659
|
|
|
21656
|
-
Defined in: [lib/zip.ts:
|
|
21660
|
+
Defined in: [lib/zip.ts:465](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L465)
|
|
21657
21661
|
|
|
21658
21662
|
***
|
|
21659
21663
|
|
|
@@ -21661,7 +21665,7 @@ Defined in: [lib/zip.ts:463](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21661
21665
|
|
|
21662
21666
|
> **text**: `string`
|
|
21663
21667
|
|
|
21664
|
-
Defined in: [lib/zip.ts:
|
|
21668
|
+
Defined in: [lib/zip.ts:466](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L466)
|
|
21665
21669
|
|
|
21666
21670
|
***
|
|
21667
21671
|
|
|
@@ -21669,7 +21673,7 @@ Defined in: [lib/zip.ts:464](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21669
21673
|
|
|
21670
21674
|
> **uint8array**: `Uint8Array`
|
|
21671
21675
|
|
|
21672
|
-
Defined in: [lib/zip.ts:
|
|
21676
|
+
Defined in: [lib/zip.ts:469](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L469)
|
|
21673
21677
|
|
|
21674
21678
|
lib/zip/interfaces/IZipStats.md
|
|
21675
21679
|
---
|
|
@@ -21682,7 +21686,7 @@ lib/zip/interfaces/IZipStats.md
|
|
|
21682
21686
|
|
|
21683
21687
|
# Interface: IZipStats
|
|
21684
21688
|
|
|
21685
|
-
Defined in: [lib/zip.ts:
|
|
21689
|
+
Defined in: [lib/zip.ts:455](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L455)
|
|
21686
21690
|
|
|
21687
21691
|
## Properties
|
|
21688
21692
|
|
|
@@ -21690,7 +21694,7 @@ Defined in: [lib/zip.ts:453](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21690
21694
|
|
|
21691
21695
|
> **compressedSize**: `number`
|
|
21692
21696
|
|
|
21693
|
-
Defined in: [lib/zip.ts:
|
|
21697
|
+
Defined in: [lib/zip.ts:456](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L456)
|
|
21694
21698
|
|
|
21695
21699
|
***
|
|
21696
21700
|
|
|
@@ -21698,7 +21702,7 @@ Defined in: [lib/zip.ts:454](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21698
21702
|
|
|
21699
21703
|
> **date**: `Date`
|
|
21700
21704
|
|
|
21701
|
-
Defined in: [lib/zip.ts:
|
|
21705
|
+
Defined in: [lib/zip.ts:458](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L458)
|
|
21702
21706
|
|
|
21703
21707
|
***
|
|
21704
21708
|
|
|
@@ -21706,7 +21710,7 @@ Defined in: [lib/zip.ts:456](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21706
21710
|
|
|
21707
21711
|
> **isDirectory**: `boolean`
|
|
21708
21712
|
|
|
21709
|
-
Defined in: [lib/zip.ts:
|
|
21713
|
+
Defined in: [lib/zip.ts:460](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L460)
|
|
21710
21714
|
|
|
21711
21715
|
***
|
|
21712
21716
|
|
|
@@ -21714,7 +21718,7 @@ Defined in: [lib/zip.ts:458](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21714
21718
|
|
|
21715
21719
|
> **isFile**: `boolean`
|
|
21716
21720
|
|
|
21717
|
-
Defined in: [lib/zip.ts:
|
|
21721
|
+
Defined in: [lib/zip.ts:459](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L459)
|
|
21718
21722
|
|
|
21719
21723
|
***
|
|
21720
21724
|
|
|
@@ -21722,7 +21726,7 @@ Defined in: [lib/zip.ts:457](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
21722
21726
|
|
|
21723
21727
|
> **uncompressedSize**: `number`
|
|
21724
21728
|
|
|
21725
|
-
Defined in: [lib/zip.ts:
|
|
21729
|
+
Defined in: [lib/zip.ts:457](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L457)
|
|
21726
21730
|
|
|
21727
21731
|
lib/zip/type-aliases/TZipInputFileFormat.md
|
|
21728
21732
|
---
|
|
@@ -21737,7 +21741,7 @@ lib/zip/type-aliases/TZipInputFileFormat.md
|
|
|
21737
21741
|
|
|
21738
21742
|
> **TZipInputFileFormat** = [`IZipInputByType`](../interfaces/IZipInputByType.md)\[keyof [`IZipInputByType`](../interfaces/IZipInputByType.md)\]
|
|
21739
21743
|
|
|
21740
|
-
Defined in: [lib/zip.ts:
|
|
21744
|
+
Defined in: [lib/zip.ts:491](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L491)
|
|
21741
21745
|
|
|
21742
21746
|
lib/zip/type-aliases/TZipInputType.md
|
|
21743
21747
|
---
|
|
@@ -21752,7 +21756,7 @@ lib/zip/type-aliases/TZipInputType.md
|
|
|
21752
21756
|
|
|
21753
21757
|
> **TZipInputType** = keyof [`IZipInputByType`](../interfaces/IZipInputByType.md)
|
|
21754
21758
|
|
|
21755
|
-
Defined in: [lib/zip.ts:
|
|
21759
|
+
Defined in: [lib/zip.ts:489](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L489)
|
|
21756
21760
|
|
|
21757
21761
|
lib/zip/type-aliases/TZipOutputType.md
|
|
21758
21762
|
---
|
|
@@ -21767,7 +21771,7 @@ lib/zip/type-aliases/TZipOutputType.md
|
|
|
21767
21771
|
|
|
21768
21772
|
> **TZipOutputType** = keyof [`IZipOutputByType`](../interfaces/IZipOutputByType.md)
|
|
21769
21773
|
|
|
21770
|
-
Defined in: [lib/zip.ts:
|
|
21774
|
+
Defined in: [lib/zip.ts:475](https://github.com/maiyunnet/kebab/blob/master/lib/zip.ts#L475)
|
|
21771
21775
|
|
|
21772
21776
|
lib/zlib/functions/brotliCompress.md
|
|
21773
21777
|
---
|
|
@@ -22795,19 +22799,19 @@ Defined in: [sys/ctr.ts:978](https://github.com/maiyunnet/kebab/blob/master/sys/
|
|
|
22795
22799
|
|
|
22796
22800
|
`string`
|
|
22797
22801
|
|
|
22798
|
-
|
|
22802
|
+
允许的请求头,默认 '*'
|
|
22799
22803
|
|
|
22800
22804
|
###### methods?
|
|
22801
22805
|
|
|
22802
22806
|
`string`
|
|
22803
22807
|
|
|
22804
|
-
|
|
22808
|
+
允许的方法,默认 '*'
|
|
22805
22809
|
|
|
22806
22810
|
###### origins?
|
|
22807
22811
|
|
|
22808
22812
|
`string`[]
|
|
22809
22813
|
|
|
22810
|
-
|
|
22814
|
+
允许的来源列表,默认 '*'
|
|
22811
22815
|
|
|
22812
22816
|
#### Returns
|
|
22813
22817
|
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* --- 本文件用来定义每个目录实体地址的常量 ---
|
|
7
7
|
*/
|
|
8
8
|
/** --- 当前系统版本号 --- */
|
|
9
|
-
export const VER = '9.13.
|
|
9
|
+
export const VER = '9.13.1';
|
|
10
10
|
// --- 服务端用的路径 ---
|
|
11
11
|
const imu = decodeURIComponent(import.meta.url).replace('file://', '').replace(/^\/(\w:)/, '$1');
|
|
12
12
|
/** --- /xxx/xxx --- */
|
package/lib/undici/response.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare class Response {
|
|
|
31
31
|
/**
|
|
32
32
|
* --- 获取响应读取流对象 ---
|
|
33
33
|
*/
|
|
34
|
-
getStream(): (import("undici/types/readable").default & undici.Dispatcher.BodyMixin) |
|
|
34
|
+
getStream(): zlib.BrotliDecompress | zlib.Gunzip | zlib.Inflate | (import("undici/types/readable").default & undici.Dispatcher.BodyMixin) | null;
|
|
35
35
|
/**
|
|
36
36
|
* --- 获取原生响应读取流对象 ---
|
|
37
37
|
*/
|
package/lib/undici.js
CHANGED
|
@@ -472,6 +472,8 @@ const proxyContinueHeaders = [
|
|
|
472
472
|
*/
|
|
473
473
|
export function filterHeaders(headers, res, filter) {
|
|
474
474
|
const heads = {};
|
|
475
|
+
// --- HTTP/2 下响应已发送则跳过 setHeader,避免 ERR_HTTP2_HEADERS_SENT ---
|
|
476
|
+
const sent = res ? res.headersSent : false;
|
|
475
477
|
for (const h in headers) {
|
|
476
478
|
if (proxyContinueHeaders.includes(h)) {
|
|
477
479
|
continue;
|
|
@@ -487,7 +489,9 @@ export function filterHeaders(headers, res, filter) {
|
|
|
487
489
|
continue;
|
|
488
490
|
}
|
|
489
491
|
if (res) {
|
|
490
|
-
|
|
492
|
+
if (!sent) {
|
|
493
|
+
res.setHeader(h, v);
|
|
494
|
+
}
|
|
491
495
|
continue;
|
|
492
496
|
}
|
|
493
497
|
heads[h] = v;
|
|
@@ -534,15 +538,24 @@ export async function mproxy(ctr, auth, opt = {}) {
|
|
|
534
538
|
if (rres.error) {
|
|
535
539
|
return -2;
|
|
536
540
|
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
541
|
+
// --- HTTP/2 下响应可能已被客户端取消,跳过头部设置避免崩溃 ---
|
|
542
|
+
if (!res.headersSent) {
|
|
543
|
+
if (rres.headers) {
|
|
544
|
+
filterHeaders(rres.headers, res, opt.filter);
|
|
545
|
+
}
|
|
546
|
+
lCore.writeHead(res, rres.headers?.['http-code'] ?? 200);
|
|
547
|
+
await new Promise(resolve => {
|
|
548
|
+
// --- 上游流出错时主动销毁响应流,避免连接挂起 ---
|
|
549
|
+
stream.on('error', (err) => {
|
|
550
|
+
lCore.log({}, `[UNDICI][MPROXY] upstream stream error: ${err.message}`, '-neterror');
|
|
551
|
+
res.destroy();
|
|
552
|
+
});
|
|
553
|
+
// --- 同时监听 close 确保 promise 一定会 resolve(客户端断连等场景) ---
|
|
554
|
+
stream.pipe(res).on('close', () => {
|
|
555
|
+
resolve();
|
|
556
|
+
});
|
|
544
557
|
});
|
|
545
|
-
}
|
|
558
|
+
}
|
|
546
559
|
return 1;
|
|
547
560
|
}
|
|
548
561
|
/**
|
|
@@ -618,29 +631,38 @@ export async function rproxy(ctr, route, opt = {}) {
|
|
|
618
631
|
if (rres.error) {
|
|
619
632
|
return false;
|
|
620
633
|
}
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
}
|
|
631
|
-
lCore.writeHead(res, rres.headers?.['http-code'] ?? 200);
|
|
632
|
-
await new Promise((resolve) => {
|
|
634
|
+
// --- HTTP/2 下响应可能已被客户端取消,跳过头部设置避免崩溃 ---
|
|
635
|
+
if (!res.headersSent) {
|
|
636
|
+
if (rres.headers) {
|
|
637
|
+
filterHeaders(rres.headers, res, opt.filter);
|
|
638
|
+
}
|
|
639
|
+
/** --- 上游已压缩则不再压缩,避免双重压缩导致乱码 --- */
|
|
640
|
+
const upstreamEncoded = !!(rres.headers?.['content-encoding']);
|
|
641
|
+
/** --- 当前的压缩对象 --- */
|
|
642
|
+
const compress = upstreamEncoded ? null : lZlib.createCompress(req.headers['accept-encoding'] ?? '');
|
|
633
643
|
if (compress) {
|
|
634
|
-
|
|
635
|
-
resolve();
|
|
636
|
-
});
|
|
644
|
+
res.setHeader('content-encoding', compress.type);
|
|
637
645
|
}
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
646
|
+
lCore.writeHead(res, rres.headers?.['http-code'] ?? 200);
|
|
647
|
+
await new Promise((resolve) => {
|
|
648
|
+
// --- 上游流出错时主动销毁响应流,避免连接挂起 ---
|
|
649
|
+
stream.on('error', (err) => {
|
|
650
|
+
lCore.log({}, `[UNDICI][RPROXY] upstream stream error: ${err.message}`, '-neterror');
|
|
651
|
+
res.destroy();
|
|
641
652
|
});
|
|
642
|
-
|
|
643
|
-
|
|
653
|
+
// --- 同时监听 close 确保 promise 一定会 resolve(客户端断连等场景) ---
|
|
654
|
+
if (compress) {
|
|
655
|
+
stream.pipe(compress.compress).pipe(res).on('close', () => {
|
|
656
|
+
resolve();
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
else {
|
|
660
|
+
stream.pipe(res).on('close', () => {
|
|
661
|
+
resolve();
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
}
|
|
644
666
|
return true;
|
|
645
667
|
}
|
|
646
668
|
return false;
|
package/lib/zip.d.ts
CHANGED
|
@@ -90,12 +90,14 @@ export declare class Zip {
|
|
|
90
90
|
*/
|
|
91
91
|
export declare function get(data?: TZipInputFileFormat): Promise<Zip | null>;
|
|
92
92
|
export interface IZipItem {
|
|
93
|
+
/** --- 文件/目录名(不含路径,不含前后斜杠) --- */
|
|
93
94
|
'name': string;
|
|
94
95
|
'compressedSize': number;
|
|
95
96
|
'uncompressedSize': number;
|
|
96
97
|
'date': Date;
|
|
97
98
|
'isFile': boolean;
|
|
98
99
|
'isDirectory': boolean;
|
|
100
|
+
/** --- 父目录路径(以 / 开头和结尾,如 /stc/ 或根目录 /),完整路径 = path + name --- */
|
|
99
101
|
'path': string;
|
|
100
102
|
}
|
|
101
103
|
export interface IZipStats {
|
package/package.json
CHANGED
package/sys/ctr.d.ts
CHANGED
|
@@ -283,11 +283,11 @@ export declare class Ctr {
|
|
|
283
283
|
* 返回 true 接续执行,返回 false 需要中断用户本次访问(options 请求)
|
|
284
284
|
*/
|
|
285
285
|
protected _cross(opt?: {
|
|
286
|
-
/** ---
|
|
286
|
+
/** --- 允许的来源列表,默认 '*' --- */
|
|
287
287
|
'origins'?: string[];
|
|
288
|
-
/** ---
|
|
288
|
+
/** --- 允许的请求头,默认 '*' --- */
|
|
289
289
|
'headers'?: string;
|
|
290
|
-
/** ---
|
|
290
|
+
/** --- 允许的方法,默认 '*' --- */
|
|
291
291
|
'methods'?: string;
|
|
292
292
|
/** --- 是否允许发送凭据(cookie),默认 false --- */
|
|
293
293
|
'credentials'?: boolean;
|