serverless-h3
Advanced tools
Comparing version
@@ -34,2 +34,4 @@ "use strict"; | ||
} | ||
// Refs: H3 Response Schema | ||
// - https://h3.unjs.io/adapters/plain | ||
const handler = (0, h3_1.toPlainHandler)(app); | ||
@@ -58,7 +60,4 @@ const response = yield handler(Object.assign(Object.assign({}, event), { method: event.httpMethod, context: event.requestContext })); | ||
}); | ||
// console.log('Final headers object:', headersObject); | ||
// console.log('Final multiValueHeaders object:', multiValueHeadersObject); | ||
console.log(JSON.stringify({ app })); | ||
console.log(JSON.stringify({ response })); | ||
console.log(JSON.stringify({ event })); | ||
// Refs: Lambda Response Schema | ||
// - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html | ||
return { | ||
@@ -65,0 +64,0 @@ statusCode: response.status, |
{ | ||
"name": "serverless-h3", | ||
"version": "1.0.24", | ||
"version": "1.0.25", | ||
"description": "A serverless wrapper for h3 applications", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -25,2 +25,4 @@ // src/index.ts | ||
} | ||
// Refs: H3 Response Schema | ||
// - https://h3.unjs.io/adapters/plain | ||
const handler = toPlainHandler(app); | ||
@@ -54,9 +56,5 @@ const response = await handler({ | ||
// console.log('Final headers object:', headersObject); | ||
// console.log('Final multiValueHeaders object:', multiValueHeadersObject); | ||
console.log(JSON.stringify({ app })) | ||
console.log(JSON.stringify({ response })) | ||
console.log(JSON.stringify({ event })) | ||
// Refs: Lambda Response Schema | ||
// - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html | ||
return { | ||
@@ -63,0 +61,0 @@ statusCode: response.status, |
9178
-1.1%159
-1.24%