@aws-sdk/middleware-signing 3.734.0 → 3.775.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 +10 -13
- package/dist-es/awsAuthConfiguration.js +4 -6
- package/package.json +7 -7
package/dist-cjs/index.js
CHANGED
|
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
awsAuthMiddleware: () => awsAuthMiddleware,
|
|
25
25
|
awsAuthMiddlewareOptions: () => awsAuthMiddlewareOptions,
|
|
26
26
|
getAwsAuthPlugin: () => getAwsAuthPlugin,
|
|
@@ -28,7 +28,7 @@ __export(src_exports, {
|
|
|
28
28
|
resolveAwsAuthConfig: () => resolveAwsAuthConfig,
|
|
29
29
|
resolveSigV4AuthConfig: () => resolveSigV4AuthConfig
|
|
30
30
|
});
|
|
31
|
-
module.exports = __toCommonJS(
|
|
31
|
+
module.exports = __toCommonJS(index_exports);
|
|
32
32
|
|
|
33
33
|
// src/awsAuthConfiguration.ts
|
|
34
34
|
var import_property_provider = require("@smithy/property-provider");
|
|
@@ -100,13 +100,12 @@ var resolveAwsAuthConfig = /* @__PURE__ */ __name((input) => {
|
|
|
100
100
|
return new SignerCtor(params);
|
|
101
101
|
}, "signer");
|
|
102
102
|
}
|
|
103
|
-
return {
|
|
104
|
-
...input,
|
|
103
|
+
return Object.assign(input, {
|
|
105
104
|
systemClockOffset,
|
|
106
105
|
signingEscapePath,
|
|
107
106
|
credentials: normalizedCreds,
|
|
108
107
|
signer
|
|
109
|
-
};
|
|
108
|
+
});
|
|
110
109
|
}, "resolveAwsAuthConfig");
|
|
111
110
|
var resolveSigV4AuthConfig = /* @__PURE__ */ __name((input) => {
|
|
112
111
|
const normalizedCreds = createConfigBoundCredentialProvider(input);
|
|
@@ -125,13 +124,12 @@ var resolveSigV4AuthConfig = /* @__PURE__ */ __name((input) => {
|
|
|
125
124
|
})
|
|
126
125
|
);
|
|
127
126
|
}
|
|
128
|
-
return {
|
|
129
|
-
...input,
|
|
127
|
+
return Object.assign(input, {
|
|
130
128
|
systemClockOffset,
|
|
131
129
|
signingEscapePath,
|
|
132
130
|
credentials: normalizedCreds,
|
|
133
131
|
signer
|
|
134
|
-
};
|
|
132
|
+
});
|
|
135
133
|
}, "resolveSigV4AuthConfig");
|
|
136
134
|
var normalizeCredentialProvider = /* @__PURE__ */ __name((credentials) => {
|
|
137
135
|
if (typeof credentials === "function") {
|
|
@@ -178,8 +176,7 @@ var getUpdatedSystemClockOffset = /* @__PURE__ */ __name((clockTime, currentSyst
|
|
|
178
176
|
|
|
179
177
|
// src/awsAuthMiddleware.ts
|
|
180
178
|
var awsAuthMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async function(args) {
|
|
181
|
-
if (!import_protocol_http.HttpRequest.isInstance(args.request))
|
|
182
|
-
return next(args);
|
|
179
|
+
if (!import_protocol_http.HttpRequest.isInstance(args.request)) return next(args);
|
|
183
180
|
let authScheme;
|
|
184
181
|
let signer;
|
|
185
182
|
const firstAuthScheme = context.endpointV2?.properties?.authSchemes?.[0];
|
|
@@ -252,9 +249,9 @@ var awsAuthMiddlewareOptions = {
|
|
|
252
249
|
override: true
|
|
253
250
|
};
|
|
254
251
|
var getAwsAuthPlugin = /* @__PURE__ */ __name((options) => ({
|
|
255
|
-
applyToStack: (clientStack) => {
|
|
252
|
+
applyToStack: /* @__PURE__ */ __name((clientStack) => {
|
|
256
253
|
clientStack.addRelativeTo(awsAuthMiddleware(options), awsAuthMiddlewareOptions);
|
|
257
|
-
}
|
|
254
|
+
}, "applyToStack")
|
|
258
255
|
}), "getAwsAuthPlugin");
|
|
259
256
|
var getSigV4AuthPlugin = getAwsAuthPlugin;
|
|
260
257
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -66,13 +66,12 @@ export const resolveAwsAuthConfig = (input) => {
|
|
|
66
66
|
return new SignerCtor(params);
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
return {
|
|
70
|
-
...input,
|
|
69
|
+
return Object.assign(input, {
|
|
71
70
|
systemClockOffset,
|
|
72
71
|
signingEscapePath,
|
|
73
72
|
credentials: normalizedCreds,
|
|
74
73
|
signer,
|
|
75
|
-
};
|
|
74
|
+
});
|
|
76
75
|
};
|
|
77
76
|
export const resolveSigV4AuthConfig = (input) => {
|
|
78
77
|
const normalizedCreds = createConfigBoundCredentialProvider(input);
|
|
@@ -90,13 +89,12 @@ export const resolveSigV4AuthConfig = (input) => {
|
|
|
90
89
|
uriEscapePath: signingEscapePath,
|
|
91
90
|
}));
|
|
92
91
|
}
|
|
93
|
-
return {
|
|
94
|
-
...input,
|
|
92
|
+
return Object.assign(input, {
|
|
95
93
|
systemClockOffset,
|
|
96
94
|
signingEscapePath,
|
|
97
95
|
credentials: normalizedCreds,
|
|
98
96
|
signer,
|
|
99
|
-
};
|
|
97
|
+
});
|
|
100
98
|
};
|
|
101
99
|
const normalizeCredentialProvider = (credentials) => {
|
|
102
100
|
if (typeof credentials === "function") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-signing",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.775.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",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/types": "3.
|
|
28
|
-
"@smithy/property-provider": "^4.0.
|
|
29
|
-
"@smithy/protocol-http": "^5.0
|
|
30
|
-
"@smithy/signature-v4": "^5.0.
|
|
31
|
-
"@smithy/types": "^4.
|
|
32
|
-
"@smithy/util-middleware": "^4.0.
|
|
27
|
+
"@aws-sdk/types": "3.775.0",
|
|
28
|
+
"@smithy/property-provider": "^4.0.2",
|
|
29
|
+
"@smithy/protocol-http": "^5.1.0",
|
|
30
|
+
"@smithy/signature-v4": "^5.0.2",
|
|
31
|
+
"@smithy/types": "^4.2.0",
|
|
32
|
+
"@smithy/util-middleware": "^4.0.2",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|