
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@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
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 12,896 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.