
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
npm install --save @types/aws-cloudfront-function
This package contains type definitions for aws-cloudfront-function (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.
declare namespace AWSCloudFrontFunction {
interface Event {
version: "1.0";
context: Context;
viewer: Viewer;
request: Request;
response: Response;
}
interface Context {
distributionDomainName: string;
distributionId: string;
eventType: "viewer-request" | "viewer-response";
requestId: string;
}
interface Viewer {
ip: string;
}
interface Request {
method: string;
uri: string;
querystring: ValueObject;
headers: ValueObject;
cookies: ValueObject;
}
interface Response {
statusCode: number;
statusDescription?: string;
headers?: ValueObject;
cookies?: ResponseCookie;
}
interface ValueObject {
[name: string]: {
value: string;
multiValue?: Array<{
value: string;
}>;
};
}
interface ResponseCookie {
[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 9,154 weekly downloads. As such, @types/aws-cloudfront-function popularity was classified as 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.