@aws-sdk/credential-provider-http 3.587.0 → 3.598.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.
|
@@ -20,11 +20,6 @@ function createGetRequest(url) {
|
|
|
20
20
|
}
|
|
21
21
|
exports.createGetRequest = createGetRequest;
|
|
22
22
|
async function getCredentials(response, logger) {
|
|
23
|
-
const contentType = response?.headers["content-type"] ?? response?.headers["Content-Type"] ?? "";
|
|
24
|
-
if (!contentType.includes("json")) {
|
|
25
|
-
const warn = logger?.constructor?.name === "NoOpLogger" || !logger ? console.warn : logger.warn;
|
|
26
|
-
warn("HTTP credential provider response header content-type was not application/json. Observed: " + contentType + ".");
|
|
27
|
-
}
|
|
28
23
|
const stream = (0, util_stream_1.sdkStreamMixin)(response.body);
|
|
29
24
|
const str = await stream.transformToString();
|
|
30
25
|
if (response.statusCode === 200) {
|
|
@@ -16,11 +16,6 @@ export function createGetRequest(url) {
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
export async function getCredentials(response, logger) {
|
|
19
|
-
const contentType = response?.headers["content-type"] ?? response?.headers["Content-Type"] ?? "";
|
|
20
|
-
if (!contentType.includes("json")) {
|
|
21
|
-
const warn = logger?.constructor?.name === "NoOpLogger" || !logger ? console.warn : logger.warn;
|
|
22
|
-
warn("HTTP credential provider response header content-type was not application/json. Observed: " + contentType + ".");
|
|
23
|
-
}
|
|
24
19
|
const stream = sdkStreamMixin(response.body);
|
|
25
20
|
const str = await stream.transformToString();
|
|
26
21
|
if (response.statusCode === 200) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-http",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.598.0",
|
|
4
4
|
"description": "AWS credential provider for containers and HTTP sources",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/types": "3.
|
|
30
|
-
"@smithy/fetch-http-handler": "^3.0.
|
|
31
|
-
"@smithy/node-http-handler": "^3.0.
|
|
32
|
-
"@smithy/property-provider": "^3.1.
|
|
33
|
-
"@smithy/protocol-http": "^4.0.
|
|
34
|
-
"@smithy/smithy-client": "^3.1.
|
|
35
|
-
"@smithy/types": "^3.
|
|
36
|
-
"@smithy/util-stream": "^3.0.
|
|
29
|
+
"@aws-sdk/types": "3.598.0",
|
|
30
|
+
"@smithy/fetch-http-handler": "^3.0.2",
|
|
31
|
+
"@smithy/node-http-handler": "^3.0.1",
|
|
32
|
+
"@smithy/property-provider": "^3.1.1",
|
|
33
|
+
"@smithy/protocol-http": "^4.0.1",
|
|
34
|
+
"@smithy/smithy-client": "^3.1.2",
|
|
35
|
+
"@smithy/types": "^3.1.0",
|
|
36
|
+
"@smithy/util-stream": "^3.0.2",
|
|
37
37
|
"tslib": "^2.6.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|