@maiyunnet/kebab 9.14.2 → 9.14.3

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 CHANGED
@@ -1360,7 +1360,7 @@ index/variables/VER.md
1360
1360
 
1361
1361
  # Variable: VER
1362
1362
 
1363
- > `const` **VER**: `"9.14.2"` = `'9.14.2'`
1363
+ > `const` **VER**: `"9.14.3"` = `'9.14.3'`
1364
1364
 
1365
1365
  Defined in: [index.ts:10](https://github.com/maiyunnet/kebab/blob/master/index.ts#L10)
1366
1366
 
@@ -3350,7 +3350,7 @@ lib/core/functions/clone.md
3350
3350
 
3351
3351
  > **clone**\<`T`\>(`obj`): `T`
3352
3352
 
3353
- Defined in: [lib/core.ts:1333](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1333)
3353
+ Defined in: [lib/core.ts:1335](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1335)
3354
3354
 
3355
3355
  完整的克隆一份数组/对象
3356
3356
 
@@ -3414,7 +3414,7 @@ lib/core/functions/debug.md
3414
3414
 
3415
3415
  > **debug**(`message?`, ...`optionalParams`): `void`
3416
3416
 
3417
- Defined in: [lib/core.ts:1367](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1367)
3417
+ Defined in: [lib/core.ts:1369](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1369)
3418
3418
 
3419
3419
  打印调试信息,线上环境不会打印
3420
3420
 
@@ -3449,7 +3449,7 @@ lib/core/functions/display.md
3449
3449
 
3450
3450
  > **display**(`message?`, ...`optionalParams`): `void`
3451
3451
 
3452
- Defined in: [lib/core.ts:1380](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1380)
3452
+ Defined in: [lib/core.ts:1382](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1382)
3453
3453
 
3454
3454
  向控制台直接显示内容,一般情况下禁止使用
3455
3455
 
@@ -3484,7 +3484,7 @@ lib/core/functions/emptyObject.md
3484
3484
 
3485
3485
  > **emptyObject**(`obj`, `deep?`): `void`
3486
3486
 
3487
- Defined in: [lib/core.ts:615](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L615)
3487
+ Defined in: [lib/core.ts:617](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L617)
3488
3488
 
3489
3489
  将对象的所有属性清除包括键,不会破坏引用关系,对象变量依然保证是引用状态
3490
3490
 
@@ -3519,7 +3519,7 @@ lib/core/functions/exec.md
3519
3519
 
3520
3520
  > **exec**(`command`, `options?`): `Promise`\<`string` \| `false`\>
3521
3521
 
3522
- Defined in: [lib/core.ts:677](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L677)
3522
+ Defined in: [lib/core.ts:679](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L679)
3523
3523
 
3524
3524
  执行命令行
3525
3525
 
@@ -3554,7 +3554,7 @@ lib/core/functions/getLog.md
3554
3554
 
3555
3555
  > **getLog**(`opt`): `Promise`\<`false` \| \{ `list`: `any`[] \| `string`[][]; `total`: `number`; \}\>
3556
3556
 
3557
- Defined in: [lib/core.ts:1245](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1245)
3557
+ Defined in: [lib/core.ts:1247](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1247)
3558
3558
 
3559
3559
  获取日志内容为一个数组
3560
3560
 
@@ -3623,7 +3623,7 @@ lib/core/functions/ipLimit.md
3623
3623
 
3624
3624
  > **ipLimit**(`ip`, `mask?`): `string`
3625
3625
 
3626
- Defined in: [lib/core.ts:443](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L443)
3626
+ Defined in: [lib/core.ts:445](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L445)
3627
3627
 
3628
3628
  截取 IP 的限速段
3629
3629
  IPv4 原样返回;IPv6 截取前 mask 位(默认 /64),防止同一人使用大量 IPv6 地址绕过限速
@@ -3727,7 +3727,7 @@ lib/core/functions/loadEnv.md
3727
3727
 
3728
3728
  > **loadEnv**(`dir`): `Promise`\<`void`\>
3729
3729
 
3730
- Defined in: [lib/core.ts:1432](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1432)
3730
+ Defined in: [lib/core.ts:1434](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1434)
3731
3731
 
3732
3732
  加载 .env 文件到 process.env,若文件不存在则跳过
3733
3733
 
@@ -3756,7 +3756,7 @@ lib/core/functions/log.md
3756
3756
 
3757
3757
  > **log**(`opt`, `msg`, `fend?`): `void`
3758
3758
 
3759
- Defined in: [lib/core.ts:1132](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1132)
3759
+ Defined in: [lib/core.ts:1134](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1134)
3760
3760
 
3761
3761
  写入文件日志
3762
3762
 
@@ -3797,7 +3797,7 @@ lib/core/functions/ls.md
3797
3797
 
3798
3798
  > **ls**(`opt`): `Promise`\<`object`[]\>
3799
3799
 
3800
- Defined in: [lib/core.ts:1294](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1294)
3800
+ Defined in: [lib/core.ts:1296](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1296)
3801
3801
 
3802
3802
  获取目录内文件/文件夹列表
3803
3803
 
@@ -3903,7 +3903,7 @@ lib/core/functions/objectSort.md
3903
3903
 
3904
3904
  > **objectSort**\<`T`\>(`o`): `T`
3905
3905
 
3906
- Defined in: [lib/core.ts:596](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L596)
3906
+ Defined in: [lib/core.ts:598](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L598)
3907
3907
 
3908
3908
  将对象进行升序排列
3909
3909
 
@@ -3938,7 +3938,7 @@ lib/core/functions/passThroughAppend.md
3938
3938
 
3939
3939
  > **passThroughAppend**(`passThrough`, `data`, `end?`): `Promise`\<`void`\>
3940
3940
 
3941
- Defined in: [lib/core.ts:634](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L634)
3941
+ Defined in: [lib/core.ts:636](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L636)
3942
3942
 
3943
3943
  调用前自行创建 passThrough,并且调用 pipe 绑定到应该绑定的对象,然后再调用本函数
3944
3944
 
@@ -4090,7 +4090,7 @@ lib/core/functions/realIPLimit.md
4090
4090
 
4091
4091
  > **realIPLimit**(`ctr`, `name?`, `mask?`): `string`
4092
4092
 
4093
- Defined in: [lib/core.ts:463](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L463)
4093
+ Defined in: [lib/core.ts:465](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L465)
4094
4094
 
4095
4095
  获取安全 IP 的限速段(用于 ratelimit 库的 key)
4096
4096
  IPv4 原样返回;IPv6 截取前 mask 位(默认 /64)
@@ -4134,7 +4134,7 @@ lib/core/functions/realIP.md
4134
4134
 
4135
4135
  > **realIP**(`ctr`, `name?`): `string`
4136
4136
 
4137
- Defined in: [lib/core.ts:424](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L424)
4137
+ Defined in: [lib/core.ts:426](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L426)
4138
4138
 
4139
4139
  获取直连 IP(安全 IP)
4140
4140
 
@@ -4167,7 +4167,7 @@ lib/core/functions/removeGlobal.md
4167
4167
 
4168
4168
  > **removeGlobal**(`key`, `hosts?`): `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
4169
4169
 
4170
- Defined in: [lib/core.ts:949](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L949)
4170
+ Defined in: [lib/core.ts:951](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L951)
4171
4171
 
4172
4172
  移除某个跨线程/跨内网服务器全局变量
4173
4173
 
@@ -4202,7 +4202,7 @@ lib/core/functions/resolveEnvVars.md
4202
4202
 
4203
4203
  > **resolveEnvVars**(`obj`): `void`
4204
4204
 
4205
- Defined in: [lib/core.ts:1462](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1462)
4205
+ Defined in: [lib/core.ts:1464](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1464)
4206
4206
 
4207
4207
  将配置对象中的 ${ENV_VAR} 占位符替换为 process.env 的值
4208
4208
 
@@ -4231,7 +4231,7 @@ lib/core/functions/sendNpm.md
4231
4231
 
4232
4232
  > **sendNpm**(`path`, `hosts?`): `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
4233
4233
 
4234
- Defined in: [lib/core.ts:848](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L848)
4234
+ Defined in: [lib/core.ts:850](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L850)
4235
4235
 
4236
4236
  向本机或局域网 RPC 发送 npm install 操作
4237
4237
 
@@ -4266,7 +4266,7 @@ lib/core/functions/sendPackage.md
4266
4266
 
4267
4267
  > **sendPackage**(`content`, `hosts?`): `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
4268
4268
 
4269
- Defined in: [lib/core.ts:1072](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1072)
4269
+ Defined in: [lib/core.ts:1074](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1074)
4270
4270
 
4271
4271
  向本机或局域网 RPC 发送 package.json 更新操作
4272
4272
 
@@ -4301,7 +4301,7 @@ lib/core/functions/sendPm2.md
4301
4301
 
4302
4302
  > **sendPm2**(`name`, `action?`, `hosts?`): `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
4303
4303
 
4304
- Defined in: [lib/core.ts:800](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L800)
4304
+ Defined in: [lib/core.ts:802](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L802)
4305
4305
 
4306
4306
  向本机或局域网 RPC 发送 PM2 操作
4307
4307
 
@@ -4342,7 +4342,7 @@ lib/core/functions/sendProject.md
4342
4342
 
4343
4343
  > **sendProject**(`path`, `key`, `value`, `hosts?`): `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
4344
4344
 
4345
- Defined in: [lib/core.ts:1024](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1024)
4345
+ Defined in: [lib/core.ts:1026](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1026)
4346
4346
 
4347
4347
  向本机或局域网 RPC 发送项目配置更新操作
4348
4348
 
@@ -4389,7 +4389,7 @@ lib/core/functions/sendReload.md
4389
4389
 
4390
4390
  > **sendReload**(`hosts?`): `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
4391
4391
 
4392
- Defined in: [lib/core.ts:697](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L697)
4392
+ Defined in: [lib/core.ts:699](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L699)
4393
4393
 
4394
4394
  向主进程(或局域网同代码机子)发送广播将进行 reload 操作,等待回传
4395
4395
  主要作用除代码热更新以外的其他情况
@@ -4417,7 +4417,7 @@ lib/core/functions/sendRestart.md
4417
4417
 
4418
4418
  > **sendRestart**(`hosts?`): `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
4419
4419
 
4420
- Defined in: [lib/core.ts:746](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L746)
4420
+ Defined in: [lib/core.ts:748](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L748)
4421
4421
 
4422
4422
  向主进程(或局域网同代码机子)发送广播将进行 restart 操作,停止监听并启动新进程,老进程在连接全部断开后自行销毁
4423
4423
  主要用作不间断的代码热更新
@@ -4492,7 +4492,7 @@ lib/core/functions/setGlobal.md
4492
4492
 
4493
4493
  > **setGlobal**(`key`, `data`, `hosts?`): `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
4494
4494
 
4495
- Defined in: [lib/core.ts:899](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L899)
4495
+ Defined in: [lib/core.ts:901](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L901)
4496
4496
 
4497
4497
  设置跨线程/指定的局域网主机的全局变量
4498
4498
 
@@ -4533,7 +4533,7 @@ lib/core/functions/sleep.md
4533
4533
 
4534
4534
  > **sleep**(`ms`): `Promise`\<`void`\>
4535
4535
 
4536
- Defined in: [lib/core.ts:584](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L584)
4536
+ Defined in: [lib/core.ts:586](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L586)
4537
4537
 
4538
4538
  间隔一段时间
4539
4539
 
@@ -4591,7 +4591,7 @@ lib/core/functions/updateCode.md
4591
4591
 
4592
4592
  > **updateCode**(`sourcePath`, `path`, `hosts?`, `config?`, `strict?`): `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
4593
4593
 
4594
- Defined in: [lib/core.ts:964](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L964)
4594
+ Defined in: [lib/core.ts:966](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L966)
4595
4595
 
4596
4596
  上传并覆盖代码文件,config.json、kebab.json、.js.map、.ts, .gitignore 不会被覆盖和新创建
4597
4597
 
@@ -4644,7 +4644,7 @@ lib/core/functions/writeEventStreamHead.md
4644
4644
 
4645
4645
  > **writeEventStreamHead**(`res`): `void`
4646
4646
 
4647
- Defined in: [lib/core.ts:1402](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1402)
4647
+ Defined in: [lib/core.ts:1404](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1404)
4648
4648
 
4649
4649
  ## Parameters
4650
4650
 
@@ -4669,7 +4669,7 @@ lib/core/functions/writeHead.md
4669
4669
 
4670
4670
  > **writeHead**(`res`, `statusCode`, `headers?`): `void`
4671
4671
 
4672
- Defined in: [lib/core.ts:1391](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1391)
4672
+ Defined in: [lib/core.ts:1393](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1393)
4673
4673
 
4674
4674
  让 res 发送头部(前提是头部没有被发送才能调用本方法
4675
4675
 
@@ -4710,7 +4710,7 @@ lib/core/functions/write.md
4710
4710
 
4711
4711
  > **write**(`res`, `data`): `void`
4712
4712
 
4713
- Defined in: [lib/core.ts:1414](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1414)
4713
+ Defined in: [lib/core.ts:1416](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1416)
4714
4714
 
4715
4715
  向 res 发送数据
4716
4716
 
@@ -4766,6 +4766,7 @@ lib/core/index.md
4766
4766
  - [RANDOM\_UN](variables/RANDOM_UN.md)
4767
4767
  - [RANDOM\_V](variables/RANDOM_V.md)
4768
4768
  - [REAL\_IP\_CF](variables/REAL_IP_CF.md)
4769
+ - [REAL\_IP\_EO](variables/REAL_IP_EO.md)
4769
4770
  - [REAL\_IP\_X](variables/REAL_IP_X.md)
4770
4771
 
4771
4772
  ## Functions
@@ -4884,7 +4885,7 @@ lib/core/interfaces/ILogOptions.md
4884
4885
 
4885
4886
  # Interface: ILogOptions
4886
4887
 
4887
- Defined in: [lib/core.ts:1115](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1115)
4888
+ Defined in: [lib/core.ts:1117](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1117)
4888
4889
 
4889
4890
  log 设置的选项
4890
4891
 
@@ -4894,7 +4895,7 @@ log 设置的选项
4894
4895
 
4895
4896
  > `optional` **cookie?**: `Record`\<`string`, `string`\>
4896
4897
 
4897
- Defined in: [lib/core.ts:1121](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1121)
4898
+ Defined in: [lib/core.ts:1123](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1123)
4898
4899
 
4899
4900
  ***
4900
4901
 
@@ -4902,7 +4903,7 @@ Defined in: [lib/core.ts:1121](https://github.com/maiyunnet/kebab/blob/master/li
4902
4903
 
4903
4904
  > `optional` **get?**: `Record`\<`string`, `any`\>
4904
4905
 
4905
- Defined in: [lib/core.ts:1120](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1120)
4906
+ Defined in: [lib/core.ts:1122](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1122)
4906
4907
 
4907
4908
  ***
4908
4909
 
@@ -4910,7 +4911,7 @@ Defined in: [lib/core.ts:1120](https://github.com/maiyunnet/kebab/blob/master/li
4910
4911
 
4911
4912
  > `optional` **headers?**: `IncomingHttpHeaders`
4912
4913
 
4913
- Defined in: [lib/core.ts:1123](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1123)
4914
+ Defined in: [lib/core.ts:1125](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1125)
4914
4915
 
4915
4916
  ***
4916
4917
 
@@ -4918,7 +4919,7 @@ Defined in: [lib/core.ts:1123](https://github.com/maiyunnet/kebab/blob/master/li
4918
4919
 
4919
4920
  > `optional` **hostname?**: `string`
4920
4921
 
4921
- Defined in: [lib/core.ts:1118](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1118)
4922
+ Defined in: [lib/core.ts:1120](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1120)
4922
4923
 
4923
4924
  ***
4924
4925
 
@@ -4926,7 +4927,7 @@ Defined in: [lib/core.ts:1118](https://github.com/maiyunnet/kebab/blob/master/li
4926
4927
 
4927
4928
  > `optional` **path?**: `string`
4928
4929
 
4929
- Defined in: [lib/core.ts:1116](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1116)
4930
+ Defined in: [lib/core.ts:1118](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1118)
4930
4931
 
4931
4932
  ***
4932
4933
 
@@ -4934,7 +4935,7 @@ Defined in: [lib/core.ts:1116](https://github.com/maiyunnet/kebab/blob/master/li
4934
4935
 
4935
4936
  > `optional` **req?**: `IncomingMessage` \| `Http2ServerRequest` \| `null`
4936
4937
 
4937
- Defined in: [lib/core.ts:1119](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1119)
4938
+ Defined in: [lib/core.ts:1121](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1121)
4938
4939
 
4939
4940
  ***
4940
4941
 
@@ -4942,7 +4943,7 @@ Defined in: [lib/core.ts:1119](https://github.com/maiyunnet/kebab/blob/master/li
4942
4943
 
4943
4944
  > `optional` **session?**: `Record`\<`string`, `any`\>
4944
4945
 
4945
- Defined in: [lib/core.ts:1122](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1122)
4946
+ Defined in: [lib/core.ts:1124](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1124)
4946
4947
 
4947
4948
  ***
4948
4949
 
@@ -4950,7 +4951,7 @@ Defined in: [lib/core.ts:1122](https://github.com/maiyunnet/kebab/blob/master/li
4950
4951
 
4951
4952
  > `optional` **urlFull?**: `string`
4952
4953
 
4953
- Defined in: [lib/core.ts:1117](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1117)
4954
+ Defined in: [lib/core.ts:1119](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1119)
4954
4955
 
4955
4956
  lib/core/type-aliases/TPm2Action.md
4956
4957
  ---
@@ -4965,7 +4966,7 @@ lib/core/type-aliases/TPm2Action.md
4965
4966
 
4966
4967
  > **TPm2Action** = `"start"` \| `"stop"` \| `"restart"`
4967
4968
 
4968
- Defined in: [lib/core.ts:792](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L792)
4969
+ Defined in: [lib/core.ts:794](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L794)
4969
4970
 
4970
4971
  PM2 操作类型
4971
4972
 
@@ -5039,7 +5040,7 @@ lib/core/variables/global.md
5039
5040
 
5040
5041
  > `const` **global**: `Record`\<`string`, `any`\> = `{}`
5041
5042
 
5042
- Defined in: [lib/core.ts:891](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L891)
5043
+ Defined in: [lib/core.ts:893](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L893)
5043
5044
 
5044
5045
  跨进程全局变量
5045
5046
 
@@ -5213,6 +5214,23 @@ Defined in: [lib/core.ts:400](https://github.com/maiyunnet/kebab/blob/master/lib
5213
5214
 
5214
5215
  使用的是 Cloudflare
5215
5216
 
5217
+ lib/core/variables/REAL_IP_EO.md
5218
+ ---
5219
+
5220
+ [**Documents for @maiyunnet/kebab**](../../../index.md)
5221
+
5222
+ ***
5223
+
5224
+ [Documents for @maiyunnet/kebab](../../../index.md) / [lib/core](../index.md) / REAL\_IP\_EO
5225
+
5226
+ # Variable: REAL\_IP\_EO
5227
+
5228
+ > `const` **REAL\_IP\_EO**: `"eo-connecting-ip"` = `'eo-connecting-ip'`
5229
+
5230
+ Defined in: [lib/core.ts:402](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L402)
5231
+
5232
+ 使用的是 EO
5233
+
5216
5234
  lib/core/variables/REAL_IP_X.md
5217
5235
  ---
5218
5236
 
package/index.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * --- 本文件用来定义每个目录实体地址的常量 ---
6
6
  */
7
7
  /** --- 当前系统版本号 --- */
8
- export declare const VER = "9.14.2";
8
+ export declare const VER = "9.14.3";
9
9
  /** --- 框架根目录,以 / 结尾 --- */
10
10
  export declare const ROOT_PATH: string;
11
11
  /** --- 框架的 LIB,以 / 结尾 --- */
package/index.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * --- 本文件用来定义每个目录实体地址的常量 ---
7
7
  */
8
8
  /** --- 当前系统版本号 --- */
9
- export const VER = '9.14.2';
9
+ export const VER = '9.14.3';
10
10
  // --- 服务端用的路径 ---
11
11
  const imu = decodeURIComponent(import.meta.url).replace('file://', '').replace(/^\/(\w:)/, '$1');
12
12
  /** --- /xxx/xxx --- */
package/lib/core.d.ts CHANGED
@@ -127,6 +127,8 @@ export declare function ips(ctr: sCtr.Ctr | http.IncomingHttpHeaders): {
127
127
  export declare const REAL_IP_X = "x-forwarded-for";
128
128
  /** --- 使用的是 Cloudflare --- */
129
129
  export declare const REAL_IP_CF = "cf-connecting-ip";
130
+ /** --- 使用的是 EO --- */
131
+ export declare const REAL_IP_EO = "eo-connecting-ip";
130
132
  /**
131
133
  * --- 获取直连 IP(安全 IP) ---
132
134
  * @param ctr
package/lib/core.js CHANGED
@@ -337,6 +337,8 @@ export function ips(ctr) {
337
337
  export const REAL_IP_X = 'x-forwarded-for';
338
338
  /** --- 使用的是 Cloudflare --- */
339
339
  export const REAL_IP_CF = 'cf-connecting-ip';
340
+ /** --- 使用的是 EO --- */
341
+ export const REAL_IP_EO = 'eo-connecting-ip';
340
342
  /**
341
343
  * --- 规范化 IP 地址 ---
342
344
  * --- 将 IPv4-mapped IPv6(如 ::ffff:127.0.0.1)转换为纯 IPv4,原生 IPv6 保持不变 ---
@@ -31,7 +31,7 @@ export declare class Response {
31
31
  /**
32
32
  * --- 获取响应读取流对象 ---
33
33
  */
34
- getStream(): (import("undici/types/readable").default & undici.Dispatcher.BodyMixin) | zlib.Gunzip | zlib.Inflate | zlib.BrotliDecompress | null;
34
+ getStream(): zlib.BrotliDecompress | zlib.Gunzip | zlib.Inflate | (import("undici/types/readable").default & undici.Dispatcher.BodyMixin) | null;
35
35
  /**
36
36
  * --- 获取原生响应读取流对象 ---
37
37
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maiyunnet/kebab",
3
- "version": "9.14.2",
3
+ "version": "9.14.3",
4
4
  "description": "Simple, easy-to-use, and fully-featured Node.js framework that is ready-to-use out of the box.",
5
5
  "type": "module",
6
6
  "keywords": [