@faapi/faapi 0.0.0-canary.0f443f9 → 0.0.0-canary.4ab8d97
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/dist/cli/index.js +3 -31
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +0 -8
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -99,14 +99,6 @@ interface FaapiContext {
|
|
|
99
99
|
headers: Headers;
|
|
100
100
|
method: string;
|
|
101
101
|
path: string;
|
|
102
|
-
/**
|
|
103
|
-
* 客户端 IP
|
|
104
|
-
*
|
|
105
|
-
* 优先 `x-forwarded-for` 第一个 IP(反向代理场景),回退到 socket.remoteAddress。
|
|
106
|
-
* IPv6 形式 `::ffff:1.2.3.4` 会被规整为 IPv4 形式 `1.2.3.4`。
|
|
107
|
-
* 无法获取时为空字符串。
|
|
108
|
-
*/
|
|
109
|
-
ip: string;
|
|
110
102
|
/** 解析后的所有 cookie 键值对 */
|
|
111
103
|
cookies: Record<string, string>;
|
|
112
104
|
/** 配置文件中的自定义业务配置(类型可通过 declare module '@faapi/faapi' 增强 FaapiContextConfig) */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faapi/faapi",
|
|
3
|
-
"version": "0.0.0-canary.
|
|
3
|
+
"version": "0.0.0-canary.4ab8d97",
|
|
4
4
|
"description": "函数即接口 - Function as API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"tsx": "^4.19.0",
|
|
36
36
|
"tsup": "^8.4.0",
|
|
37
37
|
"vitest": "^3.1.0",
|
|
38
|
-
"@faapi/schema": "0.0.0-canary.
|
|
38
|
+
"@faapi/schema": "0.0.0-canary.4ab8d97"
|
|
39
39
|
},
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"repository": {
|