@stone-js/aws-lambda-http-adapter 0.8.0 → 0.8.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/README.md +10 -10
- package/dist/browser/decorators/AwsLambdaHttp.d.ts +1 -1
- package/dist/browser.js +1 -1
- package/dist/event-normalizer.d.ts +1 -1
- package/package.json +21 -22
package/README.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# Stone.js - AWS Lambda HTTP Adapter
|
|
2
2
|
|
|
3
|
-
[](https://opensource.org/licenses/MIT)
|
|
4
|
-
[](https://www.npmjs.com/package/@stone-js/aws-lambda-http-adapter)
|
|
5
|
-
[](https://www.npmjs.com/package/@stone-js/aws-lambda-http-adapter)
|
|
3
|
+
[](https://opensource.org/licenses/MIT)
|
|
4
|
+
[](https://www.npmjs.com/package/@stone-js/aws-lambda-http-adapter)
|
|
5
|
+
[](https://www.npmjs.com/package/@stone-js/aws-lambda-http-adapter)
|
|
6
6
|

|
|
7
|
-
[](
|
|
12
|
-
[](https://github.com/stone-foundation/stone-js-
|
|
7
|
+
[](https://github.com/stone-foundation/stone-js-framework/actions/workflows/ci.yml)
|
|
8
|
+
[](https://github.com/stone-foundation/stone-js-framework/actions/workflows/release.yml)
|
|
9
|
+
[](https://sonarcloud.io/summary/new_code?id=stone-foundation_stone-js-framework)
|
|
10
|
+
[](https://sonarcloud.io/summary/new_code?id=stone-foundation_stone-js-framework)
|
|
11
|
+
[](https://github.com/stone-foundation/stone-js-framework/blob/main/SECURITY.md)
|
|
12
|
+
[](https://github.com/stone-foundation/stone-js-framework/security/code-scanning)
|
|
13
|
+
[](https://github.com/stone-foundation/stone-js-framework/network/updates)
|
|
14
14
|
[](https://conventionalcommits.org)
|
|
15
15
|
|
|
16
16
|
The **AWS Lambda HTTP Adapter** allows your Stone.js application to run as a fully event-driven Lambda function behind API Gateway or any Lambda-compatible HTTP environment. It seamlessly transforms API Gateway events into `IncomingEvent` and returns `OutgoingResponse`, adhering to the Continuum Architecture.
|
|
@@ -18,7 +18,7 @@ export interface AwsLambdaHttpOptions extends Partial<AwsLambdaHttpAdapterAdapte
|
|
|
18
18
|
* where the Node.js HTTP adapter is applicable.
|
|
19
19
|
*
|
|
20
20
|
* @template T - The type of the class being decorated. Defaults to `ClassType`.
|
|
21
|
-
* @param
|
|
21
|
+
* @param _options - Optional configuration to customize the AWS Lambda HTTP Adapter.
|
|
22
22
|
*
|
|
23
23
|
* @returns A class decorator that applies the AWS Lambda HTTP adapter configuration.
|
|
24
24
|
*
|
package/dist/browser.js
CHANGED
|
@@ -31,7 +31,7 @@ class AwsLambdaHttpAdapterError extends IntegrationError {
|
|
|
31
31
|
* where the Node.js HTTP adapter is applicable.
|
|
32
32
|
*
|
|
33
33
|
* @template T - The type of the class being decorated. Defaults to `ClassType`.
|
|
34
|
-
* @param
|
|
34
|
+
* @param _options - Optional configuration to customize the AWS Lambda HTTP Adapter.
|
|
35
35
|
*
|
|
36
36
|
* @returns A class decorator that applies the AWS Lambda HTTP adapter configuration.
|
|
37
37
|
*
|
|
@@ -107,4 +107,4 @@ export declare function normalizeHttpEvent(event: AwsLambdaHttpEvent): Normalize
|
|
|
107
107
|
* @param event - The raw Lambda event.
|
|
108
108
|
* @returns The raw body as a Buffer, string, the original value, or undefined.
|
|
109
109
|
*/
|
|
110
|
-
export declare function getRawBody(event: AwsLambdaHttpEvent):
|
|
110
|
+
export declare function getRawBody(event: AwsLambdaHttpEvent): unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stone-js/aws-lambda-http-adapter",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Official AWS Lambda HTTP adapter for Stone.js. Run your Stone.js apps on AWS Lambda behind API Gateway with full Continuum lifecycle support.",
|
|
5
5
|
"author": "Mr. Stone <evensstone@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,35 +49,21 @@
|
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=18.17.0"
|
|
51
51
|
},
|
|
52
|
-
"scripts": {
|
|
53
|
-
"lint": "ts-standard src",
|
|
54
|
-
"lint:fix": "ts-standard --fix src tests",
|
|
55
|
-
"predoc": "rimraf docs",
|
|
56
|
-
"doc": "typedoc",
|
|
57
|
-
"clean": "rimraf dist",
|
|
58
|
-
"build": "rollup -c",
|
|
59
|
-
"test": "vitest run",
|
|
60
|
-
"test:cvg": "npm run test -- --coverage",
|
|
61
|
-
"test:text": "npm run test:cvg -- --coverage.reporter=text",
|
|
62
|
-
"test:html": "npm run test:cvg -- --coverage.reporter=html",
|
|
63
|
-
"test:clover": "npm run test:cvg -- --coverage.reporter=clover",
|
|
64
|
-
"prepare": "husky"
|
|
65
|
-
},
|
|
66
52
|
"peerDependencies": {
|
|
67
|
-
"@stone-js/core": "
|
|
68
|
-
"@stone-js/env": "
|
|
69
|
-
"@stone-js/filesystem": "
|
|
70
|
-
"@stone-js/http-core": "
|
|
53
|
+
"@stone-js/core": "0.8.1",
|
|
54
|
+
"@stone-js/env": "0.8.1",
|
|
55
|
+
"@stone-js/filesystem": "0.8.1",
|
|
56
|
+
"@stone-js/http-core": "0.8.1"
|
|
71
57
|
},
|
|
72
58
|
"dependencies": {
|
|
73
|
-
"@stone-js/config": "workspace:*",
|
|
74
59
|
"accepts": "^1.3.8",
|
|
75
60
|
"bytes": "^3.1.2",
|
|
76
61
|
"content-type": "^1.0.5",
|
|
77
62
|
"mime": "^4.1.0",
|
|
78
63
|
"proxy-addr": "^2.0.7",
|
|
79
64
|
"statuses": "^2.0.1",
|
|
80
|
-
"type-is": "^2.0.1"
|
|
65
|
+
"type-is": "^2.0.1",
|
|
66
|
+
"@stone-js/config": "0.8.1"
|
|
81
67
|
},
|
|
82
68
|
"devDependencies": {
|
|
83
69
|
"@commitlint/cli": "^19.6.1",
|
|
@@ -113,5 +99,18 @@
|
|
|
113
99
|
"describe",
|
|
114
100
|
"beforeEach"
|
|
115
101
|
]
|
|
102
|
+
},
|
|
103
|
+
"scripts": {
|
|
104
|
+
"lint": "ts-standard src",
|
|
105
|
+
"lint:fix": "ts-standard --fix src tests",
|
|
106
|
+
"predoc": "rimraf docs",
|
|
107
|
+
"doc": "typedoc",
|
|
108
|
+
"clean": "rimraf dist",
|
|
109
|
+
"build": "rollup -c",
|
|
110
|
+
"test": "vitest run",
|
|
111
|
+
"test:cvg": "npm run test -- --coverage",
|
|
112
|
+
"test:text": "npm run test:cvg -- --coverage.reporter=text",
|
|
113
|
+
"test:html": "npm run test:cvg -- --coverage.reporter=html",
|
|
114
|
+
"test:clover": "npm run test:cvg -- --coverage.reporter=clover"
|
|
116
115
|
}
|
|
117
|
-
}
|
|
116
|
+
}
|