@aws-sdk/signature-v4
Advanced tools
Comparing version 3.36.0 to 3.37.0
import { HttpRequest, QueryParameterBag } from "@aws-sdk/types"; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const cloneRequest: ({ headers, query, ...rest }: HttpRequest) => HttpRequest; | ||
export declare const cloneQuery: (query: QueryParameterBag) => QueryParameterBag; |
import { Credentials, HashConstructor } from "@aws-sdk/types"; | ||
/** | ||
* Create a string describing the scope of credentials used to sign a request. | ||
* | ||
* @param shortDate The current calendar date in the form YYYYMMDD. | ||
* @param region The AWS region in which the service resides. | ||
* @param service The service to which the signed request is being sent. | ||
*/ | ||
export declare const createScope: (shortDate: string, region: string, service: string) => string; | ||
/** | ||
* Derive a signing key from its composite parts | ||
* | ||
* @param sha256Constructor A constructor function that can instantiate SHA-256 | ||
* hash objects. | ||
* @param credentials The credentials with which the request will be | ||
* signed. | ||
* @param shortDate The current calendar date in the form YYYYMMDD. | ||
* @param region The AWS region in which the service resides. | ||
* @param service The service to which the signed request is being | ||
* sent. | ||
*/ | ||
export declare const getSigningKey: (sha256Constructor: HashConstructor, credentials: Credentials, shortDate: string, region: string, service: string) => Promise<Uint8Array>; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const clearCredentialCache: () => void; |
import { HeaderBag, HttpRequest } from "@aws-sdk/types"; | ||
/** | ||
* @private | ||
*/ | ||
export declare const getCanonicalHeaders: ({ headers }: HttpRequest, unsignableHeaders?: Set<string> | undefined, signableHeaders?: Set<string> | undefined) => HeaderBag; |
import { HttpRequest } from "@aws-sdk/types"; | ||
/** | ||
* @private | ||
*/ | ||
export declare const getCanonicalQuery: ({ query }: HttpRequest) => string; |
import { HashConstructor, HttpRequest } from "@aws-sdk/types"; | ||
/** | ||
* @private | ||
*/ | ||
export declare const getPayloadHash: ({ headers, body }: HttpRequest, hashConstructor: HashConstructor) => Promise<string>; |
import { HttpRequest, QueryParameterBag } from "@aws-sdk/types"; | ||
/** | ||
* @private | ||
*/ | ||
export declare const moveHeadersToQuery: (request: HttpRequest, options?: { | ||
@@ -6,0 +4,0 @@ unhoistableHeaders?: Set<string>; |
import { Credentials, Provider } from "@aws-sdk/types"; | ||
/** | ||
* @private | ||
*/ | ||
export declare const normalizeRegionProvider: (region: string | Provider<string>) => Provider<string>; | ||
/** | ||
* @private | ||
*/ | ||
export declare const normalizeCredentialsProvider: (credentials: Credentials | Provider<Credentials>) => Provider<Credentials>; |
import { HttpRequest } from "@aws-sdk/types"; | ||
/** | ||
* @private | ||
*/ | ||
export declare const prepareRequest: (request: HttpRequest) => HttpRequest; |
import { Credentials, EventSigner, EventSigningArguments, FormattedEvent, HashConstructor, HttpRequest, Provider, RequestPresigner, RequestPresigningArguments, RequestSigner, RequestSigningArguments, SigningArguments, StringSigner } from "@aws-sdk/types"; | ||
export interface SignatureV4Init { | ||
/** | ||
* The service signing name. | ||
*/ | ||
service: string; | ||
/** | ||
* The region name or a function that returns a promise that will be | ||
* resolved with the region name. | ||
*/ | ||
region: string | Provider<string>; | ||
/** | ||
* The credentials with which the request should be signed or a function | ||
* that returns a promise that will be resolved with credentials. | ||
*/ | ||
credentials: Credentials | Provider<Credentials>; | ||
/** | ||
* A constructor function for a hash object that will calculate SHA-256 HMAC | ||
* checksums. | ||
*/ | ||
sha256?: HashConstructor; | ||
/** | ||
* Whether to uri-escape the request URI path as part of computing the | ||
* canonical request string. This is required for every AWS service, except | ||
* Amazon S3, as of late 2017. | ||
* | ||
* @default [true] | ||
*/ | ||
uriEscapePath?: boolean; | ||
/** | ||
* Whether to calculate a checksum of the request body and include it as | ||
* either a request header (when signing) or as a query string parameter | ||
* (when presigning). This is required for AWS Glacier and Amazon S3 and optional for | ||
* every other AWS service as of late 2017. | ||
* | ||
* @default [true] | ||
*/ | ||
applyChecksum?: boolean; | ||
@@ -39,0 +15,0 @@ } |
{ | ||
"name": "@aws-sdk/signature-v4", | ||
"version": "3.36.0", | ||
"version": "3.37.0", | ||
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm", | ||
@@ -23,6 +23,6 @@ "main": "./dist-cjs/index.js", | ||
"dependencies": { | ||
"@aws-sdk/is-array-buffer": "3.36.0", | ||
"@aws-sdk/types": "3.36.0", | ||
"@aws-sdk/util-hex-encoding": "3.36.0", | ||
"@aws-sdk/util-uri-escape": "3.36.0", | ||
"@aws-sdk/is-array-buffer": "3.37.0", | ||
"@aws-sdk/types": "3.37.0", | ||
"@aws-sdk/util-hex-encoding": "3.37.0", | ||
"@aws-sdk/util-uri-escape": "3.37.0", | ||
"tslib": "^2.3.0" | ||
@@ -32,4 +32,4 @@ }, | ||
"@aws-crypto/sha256-js": "^1.0.0", | ||
"@aws-sdk/protocol-http": "3.36.0", | ||
"@aws-sdk/util-buffer-from": "3.36.0", | ||
"@aws-sdk/protocol-http": "3.37.0", | ||
"@aws-sdk/util-buffer-from": "3.37.0", | ||
"@types/jest": "^26.0.4", | ||
@@ -36,0 +36,0 @@ "jest": "^26.1.0", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
187097
2251
+ Added@aws-sdk/is-array-buffer@3.37.0(transitive)
+ Added@aws-sdk/types@3.37.0(transitive)
+ Added@aws-sdk/util-hex-encoding@3.37.0(transitive)
+ Added@aws-sdk/util-uri-escape@3.37.0(transitive)
- Removed@aws-sdk/is-array-buffer@3.36.0(transitive)
- Removed@aws-sdk/types@3.36.0(transitive)
- Removed@aws-sdk/util-hex-encoding@3.36.0(transitive)
- Removed@aws-sdk/util-uri-escape@3.36.0(transitive)
Updated@aws-sdk/types@3.37.0