@types/aws-cloudfront-function
Advanced tools
@@ -6,3 +6,3 @@ declare namespace AWSCloudFrontFunction { | ||
| viewer: Viewer; | ||
| request: Request; | ||
| request: Request & RequestMethods; | ||
| response: Response; | ||
@@ -30,2 +30,13 @@ } | ||
| interface RequestMethods { | ||
| /** | ||
| * Use the rawQueryString() method to retrieve the unparsed and unaltered query string as a string. | ||
| * @returns Returns the full query string of the incoming request as a string value without the leading ?. | ||
| * - If there isn't a query string, but the ? is present, the functions returns an empty string. | ||
| * - If there isn't a query string and the ? isn't present, the function returns undefined. | ||
| * @see https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/general-helper-methods.html#raw-query-string-method | ||
| */ | ||
| rawQueryString(): string | undefined; | ||
| } | ||
| interface Response { | ||
@@ -230,2 +241,25 @@ statusCode: number; | ||
| /** | ||
| * Use this JavaScript object to obtain the edge location airport code, | ||
| * expected Regional Edge Cache region or the CloudFront server IP address used to handle the request. | ||
| * This metadata is available only the viewer request event trigger. | ||
| * @see https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/general-helper-methods.html#edge-location-metadata | ||
| */ | ||
| interface EdgeLocation { | ||
| /** | ||
| * The three-letter IATA code of the edge location that handled the request. | ||
| */ | ||
| name: string; | ||
| /** | ||
| * The IPv4 or IPv6 address of the server that handled the request. | ||
| */ | ||
| serverIp: string; | ||
| /** | ||
| * The CloudFront Regional Edge Cache (REC) that the request is expected to use if there is a cache miss. | ||
| * This value is not updated in the event that the expected REC is unavailable and a backup REC is used for the request. | ||
| * This doesn't include the Origin Shield location being used, except in cases when the primary REC and the Origin Shield are the same location. | ||
| */ | ||
| region: string; | ||
| } | ||
| const cf: { | ||
@@ -236,2 +270,3 @@ kvs: typeof kvs; | ||
| createRequestOriginGroup: typeof createRequestOriginGroup; | ||
| edgeLocation: EdgeLocation; | ||
| }; | ||
@@ -238,0 +273,0 @@ |
| { | ||
| "name": "@types/aws-cloudfront-function", | ||
| "version": "1.0.7", | ||
| "version": "1.0.8", | ||
| "description": "TypeScript definitions for aws-cloudfront-function", | ||
@@ -24,5 +24,5 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-cloudfront-function", | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "780b1770be43bb615190ae71f0b6a60d8521e2c6fc89f9135d4ac23adbd9a5bb", | ||
| "typesPublisherContentHash": "2c71e6e8e1bae20debbcee2b85aef10e0c10fc39fc4847e1b87f3d8af4a9201b", | ||
| "typeScriptVersion": "5.2", | ||
| "nonNpm": true | ||
| } |
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Fri, 13 Mar 2026 23:40:50 GMT | ||
| * Last updated: Tue, 17 Mar 2026 00:53:22 GMT | ||
| * Dependencies: none | ||
@@ -14,0 +14,0 @@ |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
11383
19.57%234
16.42%3
Infinity%