@aws-sdk/middleware-signing 3.496.0 → 3.511.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 +13 -5
- package/dist-es/awsAuthConfiguration.js +6 -2
- package/package.json +2 -2
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(
|
|
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(
|
|
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) {
|
|
@@ -217,11 +225,11 @@ var getSigV4AuthPlugin = getAwsAuthPlugin;
|
|
|
217
225
|
// Annotate the CommonJS export names for ESM import in node:
|
|
218
226
|
|
|
219
227
|
0 && (module.exports = {
|
|
228
|
+
resolveAwsAuthConfig,
|
|
229
|
+
resolveSigV4AuthConfig,
|
|
220
230
|
awsAuthMiddleware,
|
|
221
231
|
awsAuthMiddlewareOptions,
|
|
222
232
|
getAwsAuthPlugin,
|
|
223
|
-
getSigV4AuthPlugin
|
|
224
|
-
resolveAwsAuthConfig,
|
|
225
|
-
resolveSigV4AuthConfig
|
|
233
|
+
getSigV4AuthPlugin
|
|
226
234
|
});
|
|
227
235
|
|
|
@@ -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.
|
|
3
|
+
"version": "3.511.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.
|
|
25
|
+
"@aws-sdk/types": "3.511.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",
|