@aws-sdk/middleware-signing 3.50.0 → 3.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/middleware-signing
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
7
15
 
8
16
  **Note:** Version bump only for package @aws-sdk/middleware-signing
@@ -0,0 +1,57 @@
1
+ import { SignatureV4CryptoInit, SignatureV4Init } from "@aws-sdk/signature-v4";
2
+ import { Credentials, HashConstructor, Provider, RegionInfoProvider, RequestSigner } from "@aws-sdk/types";
3
+ export interface AwsAuthInputConfig {
4
+
5
+ credentials?: Credentials | Provider<Credentials>;
6
+
7
+ signer?: RequestSigner | Provider<RequestSigner>;
8
+
9
+ signingEscapePath?: boolean;
10
+
11
+ systemClockOffset?: number;
12
+
13
+ signingRegion?: string;
14
+
15
+ signerConstructor?: new (options: SignatureV4Init & SignatureV4CryptoInit) => RequestSigner;
16
+ }
17
+ export interface SigV4AuthInputConfig {
18
+
19
+ credentials?: Credentials | Provider<Credentials>;
20
+
21
+ signer?: RequestSigner | Provider<RequestSigner>;
22
+
23
+ signingEscapePath?: boolean;
24
+
25
+ systemClockOffset?: number;
26
+ }
27
+ interface PreviouslyResolved {
28
+ credentialDefaultProvider: (input: any) => Provider<Credentials>;
29
+ region: string | Provider<string>;
30
+ regionInfoProvider: RegionInfoProvider;
31
+ signingName?: string;
32
+ serviceId: string;
33
+ sha256: HashConstructor;
34
+ useFipsEndpoint: Provider<boolean>;
35
+ useDualstackEndpoint: Provider<boolean>;
36
+ }
37
+ interface SigV4PreviouslyResolved {
38
+ credentialDefaultProvider: (input: any) => Provider<Credentials>;
39
+ region: string | Provider<string>;
40
+ signingName: string;
41
+ sha256: HashConstructor;
42
+ }
43
+ export interface AwsAuthResolvedConfig {
44
+
45
+ credentials: Provider<Credentials>;
46
+
47
+ signer: Provider<RequestSigner>;
48
+
49
+ signingEscapePath: boolean;
50
+
51
+ systemClockOffset: number;
52
+ }
53
+ export interface SigV4AuthResolvedConfig extends AwsAuthResolvedConfig {
54
+ }
55
+ export declare const resolveAwsAuthConfig: <T>(input: T & AwsAuthInputConfig & PreviouslyResolved) => T & AwsAuthResolvedConfig;
56
+ export declare const resolveSigV4AuthConfig: <T>(input: T & SigV4AuthInputConfig & SigV4PreviouslyResolved) => T & SigV4AuthResolvedConfig;
57
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./configurations";
2
+ export * from "./middleware";
@@ -0,0 +1,6 @@
1
+ import { FinalizeRequestMiddleware, Pluggable, RelativeMiddlewareOptions } from "@aws-sdk/types";
2
+ import { AwsAuthResolvedConfig } from "./configurations";
3
+ export declare const awsAuthMiddleware: <Input extends object, Output extends object>(options: AwsAuthResolvedConfig) => FinalizeRequestMiddleware<Input, Output>;
4
+ export declare const awsAuthMiddlewareOptions: RelativeMiddlewareOptions;
5
+ export declare const getAwsAuthPlugin: (options: AwsAuthResolvedConfig) => Pluggable<any, any>;
6
+ export declare const getSigV4AuthPlugin: (options: AwsAuthResolvedConfig) => Pluggable<any, any>;
@@ -0,0 +1,2 @@
1
+
2
+ export declare const getSkewCorrectedDate: (systemClockOffset: number) => Date;
@@ -0,0 +1,2 @@
1
+
2
+ export declare const getUpdatedSystemClockOffset: (clockTime: string, currentSystemClockOffset: number) => number;
@@ -0,0 +1,2 @@
1
+
2
+ export declare const isClockSkewed: (clockTime: number, systemClockOffset: number) => boolean;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-signing",
3
- "version": "3.50.0",
3
+ "version": "3.52.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
7
7
  "build:es": "tsc -p tsconfig.es.json",
8
8
  "build:types": "tsc -p tsconfig.types.json",
9
9
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
- "clean": "rimraf ./dist-*",
10
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
11
11
  "test": "jest"
12
12
  },
13
13
  "main": "./dist-cjs/index.js",
@@ -19,10 +19,10 @@
19
19
  },
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@aws-sdk/property-provider": "3.50.0",
23
- "@aws-sdk/protocol-http": "3.50.0",
24
- "@aws-sdk/signature-v4": "3.50.0",
25
- "@aws-sdk/types": "3.50.0",
22
+ "@aws-sdk/property-provider": "3.52.0",
23
+ "@aws-sdk/protocol-http": "3.52.0",
24
+ "@aws-sdk/signature-v4": "3.52.0",
25
+ "@aws-sdk/types": "3.52.0",
26
26
  "tslib": "^2.3.0"
27
27
  },
28
28
  "engines": {