@aws-sdk/middleware-signing 3.502.0 → 3.515.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/dist-cjs/index.js CHANGED
@@ -35,7 +35,11 @@ var import_signature_v4 = require("@smithy/signature-v4");
35
35
  var import_util_middleware = require("@smithy/util-middleware");
36
36
  var CREDENTIAL_EXPIRE_WINDOW = 3e5;
37
37
  var resolveAwsAuthConfig = /* @__PURE__ */ __name((input) => {
38
- const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input);
38
+ const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(
39
+ Object.assign({}, input, {
40
+ parentClientConfig: input
41
+ })
42
+ );
39
43
  const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input;
40
44
  let signer;
41
45
  if (input.signer) {
@@ -101,7 +105,11 @@ var resolveAwsAuthConfig = /* @__PURE__ */ __name((input) => {
101
105
  };
102
106
  }, "resolveAwsAuthConfig");
103
107
  var resolveSigV4AuthConfig = /* @__PURE__ */ __name((input) => {
104
- const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input);
108
+ const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(
109
+ Object.assign({}, input, {
110
+ parentClientConfig: input
111
+ })
112
+ );
105
113
  const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input;
106
114
  let signer;
107
115
  if (input.signer) {
@@ -5,7 +5,9 @@ const CREDENTIAL_EXPIRE_WINDOW = 300000;
5
5
  export const resolveAwsAuthConfig = (input) => {
6
6
  const normalizedCreds = input.credentials
7
7
  ? normalizeCredentialProvider(input.credentials)
8
- : input.credentialDefaultProvider(input);
8
+ : input.credentialDefaultProvider(Object.assign({}, input, {
9
+ parentClientConfig: input,
10
+ }));
9
11
  const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input;
10
12
  let signer;
11
13
  if (input.signer) {
@@ -71,7 +73,9 @@ export const resolveAwsAuthConfig = (input) => {
71
73
  export const resolveSigV4AuthConfig = (input) => {
72
74
  const normalizedCreds = input.credentials
73
75
  ? normalizeCredentialProvider(input.credentials)
74
- : input.credentialDefaultProvider(input);
76
+ : input.credentialDefaultProvider(Object.assign({}, input, {
77
+ parentClientConfig: input,
78
+ }));
75
79
  const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input;
76
80
  let signer;
77
81
  if (input.signer) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-signing",
3
- "version": "3.502.0",
3
+ "version": "3.515.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-signing",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.502.0",
25
+ "@aws-sdk/types": "3.515.0",
26
26
  "@smithy/property-provider": "^2.1.1",
27
27
  "@smithy/protocol-http": "^3.1.1",
28
28
  "@smithy/signature-v4": "^2.1.1",