@aesop-fables/triginta
Advanced tools
Comparing version 0.2.3 to 0.2.4
import { APIGatewayProxyEventPathParameters, APIGatewayProxyEventV2 } from 'aws-lambda'; | ||
import { IServiceContainer } from '@aesop-fables/containr'; | ||
import { IConfiguredRoute } from './IConfiguredRoute'; | ||
export interface InvocationContext { | ||
configuredRoute: IConfiguredRoute; | ||
container: IServiceContainer; | ||
body?: any; | ||
@@ -9,4 +11,5 @@ path: string; | ||
export declare function parseRouteParams(route: string, path: string): APIGatewayProxyEventPathParameters; | ||
export declare function parsePathParameters(context: InvocationContext): Partial<APIGatewayProxyEventV2>; | ||
export declare function createApiGatewayEvent(context: InvocationContext): Partial<APIGatewayProxyEventV2>; | ||
export declare function parsePathParameters(context: EventGenerationContext): Partial<APIGatewayProxyEventV2>; | ||
export declare type EventGenerationContext = Omit<InvocationContext, 'container'>; | ||
export declare function createApiGatewayEvent(context: EventGenerationContext): Partial<APIGatewayProxyEventV2>; | ||
export declare function invokeHttpHandler<Output>(context: InvocationContext): Promise<Output>; |
@@ -16,3 +16,2 @@ "use strict"; | ||
exports.invokeHttpHandler = exports.createApiGatewayEvent = exports.parsePathParameters = exports.parseRouteParams = void 0; | ||
const HttpLambda_1 = require("./HttpLambda"); | ||
const node_querystring_1 = __importDefault(require("node:querystring")); | ||
@@ -116,3 +115,3 @@ const HttpLambdaServices_1 = require("./HttpLambdaServices"); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const container = HttpLambda_1.HttpLambda.getContainer(); | ||
const { container } = context; | ||
const factory = container.get(HttpLambdaServices_1.HttpLambdaServices.HttpLambdaFactory); | ||
@@ -119,0 +118,0 @@ const configuredHandler = factory.createHandler(context.configuredRoute.constructor); |
{ | ||
"name": "@aesop-fables/triginta", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "A lightweight framework that wraps the basic infrastructure usages of AWS Lambda (SQS, Kinesis, etc.).", | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24763
490