@stone-js/aws-lambda-http-adapter 0.8.0 → 0.8.2

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 CHANGED
@@ -1,16 +1,16 @@
1
1
  # Stone.js - AWS Lambda HTTP Adapter
2
2
 
3
- [![npm](https://img.shields.io/npm/l/@stone-js/aws-lambda-http-adapter)](https://opensource.org/licenses/MIT)
4
- [![npm](https://img.shields.io/npm/v/@stone-js/aws-lambda-http-adapter)](https://www.npmjs.com/package/@stone-js/aws-lambda-http-adapter)
5
- [![npm](https://img.shields.io/npm/dm/@stone-js/aws-lambda-http-adapter)](https://www.npmjs.com/package/@stone-js/aws-lambda-http-adapter)
3
+ [![npm license](https://img.shields.io/npm/l/@stone-js/aws-lambda-http-adapter)](https://opensource.org/licenses/MIT)
4
+ [![npm version](https://img.shields.io/npm/v/@stone-js/aws-lambda-http-adapter)](https://www.npmjs.com/package/@stone-js/aws-lambda-http-adapter)
5
+ [![npm downloads](https://img.shields.io/npm/dm/@stone-js/aws-lambda-http-adapter)](https://www.npmjs.com/package/@stone-js/aws-lambda-http-adapter)
6
6
  ![Maintenance](https://img.shields.io/maintenance/yes/2026)
7
- [![Build Status](https://github.com/stone-foundation/stone-js-aws-lambda-http-adapter/actions/workflows/main.yml/badge.svg)](https://github.com/stone-foundation/stone-js-aws-lambda-http-adapter/actions/workflows/main.yml)
8
- [![Publish Package to npmjs](https://github.com/stone-foundation/stone-js-aws-lambda-http-adapter/actions/workflows/release.yml/badge.svg)](https://github.com/stone-foundation/stone-js-aws-lambda-http-adapter/actions/workflows/release.yml)
9
- [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=stone-foundation_stone-js-aws-lambda-http-adapter&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=stone-foundation_stone-js-aws-lambda-http-adapter)
10
- [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=stone-foundation_stone-js-aws-lambda-http-adapter&metric=coverage)](https://sonarcloud.io/summary/new_code?id=stone-foundation_stone-js-aws-lambda-http-adapter)
11
- [![Security Policy](https://img.shields.io/badge/Security-Policy-blue.svg)](./SECURITY.md)
12
- [![CodeQL](https://github.com/stone-foundation/stone-js-aws-lambda-http-adapter/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/stone-foundation/stone-js-aws-lambda-http-adapter/security/code-scanning)
13
- [![Dependabot Status](https://img.shields.io/badge/Dependabot-enabled-brightgreen.svg)](https://github.com/stone-foundation/stone-js-aws-lambda-http-adapter/network/updates)
7
+ [![CI](https://github.com/stone-foundation/stone-js-framework/actions/workflows/ci.yml/badge.svg)](https://github.com/stone-foundation/stone-js-framework/actions/workflows/ci.yml)
8
+ [![Release](https://github.com/stone-foundation/stone-js-framework/actions/workflows/release.yml/badge.svg)](https://github.com/stone-foundation/stone-js-framework/actions/workflows/release.yml)
9
+ [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=stone-foundation_stone-js-framework&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=stone-foundation_stone-js-framework)
10
+ [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=stone-foundation_stone-js-framework&metric=coverage)](https://sonarcloud.io/summary/new_code?id=stone-foundation_stone-js-framework)
11
+ [![Security Policy](https://img.shields.io/badge/Security-Policy-blue.svg)](https://github.com/stone-foundation/stone-js-framework/blob/main/SECURITY.md)
12
+ [![CodeQL](https://github.com/stone-foundation/stone-js-framework/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/stone-foundation/stone-js-framework/security/code-scanning)
13
+ [![Dependabot Status](https://img.shields.io/badge/Dependabot-enabled-brightgreen.svg)](https://github.com/stone-foundation/stone-js-framework/network/updates)
14
14
  [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](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 options - Optional configuration to customize the AWS Lambda HTTP Adapter.
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 options - Optional configuration to customize the AWS Lambda HTTP Adapter.
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): Buffer | string | unknown;
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.0",
3
+ "version": "0.8.2",
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": "workspace:*",
68
- "@stone-js/env": "workspace:*",
69
- "@stone-js/filesystem": "workspace:*",
70
- "@stone-js/http-core": "workspace:*"
53
+ "@stone-js/core": "0.8.2",
54
+ "@stone-js/env": "0.8.2",
55
+ "@stone-js/filesystem": "0.8.2",
56
+ "@stone-js/http-core": "0.8.2"
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.2"
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
+ }