common-types
Advanced tools
Comparing version
@@ -185,3 +185,3 @@ import { IDictionary } from "../basics"; | ||
body: string; | ||
pathParameters?: any; | ||
pathParameters?: Record<string, string | number | boolean>; | ||
isBase64Encoded: boolean; | ||
@@ -213,3 +213,3 @@ stageVariables: IDictionary; | ||
queryStringParameters?: Record<string, string | number | boolean>; | ||
pathParameters?: any; | ||
pathParameters?: Record<string, string | number | boolean>; | ||
requestContext: IAwsLambdaProxyRequestContext; | ||
@@ -216,0 +216,0 @@ /** The payload that the client has sent to you; if the content was originally in JSON/object format you will need to parse it */ |
export * from "./aws-events"; | ||
export * from "./aws-layers"; | ||
export * from "./aws-type-guards"; | ||
export * from "./aws"; |
@@ -14,2 +14,9 @@ 'use strict'; | ||
/** | ||
* Distinguishes between a V1 and V2 Proxy Integration Request | ||
*/ | ||
function isProxyRequestContextV2(ctx) { | ||
return ctx.version === "2.0"; | ||
} | ||
/** | ||
* Provides a _type guard_ which identifies if the passed in event | ||
@@ -453,2 +460,3 @@ * is a LambdaProxy request or not. This is useful when you have | ||
exports.isLambdaProxyRequest = isLambdaProxyRequest; | ||
exports.isProxyRequestContextV2 = isProxyRequestContextV2; | ||
exports.isServerlessFunctionHandler = isServerlessFunctionHandler; | ||
@@ -455,0 +463,0 @@ exports.isServerlessFunctionImage = isServerlessFunctionImage; |
@@ -185,3 +185,3 @@ import { IDictionary } from "../basics"; | ||
body: string; | ||
pathParameters?: any; | ||
pathParameters?: Record<string, string | number | boolean>; | ||
isBase64Encoded: boolean; | ||
@@ -213,3 +213,3 @@ stageVariables: IDictionary; | ||
queryStringParameters?: Record<string, string | number | boolean>; | ||
pathParameters?: any; | ||
pathParameters?: Record<string, string | number | boolean>; | ||
requestContext: IAwsLambdaProxyRequestContext; | ||
@@ -216,0 +216,0 @@ /** The payload that the client has sent to you; if the content was originally in JSON/object format you will need to parse it */ |
export * from "./aws-events"; | ||
export * from "./aws-layers"; | ||
export * from "./aws-type-guards"; | ||
export * from "./aws"; |
@@ -10,2 +10,9 @@ /** | ||
/** | ||
* Distinguishes between a V1 and V2 Proxy Integration Request | ||
*/ | ||
function isProxyRequestContextV2(ctx) { | ||
return ctx.version === "2.0"; | ||
} | ||
/** | ||
* Provides a _type guard_ which identifies if the passed in event | ||
@@ -444,3 +451,3 @@ * is a LambdaProxy request or not. This is useful when you have | ||
export { AWS_REGIONS, HttpStatusCodes, LambdaEventParser, StepFunctionMissingDataTreatment, createBindDeploymentConfig, getBodyFromPossibleLambdaProxyRequest, isLambdaProxyRequest, isServerlessFunctionHandler, isServerlessFunctionImage, parseStack, wait }; | ||
export { AWS_REGIONS, HttpStatusCodes, LambdaEventParser, StepFunctionMissingDataTreatment, createBindDeploymentConfig, getBodyFromPossibleLambdaProxyRequest, isLambdaProxyRequest, isProxyRequestContextV2, isServerlessFunctionHandler, isServerlessFunctionImage, parseStack, wait }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "common-types", | ||
"version": "1.21.1", | ||
"version": "1.21.2", | ||
"description": "Common types not included in Typescript", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/lifegadget/common-types", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
318055
0.39%102
2%7582
0.34%