common-types
Advanced tools
Comparing version 1.21.1 to 1.21.2
@@ -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
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
318055
102
7582