@tsed/platform-serverless 7.0.0-beta.7 → 7.0.0-rc.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/coverage.json +6 -0
- package/jest.config.js +1 -6
- package/lib/cjs/builder/PlatformServerless.js +8 -9
- package/lib/cjs/builder/PlatformServerless.js.map +1 -1
- package/lib/cjs/builder/PlatformServerlessHandler.js +7 -7
- package/lib/cjs/builder/PlatformServerlessHandler.js.map +1 -1
- package/lib/cjs/domain/ServerlessContext.js +10 -3
- package/lib/cjs/domain/ServerlessContext.js.map +1 -1
- package/lib/cjs/domain/ServerlessRequest.js +21 -12
- package/lib/cjs/domain/ServerlessRequest.js.map +1 -1
- package/lib/cjs/domain/ServerlessResponse.js +33 -32
- package/lib/cjs/domain/ServerlessResponse.js.map +1 -1
- package/lib/cjs/utils/getRequestId.js +2 -3
- package/lib/cjs/utils/getRequestId.js.map +1 -1
- package/lib/cjs/utils/setResponseHeaders.js +1 -1
- package/lib/cjs/utils/setResponseHeaders.js.map +1 -1
- package/lib/esm/builder/PlatformServerless.js +9 -10
- package/lib/esm/builder/PlatformServerless.js.map +1 -1
- package/lib/esm/builder/PlatformServerlessHandler.js +7 -7
- package/lib/esm/builder/PlatformServerlessHandler.js.map +1 -1
- package/lib/esm/domain/ServerlessContext.js +10 -3
- package/lib/esm/domain/ServerlessContext.js.map +1 -1
- package/lib/esm/domain/ServerlessRequest.js +21 -12
- package/lib/esm/domain/ServerlessRequest.js.map +1 -1
- package/lib/esm/domain/ServerlessResponse.js +33 -33
- package/lib/esm/domain/ServerlessResponse.js.map +1 -1
- package/lib/esm/utils/getRequestId.js +2 -3
- package/lib/esm/utils/getRequestId.js.map +1 -1
- package/lib/esm/utils/setResponseHeaders.js +1 -1
- package/lib/esm/utils/setResponseHeaders.js.map +1 -1
- package/lib/types/builder/PlatformServerless.d.ts +2 -2
- package/lib/types/builder/PlatformServerlessHandler.d.ts +1 -1
- package/lib/types/domain/ServerlessContext.d.ts +1 -0
- package/lib/types/domain/ServerlessRequest.d.ts +6 -8
- package/lib/types/domain/ServerlessResponse.d.ts +6 -11
- package/package.json +21 -14
- package/readme.md +3 -2
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ServerlessRequest } from "./ServerlessRequest";
|
|
3
|
-
export interface ServerlessResponseOptions {
|
|
4
|
-
event: APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>;
|
|
5
|
-
context: Context;
|
|
6
|
-
request: ServerlessRequest;
|
|
7
|
-
}
|
|
1
|
+
import { ServerlessContext } from "./ServerlessContext";
|
|
8
2
|
export declare type HeaderValue = boolean | number | string;
|
|
9
3
|
/**
|
|
10
4
|
* @platform
|
|
11
5
|
*/
|
|
12
6
|
export declare class ServerlessResponse {
|
|
13
7
|
#private;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
protected $ctx: ServerlessContext;
|
|
9
|
+
constructor($ctx: ServerlessContext);
|
|
10
|
+
get event(): import("aws-lambda").APIGatewayProxyEventBase<import("aws-lambda").APIGatewayEventDefaultAuthorizerContext>;
|
|
11
|
+
get raw(): import("aws-lambda").APIGatewayProxyEventBase<import("aws-lambda").APIGatewayEventDefaultAuthorizerContext>;
|
|
12
|
+
get request(): import("./ServerlessRequest").ServerlessRequest;
|
|
17
13
|
/**
|
|
18
14
|
* Get the current statusCode
|
|
19
15
|
*/
|
|
@@ -100,6 +96,5 @@ export declare class ServerlessResponse {
|
|
|
100
96
|
body(body: any): this;
|
|
101
97
|
getBody(): any;
|
|
102
98
|
isDone(): boolean;
|
|
103
|
-
onEnd(cb: Function): this;
|
|
104
99
|
destroy(): void;
|
|
105
100
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/platform-serverless",
|
|
3
|
-
"version": "7.0.0-
|
|
3
|
+
"version": "7.0.0-rc.1",
|
|
4
4
|
"description": "Platform serverless module for Ts.ED Framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -21,26 +21,27 @@
|
|
|
21
21
|
"test": "cross-env NODE_ENV=test jest"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tsed/core": "7.0.0-
|
|
25
|
-
"@tsed/exceptions": "7.0.0-
|
|
26
|
-
"@tsed/json-mapper": "7.0.0-
|
|
27
|
-
"@tsed/platform-exceptions": "7.0.0-
|
|
28
|
-
"@tsed/platform-params": "7.0.0-
|
|
29
|
-
"@tsed/schema": "7.0.0-
|
|
24
|
+
"@tsed/core": "7.0.0-rc.1",
|
|
25
|
+
"@tsed/exceptions": "7.0.0-rc.1",
|
|
26
|
+
"@tsed/json-mapper": "7.0.0-rc.1",
|
|
27
|
+
"@tsed/platform-exceptions": "7.0.0-rc.1",
|
|
28
|
+
"@tsed/platform-params": "7.0.0-rc.1",
|
|
29
|
+
"@tsed/schema": "7.0.0-rc.1",
|
|
30
30
|
"encodeurl": "^1.0.2",
|
|
31
31
|
"mime": "^2.5.2",
|
|
32
|
-
"tslib": "2.
|
|
32
|
+
"tslib": "2.4.0",
|
|
33
33
|
"uuid": "^8.3.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@tsed/platform-serverless-testing": "7.0.0-
|
|
36
|
+
"@tsed/platform-serverless-testing": "7.0.0-rc.1",
|
|
37
37
|
"@types/aws-lambda": "^8.10.83",
|
|
38
38
|
"@types/encodeurl": "^1.0.0",
|
|
39
|
-
"@types/mime": "^2.0.3"
|
|
39
|
+
"@types/mime": "^2.0.3",
|
|
40
|
+
"find-my-way": "^7.0.0"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
42
|
-
"@tsed/di": "^7.0.0-
|
|
43
|
-
"@tsed/logger": ">=6.
|
|
43
|
+
"@tsed/di": "^7.0.0-rc.1",
|
|
44
|
+
"@tsed/logger": ">=6.2.0"
|
|
44
45
|
},
|
|
45
46
|
"peerDependenciesMeta": {
|
|
46
47
|
"@tsed/di": {
|
|
@@ -48,13 +49,19 @@
|
|
|
48
49
|
},
|
|
49
50
|
"@tsed/logger": {
|
|
50
51
|
"optional": false
|
|
52
|
+
},
|
|
53
|
+
"find-my-way": {
|
|
54
|
+
"optional": true
|
|
51
55
|
}
|
|
52
56
|
},
|
|
53
57
|
"repository": "https://github.com/tsedio/tsed",
|
|
54
58
|
"bugs": {
|
|
55
59
|
"url": "https://github.com/tsedio/tsed/issues"
|
|
56
60
|
},
|
|
57
|
-
"homepage": "https://github.com/tsedio/tsed/tree/
|
|
61
|
+
"homepage": "https://github.com/tsedio/tsed/tree/rc/packages/platform/platform-serverless",
|
|
58
62
|
"author": "Romain Lenzotti",
|
|
59
|
-
"license": "MIT"
|
|
63
|
+
"license": "MIT",
|
|
64
|
+
"publishConfig": {
|
|
65
|
+
"tag": "rc"
|
|
66
|
+
}
|
|
60
67
|
}
|
package/readme.md
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
[](https://badge.fury.io/js/%40tsed%2Fcommon)
|
|
12
12
|
[](https://github.com/semantic-release/semantic-release)
|
|
13
13
|
[](https://github.com/prettier/prettier)
|
|
14
|
-
[](https://github.com/sponsors/romakita)
|
|
15
|
+
[](https://opencollective.com/tsed)
|
|
15
16
|
|
|
16
17
|
</div>
|
|
17
18
|
|
|
@@ -422,7 +423,7 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
|
|
|
422
423
|
|
|
423
424
|
The MIT License (MIT)
|
|
424
425
|
|
|
425
|
-
Copyright (c) 2016 -
|
|
426
|
+
Copyright (c) 2016 - 2022 Romain Lenzotti
|
|
426
427
|
|
|
427
428
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
428
429
|
|