@aws-sdk/middleware-signing 3.37.0 → 3.45.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,38 @@
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.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/middleware-signing
9
+
10
+
11
+
12
+
13
+
14
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/middleware-signing
17
+
18
+
19
+
20
+
21
+
22
+ # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/middleware-signing
25
+
26
+
27
+
28
+
29
+
30
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
31
+
32
+ **Note:** Version bump only for package @aws-sdk/middleware-signing
33
+
34
+
35
+
36
+
37
+
6
38
  # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
7
39
 
8
40
  **Note:** Version bump only for package @aws-sdk/middleware-signing
@@ -15,7 +15,13 @@ const resolveAwsAuthConfig = (input) => {
15
15
  }
16
16
  else {
17
17
  signer = () => normalizeProvider(input.region)()
18
- .then(async (region) => [(await input.regionInfoProvider(region)) || {}, region])
18
+ .then(async (region) => [
19
+ (await input.regionInfoProvider(region, {
20
+ useFipsEndpoint: await input.useFipsEndpoint(),
21
+ useDualstackEndpoint: await input.useDualstackEndpoint(),
22
+ })) || {},
23
+ region,
24
+ ])
19
25
  .then(([regionInfo, region]) => {
20
26
  const { signingRegion, signingService } = regionInfo;
21
27
  input.signingRegion = input.signingRegion || signingRegion || region;
@@ -14,12 +14,28 @@ export var resolveAwsAuthConfig = function (input) {
14
14
  else {
15
15
  signer = function () {
16
16
  return normalizeProvider(input.region)()
17
- .then(function (region) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
18
- switch (_a.label) {
19
- case 0: return [4, input.regionInfoProvider(region)];
20
- case 1: return [2, [(_a.sent()) || {}, region]];
21
- }
22
- }); }); })
17
+ .then(function (region) { return __awaiter(void 0, void 0, void 0, function () {
18
+ var _a, _b, _c;
19
+ var _d;
20
+ return __generator(this, function (_e) {
21
+ switch (_e.label) {
22
+ case 0:
23
+ _b = (_a = input).regionInfoProvider;
24
+ _c = [region];
25
+ _d = {};
26
+ return [4, input.useFipsEndpoint()];
27
+ case 1:
28
+ _d.useFipsEndpoint = _e.sent();
29
+ return [4, input.useDualstackEndpoint()];
30
+ case 2: return [4, _b.apply(_a, _c.concat([(_d.useDualstackEndpoint = _e.sent(),
31
+ _d)]))];
32
+ case 3: return [2, [
33
+ (_e.sent()) || {},
34
+ region
35
+ ]];
36
+ }
37
+ });
38
+ }); })
23
39
  .then(function (_a) {
24
40
  var _b = __read(_a, 2), regionInfo = _b[0], region = _b[1];
25
41
  var signingRegion = regionInfo.signingRegion, signingService = regionInfo.signingService;
@@ -54,6 +54,8 @@ interface PreviouslyResolved {
54
54
  signingName?: string;
55
55
  serviceId: string;
56
56
  sha256: HashConstructor;
57
+ useFipsEndpoint: Provider<boolean>;
58
+ useDualstackEndpoint: Provider<boolean>;
57
59
  }
58
60
  interface SigV4PreviouslyResolved {
59
61
  credentialDefaultProvider: (input: any) => Provider<Credentials>;
@@ -31,6 +31,8 @@ interface PreviouslyResolved {
31
31
  signingName?: string;
32
32
  serviceId: string;
33
33
  sha256: HashConstructor;
34
+ useFipsEndpoint: Provider<boolean>;
35
+ useDualstackEndpoint: Provider<boolean>;
34
36
  }
35
37
  interface SigV4PreviouslyResolved {
36
38
  credentialDefaultProvider: (input: any) => Provider<Credentials>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-signing",
3
- "version": "3.37.0",
3
+ "version": "3.45.0",
4
4
  "scripts": {
5
5
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -23,10 +23,10 @@
23
23
  "typescript": "~4.3.5"
24
24
  },
25
25
  "dependencies": {
26
- "@aws-sdk/property-provider": "3.37.0",
27
- "@aws-sdk/protocol-http": "3.37.0",
28
- "@aws-sdk/signature-v4": "3.37.0",
29
- "@aws-sdk/types": "3.37.0",
26
+ "@aws-sdk/property-provider": "3.40.0",
27
+ "@aws-sdk/protocol-http": "3.40.0",
28
+ "@aws-sdk/signature-v4": "3.45.0",
29
+ "@aws-sdk/types": "3.40.0",
30
30
  "tslib": "^2.3.0"
31
31
  },
32
32
  "engines": {