@aesop-fables/triginta
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -7,3 +7,3 @@ import { IHandler } from './IHandler'; | ||
export * from './HttpLambdaServices'; | ||
export { default as RouteRegistry } from './RouteRegistry'; | ||
export { default as RouteRegistry, IRouteRegistry } from './RouteRegistry'; | ||
export * from './invokeHttpHandler'; | ||
@@ -10,0 +10,0 @@ export * from './IConfiguredRoute'; |
import { IConfiguredRoute } from './IConfiguredRoute'; | ||
declare class RouteRegistry { | ||
export interface IRouteRegistry { | ||
allRoutes(): IConfiguredRoute[]; | ||
register(route: IConfiguredRoute): void; | ||
} | ||
declare class RouteRegistry implements IRouteRegistry { | ||
private readonly routes; | ||
@@ -4,0 +8,0 @@ allRoutes(): IConfiguredRoute[]; |
@@ -1,7 +0,6 @@ | ||
import { IServiceContainer, Newable } from '@aesop-fables/containr'; | ||
import { Handler, APIGatewayProxyEventV2, APIGatewayProxyStructuredResultV2 } from 'aws-lambda'; | ||
import { IHttpEndpoint } from './IHttpEndpoint'; | ||
import { IServiceContainer } from '@aesop-fables/containr'; | ||
import { IRouteRegistry } from './RouteRegistry'; | ||
export declare type TrigintaConfig = { | ||
container: IServiceContainer; | ||
createHttpLambda: <Input, Output>(newable: Newable<IHttpEndpoint<Input, Output>>) => Handler<APIGatewayProxyEventV2, APIGatewayProxyStructuredResultV2>; | ||
routes: IRouteRegistry; | ||
}; |
{ | ||
"name": "@aesop-fables/triginta", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"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
489
24561