@aesop-fables/triginta 0.3.0 → 0.3.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.
@@ -1,5 +1,9 @@
1
1
  import { IConfiguredRoute } from './IConfiguredRoute';
2
- declare class RouteRegistry {
2
+ export interface IRouteRegistry {
3
+ allRoutes(): IConfiguredRoute[];
4
+ register(route: IConfiguredRoute): void;
5
+ }
6
+ declare class RouteRegistry implements IRouteRegistry {
3
7
  private readonly routes;
4
8
  allRoutes(): IConfiguredRoute[];
5
9
  register(route: IConfiguredRoute): void;
@@ -0,0 +1,6 @@
1
+ import { IServiceContainer } from '@aesop-fables/containr';
2
+ import { IRouteRegistry } from './RouteRegistry';
3
+ export declare type TrigintaConfig = {
4
+ container: IServiceContainer;
5
+ routes: IRouteRegistry;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/index.d.ts CHANGED
@@ -4,7 +4,8 @@ export * from './Decorators';
4
4
  export * from './Middleware';
5
5
  export * from './HttpLambda';
6
6
  export * from './HttpLambdaServices';
7
- export { default as RouteRegistry } from './RouteRegistry';
7
+ export { default as RouteRegistry, IRouteRegistry } from './RouteRegistry';
8
8
  export * from './invokeHttpHandler';
9
9
  export * from './IConfiguredRoute';
10
+ export * from './TrigintaConfig';
10
11
  export { IHandler, IHttpEndpoint };
package/lib/index.js CHANGED
@@ -26,3 +26,4 @@ var RouteRegistry_1 = require("./RouteRegistry");
26
26
  Object.defineProperty(exports, "RouteRegistry", { enumerable: true, get: function () { return __importDefault(RouteRegistry_1).default; } });
27
27
  __exportStar(require("./invokeHttpHandler"), exports);
28
28
  __exportStar(require("./IConfiguredRoute"), exports);
29
+ __exportStar(require("./TrigintaConfig"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aesop-fables/triginta",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "A lightweight framework that wraps the basic infrastructure usages of AWS Lambda (SQS, Kinesis, etc.).",
5
5
  "type": "commonjs",
6
6
  "exports": {