Socket
Socket
Sign inDemoInstall

@aesop-fables/triginta

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aesop-fables/triginta - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

7

lib/invokeHttpHandler.d.ts
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc