@aws-sdk/middleware-signing 3.19.0 → 3.25.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,47 @@
|
|
|
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.25.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.24.0...v3.25.0) (2021-08-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/middleware-signing
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.23.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.22.0...v3.23.0) (2021-07-23)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* bump up tslib to 2.3.0 ([#2601](https://github.com/aws/aws-sdk-js-v3/issues/2601)) ([7040faa](https://github.com/aws/aws-sdk-js-v3/commit/7040faac07976c1dcfd5240675b82a2f275b2a55))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.22.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.21.0...v3.22.0) (2021-07-16)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **clients:** prefix `dist/` for typesVersions TS<4 ([#2580](https://github.com/aws/aws-sdk-js-v3/issues/2580)) ([dff5cd4](https://github.com/aws/aws-sdk-js-v3/commit/dff5cd4b6fa00453e938ce8f238c1542ee7ba3d6))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [3.20.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.19.0...v3.20.0) (2021-07-02)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* replace prepublishOnly script with downlevel-dts ([#2537](https://github.com/aws/aws-sdk-js-v3/issues/2537)) ([63818a1](https://github.com/aws/aws-sdk-js-v3/commit/63818a1e47b08af56f092031a01bbbff0a9af590))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
6
47
|
# [3.19.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.18.0...v3.19.0) (2021-06-24)
|
|
7
48
|
|
|
8
49
|
**Note:** Version bump only for package @aws-sdk/middleware-signing
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Credentials, HashConstructor, Provider, RegionInfoProvider, RequestSigner } from "@aws-sdk/types";
|
|
2
|
+
export interface AwsAuthInputConfig {
|
|
3
|
+
/**
|
|
4
|
+
* The credentials used to sign requests.
|
|
5
|
+
*/
|
|
6
|
+
credentials?: Credentials | Provider<Credentials>;
|
|
7
|
+
/**
|
|
8
|
+
* The signer to use when signing requests.
|
|
9
|
+
*/
|
|
10
|
+
signer?: RequestSigner | Provider<RequestSigner>;
|
|
11
|
+
/**
|
|
12
|
+
* Whether to escape request path when signing the request.
|
|
13
|
+
*/
|
|
14
|
+
signingEscapePath?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* An offset value in milliseconds to apply to all signing times.
|
|
17
|
+
*/
|
|
18
|
+
systemClockOffset?: number;
|
|
19
|
+
/**
|
|
20
|
+
* The region where you want to sign your request against. This
|
|
21
|
+
* can be different to the region in the endpoint.
|
|
22
|
+
*/
|
|
23
|
+
signingRegion?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface SigV4AuthInputConfig {
|
|
26
|
+
/**
|
|
27
|
+
* The credentials used to sign requests.
|
|
28
|
+
*/
|
|
29
|
+
credentials?: Credentials | Provider<Credentials>;
|
|
30
|
+
/**
|
|
31
|
+
* The signer to use when signing requests.
|
|
32
|
+
*/
|
|
33
|
+
signer?: RequestSigner | Provider<RequestSigner>;
|
|
34
|
+
/**
|
|
35
|
+
* Whether to escape request path when signing the request.
|
|
36
|
+
*/
|
|
37
|
+
signingEscapePath?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* An offset value in milliseconds to apply to all signing times.
|
|
40
|
+
*/
|
|
41
|
+
systemClockOffset?: number;
|
|
42
|
+
}
|
|
43
|
+
interface PreviouslyResolved {
|
|
44
|
+
credentialDefaultProvider: (input: any) => Provider<Credentials>;
|
|
45
|
+
region: string | Provider<string>;
|
|
46
|
+
regionInfoProvider: RegionInfoProvider;
|
|
47
|
+
signingName?: string;
|
|
48
|
+
serviceId: string;
|
|
49
|
+
sha256: HashConstructor;
|
|
50
|
+
}
|
|
51
|
+
interface SigV4PreviouslyResolved {
|
|
52
|
+
credentialDefaultProvider: (input: any) => Provider<Credentials>;
|
|
53
|
+
region: string | Provider<string>;
|
|
54
|
+
signingName: string;
|
|
55
|
+
sha256: HashConstructor;
|
|
56
|
+
}
|
|
57
|
+
export interface AwsAuthResolvedConfig {
|
|
58
|
+
/**
|
|
59
|
+
* Resolved value for input config {@link AwsAuthInputConfig.credentials}
|
|
60
|
+
*/
|
|
61
|
+
credentials: Provider<Credentials>;
|
|
62
|
+
/**
|
|
63
|
+
* Resolved value for input config {@link AwsAuthInputConfig.signer}
|
|
64
|
+
*/
|
|
65
|
+
signer: Provider<RequestSigner>;
|
|
66
|
+
/**
|
|
67
|
+
* Resolved value for input config {@link AwsAuthInputConfig.signingEscapePath}
|
|
68
|
+
*/
|
|
69
|
+
signingEscapePath: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Resolved value for input config {@link AwsAuthInputConfig.systemClockOffset}
|
|
72
|
+
*/
|
|
73
|
+
systemClockOffset: number;
|
|
74
|
+
}
|
|
75
|
+
export interface SigV4AuthResolvedConfig extends AwsAuthResolvedConfig {
|
|
76
|
+
}
|
|
77
|
+
export declare const resolveAwsAuthConfig: <T>(input: T & AwsAuthInputConfig & PreviouslyResolved) => T & AwsAuthResolvedConfig;
|
|
78
|
+
export declare const resolveSigV4AuthConfig: <T>(input: T & SigV4AuthInputConfig & SigV4PreviouslyResolved) => T & SigV4AuthResolvedConfig;
|
|
79
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FinalizeRequestMiddleware, Pluggable, RelativeMiddlewareOptions } from "@aws-sdk/types";
|
|
2
|
+
import { AwsAuthResolvedConfig } from "./configurations";
|
|
3
|
+
export declare function 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>;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-signing",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.0",
|
|
4
4
|
"scripts": {
|
|
5
|
-
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
|
|
6
5
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
7
6
|
"build:es": "tsc -p tsconfig.es.json",
|
|
8
7
|
"build": "yarn build:es && yarn build:cjs",
|
|
8
|
+
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
|
|
9
9
|
"test": "jest"
|
|
10
10
|
},
|
|
11
11
|
"main": "./dist/cjs/index.js",
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
"typescript": "~4.3.2"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/property-provider": "3.
|
|
26
|
-
"@aws-sdk/protocol-http": "3.
|
|
27
|
-
"@aws-sdk/signature-v4": "3.
|
|
28
|
-
"@aws-sdk/types": "3.
|
|
29
|
-
"tslib": "^2.
|
|
25
|
+
"@aws-sdk/property-provider": "3.25.0",
|
|
26
|
+
"@aws-sdk/protocol-http": "3.25.0",
|
|
27
|
+
"@aws-sdk/signature-v4": "3.25.0",
|
|
28
|
+
"@aws-sdk/types": "3.25.0",
|
|
29
|
+
"tslib": "^2.3.0"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
|
32
32
|
"node": ">= 10.0.0"
|
|
33
33
|
},
|
|
34
34
|
"typesVersions": {
|
|
35
35
|
"<4.0": {
|
|
36
|
-
"types/*": [
|
|
37
|
-
"types/ts3.4/*"
|
|
36
|
+
"dist/types/*": [
|
|
37
|
+
"dist/types/ts3.4/*"
|
|
38
38
|
]
|
|
39
39
|
}
|
|
40
40
|
},
|