
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
@types/aws-cloudfront-function
Advanced tools
TypeScript definitions for AWS CloudFront Functions
npm install --save @types/aws-cloudfront-function
This package contains type definitions for AWS CloudFront Functions (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/functions-event-structure.html).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-cloudfront-function.
// Type definitions for non-npm package AWS CloudFront Functions 1.0
// Project: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/functions-event-structure.html
// Definitions by: Jakub Zelenka <https://github.com/bukka>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0
export interface CloudFrontFunctionEvent {
version: "1.0";
context: CloudFrontFunctionContext;
viewer: CloudFrontFunctionViewer;
request: CloudFrontFunctionRequest;
response: CloudFrontFunctionResponse;
}
export interface CloudFrontFunctionContext {
distributionDomainName: string;
distributionID: string;
eventType: "viewer-request" | "viewer-response";
requestId: string;
}
export interface CloudFrontFunctionViewer {
ip: string;
}
export interface CloudFrontFunctionRequest {
method: string;
uri: string;
querystring: CloudFrontFunctionValueObject;
headers: CloudFrontFunctionValueObject;
cookies: CloudFrontFunctionValueObject;
}
export interface CloudFrontFunctionResponse {
statusCode: number;
statusDescription?: string;
headers: CloudFrontFunctionValueObject;
cookies: CloudFrontFunctionResponseCookie;
}
export interface CloudFrontFunctionValueObject {
[name: string]: {
value: string;
multiValue?: Array<{
value: string;
}>;
};
}
export interface CloudFrontFunctionResponseCookie {
[name: string]: {
value: string;
attributes: string;
multiValue?: Array<{
value: string;
attributes: string;
}>;
};
}
These definitions were written by Jakub Zelenka.
FAQs
TypeScript definitions for aws-cloudfront-function
The npm package @types/aws-cloudfront-function receives a total of 0 weekly downloads. As such, @types/aws-cloudfront-function popularity was classified as not popular.
We found that @types/aws-cloudfront-function demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.