@kravc/dos 1.11.14 → 1.11.16
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/package.json +2 -2
- package/src/index.d.ts +18 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kravc/dos",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.16",
|
|
4
4
|
"description": "Convention-based, easy-to-use library for building API-driven serverless services.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Service",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"author": "Alexander Kravets <a@kra.vc>",
|
|
26
26
|
"license": "ISC",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@kravc/schema": "^2.7.
|
|
28
|
+
"@kravc/schema": "^2.7.5",
|
|
29
29
|
"cookie": "^1.0.1",
|
|
30
30
|
"js-yaml": "^4.1.0",
|
|
31
31
|
"jsonwebtoken": "^9.0.2",
|
package/src/index.d.ts
CHANGED
|
@@ -222,13 +222,27 @@ interface ISpec {
|
|
|
222
222
|
paths: Record<string, unknown>;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
interface
|
|
225
|
+
interface HttpRequest {
|
|
226
226
|
url: string;
|
|
227
|
+
path?: string;
|
|
227
228
|
body?: string | Record<string, unknown>;
|
|
228
229
|
method: string;
|
|
229
|
-
headers
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
headers?: Headers;
|
|
231
|
+
requestContext?: {
|
|
232
|
+
requestId?: string;
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
interface SystemRequest {
|
|
237
|
+
body?: string | Record<string, unknown>;
|
|
238
|
+
operationId: string;
|
|
239
|
+
queryStringParameters?: Record<string, unknown>;
|
|
240
|
+
requestContext?: {
|
|
241
|
+
requestId?: string;
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
type IRequest = HttpRequest | SystemRequest;
|
|
232
246
|
|
|
233
247
|
interface IResponse {
|
|
234
248
|
body?: string,
|