Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/middleware-signing

Package Overview
Dependencies
Maintainers
7
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/middleware-signing - npm Package Compare versions

Comparing version 3.36.0 to 3.37.0

8

CHANGELOG.md

@@ -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 @@

59

dist-types/ts3.4/configurations.d.ts
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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc