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.22 to 1.6.23

63

lib/aws.d.ts

@@ -1,2 +0,2 @@

import { IDictionary } from "./basics";
import { IDictionary, booleanAsString } from "./basics";
export interface ILambdaErrorResponse<T = any> {

@@ -26,2 +26,63 @@ errorCode?: string | number;

}
export declare type REST_Methods = "GET" | "POST" | "PUT" | "DELETE";
/**
* When a Lambda function is executed by API Gateway, the default option is
* to turn on "Lambda Proxy Integration" which provides a lot of meta data
* regarding the request. When this is on, the message payload will be found
* in the "body" attribute as a JSON string.
*/
export interface IAWSLambdaProxyIntegrationRequest {
resource: string;
path: string;
httpMethod: REST_Methods;
headers: {
Accept: string;
["Accept-Encoding"]: string;
["cache-control"]: string;
["CloudFront-Forwarded-Proto"]: booleanAsString;
["CloudFront-Is-Desktop-Viewer"]: booleanAsString;
["CloudFront-Is-Mobile-Viewer"]: booleanAsString;
["CloudFront-Is-SmartTV-Viewer"]: booleanAsString;
["CloudFront-Is-Tablet-Viewer"]: booleanAsString;
["CloudFront-Viewer-Country"]: string;
["Content-Type"]: string;
["Host"]: string;
["User-Agent"]: string;
["Via"]: string;
["X-Amz-Cf-Id"]: string;
["X-Amzn-Trace-Id"]: string;
["X-Forwarded-For"]: string;
["X-Forwarded-Proto"]: string;
};
queryStringParameters?: any;
pathParameters?: any;
requestContext: {
requestTime: string;
path: string;
accountId: string;
protocol: string;
resourceId: string;
stage: string;
requestTimeEpoch: number;
requestId: string;
identity: {
cognitoIdentityPoolId?: string;
accountId?: string;
cognitoIdentityId: string;
caller: string;
sourceIp: string;
accessKey: string;
cognitoAuthenticationType: string;
cognitoAuthenticationProvider: string;
userArn: string;
userAgent: string;
user: string;
};
resourcePath: string;
httpMethod: REST_Methods;
apiId: string;
};
body: string;
isBase64Encoded: boolean;
}
export interface IAWSLambaContext {

@@ -28,0 +89,0 @@ /** The default value is true. This property is useful only to modify the default behavior of the callback. By default, the callback will wait until the Node.js runtime event loop is empty before freezing the process and returning the results to the caller. You can set this property to false to request AWS Lambda to freeze the process soon after the callback is called, even if there are events in the event loop. AWS Lambda will freeze the process, any state data and the events in the Node.js event loop (any remaining events in the event loop processed when the Lambda function is called next and if AWS Lambda chooses to use the frozen process). For more information about callback, see Using the Callback Parameter. */

@@ -38,1 +38,2 @@ /**

export declare function STAGE(stage: string): string;
export declare type booleanAsString = "true" | "false";

2

package.json
{
"name": "common-types",
"version": "1.6.22",
"version": "1.6.23",
"description": "Common types not included in Typescript",

@@ -5,0 +5,0 @@ "repository": "https://github.com/lifegadget/common-types",

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