New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

common-types

Package Overview
Dependencies
Maintainers
1
Versions
308
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

common-types - npm Package Compare versions

Comparing version 1.6.28 to 1.6.29

15

lib/aws.d.ts

@@ -28,2 +28,17 @@ import { IDictionary, booleanAsString } from "./basics";

/**
* Provides a logical test to see if the passed in event is a LambdaProxy request or just a
* straight JS object response. This is useful when you have both an HTTP event and a Lambda-to-Lambda
* or Step-Function-to-Lambda interaction.
*
* @param message the body of the request (which is either of type T or a LambdaProxy event)
*/
export declare function isLambdaProxyRequest<T>(message: T | IAWSLambdaProxyIntegrationRequest): message is IAWSLambdaProxyIntegrationRequest;
/**
* Returns the message body regardless of whether Lambda was called by API Gateway's LambdaProxy
* or from another Lambda function.
*
* @param input either the LambdaProxy object or type T
*/
export declare function getBodyFromPossibleLambdaProxyRequest<T>(input: T | IAWSLambdaProxyIntegrationRequest): IAWSLambdaProxyIntegrationRequest | T;
/**
* When a Lambda function is executed by API Gateway, the default option is

@@ -30,0 +45,0 @@ * to turn on "Lambda Proxy Integration" which provides a lot of meta data

2

lib/aws.js

@@ -13,2 +13,3 @@ "use strict";

}
exports.isLambdaProxyRequest = isLambdaProxyRequest;
/**

@@ -25,2 +26,3 @@ * Returns the message body regardless of whether Lambda was called by API Gateway's LambdaProxy

}
exports.getBodyFromPossibleLambdaProxyRequest = getBodyFromPossibleLambdaProxyRequest;
//# sourceMappingURL=aws.js.map

@@ -7,2 +7,3 @@ "use strict";

__export(require("./basics"));
__export(require("./aws"));
//# sourceMappingURL=index.js.map

2

package.json
{
"name": "common-types",
"version": "1.6.28",
"version": "1.6.29",
"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

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