@faasjs/http 8.0.0-beta.5 → 8.0.0-beta.6
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/README.md +1 -0
- package/dist/index.d.ts +17 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ npm install @faasjs/http
|
|
|
28
28
|
- [HttpConfig](type-aliases/HttpConfig.md)
|
|
29
29
|
- [HttpFuncHandler](type-aliases/HttpFuncHandler.md)
|
|
30
30
|
- [Response](type-aliases/Response.md)
|
|
31
|
+
- [SessionContent](type-aliases/SessionContent.md)
|
|
31
32
|
- [SessionOptions](type-aliases/SessionOptions.md)
|
|
32
33
|
|
|
33
34
|
## Variables
|
package/dist/index.d.ts
CHANGED
|
@@ -160,5 +160,21 @@ type HttpFuncHandler<TParams extends Record<string, any> = Record<string, any>,
|
|
|
160
160
|
cookie?: Cookie<TCookie, TSession>;
|
|
161
161
|
session?: Session<TSession, TCookie>;
|
|
162
162
|
}) => Promise<TResult>;
|
|
163
|
+
declare module '@faasjs/func' {
|
|
164
|
+
interface FaasPluginEventMap {
|
|
165
|
+
http: {
|
|
166
|
+
headers?: Record<string, any>;
|
|
167
|
+
body?: any;
|
|
168
|
+
params?: Record<string, any>;
|
|
169
|
+
queryString?: Record<string, any>;
|
|
170
|
+
httpMethod?: string;
|
|
171
|
+
path?: string;
|
|
172
|
+
raw?: {
|
|
173
|
+
request?: unknown;
|
|
174
|
+
response?: unknown;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
}
|
|
163
179
|
|
|
164
|
-
export { ContentType, Cookie, type CookieOptions, Http, type HttpConfig, HttpError, type HttpFuncHandler, type Response, Session, type SessionOptions, useHttp };
|
|
180
|
+
export { ContentType, Cookie, type CookieOptions, Http, type HttpConfig, HttpError, type HttpFuncHandler, type Response, Session, type SessionContent, type SessionOptions, useHttp };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/http",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-beta.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@faasjs/func": ">=
|
|
34
|
-
"@faasjs/logger": ">=
|
|
33
|
+
"@faasjs/func": ">=8.0.0-beta.6",
|
|
34
|
+
"@faasjs/logger": ">=8.0.0-beta.6"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@faasjs/func": ">=
|
|
38
|
-
"@faasjs/logger": ">=
|
|
37
|
+
"@faasjs/func": ">=8.0.0-beta.6",
|
|
38
|
+
"@faasjs/logger": ">=8.0.0-beta.6"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=24.0.0",
|