@aws-sdk/middleware-signing
Advanced tools
Comparing version 3.36.0 to 3.37.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15) | ||
**Note:** Version bump only for package @aws-sdk/middleware-signing | ||
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08) | ||
@@ -8,0 +16,0 @@ |
import { SignatureV4CryptoInit, SignatureV4Init } from "@aws-sdk/signature-v4"; | ||
import { Credentials, HashConstructor, Provider, RegionInfoProvider, RequestSigner } from "@aws-sdk/types"; | ||
export interface AwsAuthInputConfig { | ||
/** | ||
* The credentials used to sign requests. | ||
*/ | ||
credentials?: Credentials | Provider<Credentials>; | ||
/** | ||
* The signer to use when signing requests. | ||
*/ | ||
signer?: RequestSigner | Provider<RequestSigner>; | ||
/** | ||
* Whether to escape request path when signing the request. | ||
*/ | ||
signingEscapePath?: boolean; | ||
/** | ||
* An offset value in milliseconds to apply to all signing times. | ||
*/ | ||
systemClockOffset?: number; | ||
/** | ||
* The region where you want to sign your request against. This | ||
* can be different to the region in the endpoint. | ||
*/ | ||
signingRegion?: string; | ||
/** | ||
* The injectable SigV4-compatible signer class constructor. If not supplied, | ||
* regular SignatureV4 constructor will be used. | ||
* @private | ||
*/ | ||
signerConstructor?: new (options: SignatureV4Init & SignatureV4CryptoInit) => RequestSigner; | ||
} | ||
export interface SigV4AuthInputConfig { | ||
/** | ||
* The credentials used to sign requests. | ||
*/ | ||
credentials?: Credentials | Provider<Credentials>; | ||
/** | ||
* The signer to use when signing requests. | ||
*/ | ||
signer?: RequestSigner | Provider<RequestSigner>; | ||
/** | ||
* Whether to escape request path when signing the request. | ||
*/ | ||
signingEscapePath?: boolean; | ||
/** | ||
* An offset value in milliseconds to apply to all signing times. | ||
*/ | ||
systemClockOffset?: number; | ||
@@ -65,17 +42,9 @@ } | ||
export interface AwsAuthResolvedConfig { | ||
/** | ||
* Resolved value for input config {@link AwsAuthInputConfig.credentials} | ||
*/ | ||
credentials: Provider<Credentials>; | ||
/** | ||
* Resolved value for input config {@link AwsAuthInputConfig.signer} | ||
*/ | ||
signer: Provider<RequestSigner>; | ||
/** | ||
* Resolved value for input config {@link AwsAuthInputConfig.signingEscapePath} | ||
*/ | ||
signingEscapePath: boolean; | ||
/** | ||
* Resolved value for input config {@link AwsAuthInputConfig.systemClockOffset} | ||
*/ | ||
systemClockOffset: number; | ||
@@ -82,0 +51,0 @@ } |
@@ -1,6 +0,2 @@ | ||
/** | ||
* Returns a date that is corrected for clock skew. | ||
* | ||
* @param systemClockOffset The offset of the system clock in milliseconds. | ||
*/ | ||
export declare const getSkewCorrectedDate: (systemClockOffset: number) => Date; |
@@ -1,8 +0,2 @@ | ||
/** | ||
* If clock is skewed, it returns the difference between serverTime and current time. | ||
* If clock is not skewed, it returns currentSystemClockOffset. | ||
* | ||
* @param clockTime The string value of the server time. | ||
* @param currentSystemClockOffset The current system clock offset. | ||
*/ | ||
export declare const getUpdatedSystemClockOffset: (clockTime: string, currentSystemClockOffset: number) => number; |
@@ -1,7 +0,2 @@ | ||
/** | ||
* Checks if the provided date is within the skew window of 300000ms. | ||
* | ||
* @param clockTime - The time to check for skew in milliseconds. | ||
* @param systemClockOffset - The offset of the system clock in milliseconds. | ||
*/ | ||
export declare const isClockSkewed: (clockTime: number, systemClockOffset: number) => boolean; |
{ | ||
"name": "@aws-sdk/middleware-signing", | ||
"version": "3.36.0", | ||
"version": "3.37.0", | ||
"scripts": { | ||
@@ -26,6 +26,6 @@ "build": "yarn build:cjs && yarn build:es && yarn build:types", | ||
"dependencies": { | ||
"@aws-sdk/property-provider": "3.36.0", | ||
"@aws-sdk/protocol-http": "3.36.0", | ||
"@aws-sdk/signature-v4": "3.36.0", | ||
"@aws-sdk/types": "3.36.0", | ||
"@aws-sdk/property-provider": "3.37.0", | ||
"@aws-sdk/protocol-http": "3.37.0", | ||
"@aws-sdk/signature-v4": "3.37.0", | ||
"@aws-sdk/types": "3.37.0", | ||
"tslib": "^2.3.0" | ||
@@ -32,0 +32,0 @@ }, |
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
79493
469
+ Added@aws-sdk/is-array-buffer@3.37.0(transitive)
+ Added@aws-sdk/property-provider@3.37.0(transitive)
+ Added@aws-sdk/protocol-http@3.37.0(transitive)
+ Added@aws-sdk/signature-v4@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/property-provider@3.36.0(transitive)
- Removed@aws-sdk/protocol-http@3.36.0(transitive)
- Removed@aws-sdk/signature-v4@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/signature-v4@3.37.0
Updated@aws-sdk/types@3.37.0