@aws-sdk/credential-provider-http 3.666.0 → 3.667.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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fromHttp = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const client_1 = require("@aws-sdk/core/client");
5
6
  const node_http_handler_1 = require("@smithy/node-http-handler");
6
7
  const property_provider_1 = require("@smithy/property-provider");
7
8
  const promises_1 = tslib_1.__importDefault(require("fs/promises"));
@@ -57,7 +58,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
57
58
  }
58
59
  try {
59
60
  const result = await requestHandler.handle(request);
60
- return (0, requestHelpers_1.getCredentials)(result.response);
61
+ return (0, requestHelpers_1.getCredentials)(result.response).then((creds) => (0, client_1.setCredentialFeature)(creds, "CREDENTIALS_HTTP", "z"));
61
62
  }
62
63
  catch (e) {
63
64
  throw new property_provider_1.CredentialsProviderError(String(e), { logger: options.logger });
@@ -1,3 +1,4 @@
1
+ import { setCredentialFeature } from "@aws-sdk/core/client";
1
2
  import { NodeHttpHandler } from "@smithy/node-http-handler";
2
3
  import { CredentialsProviderError } from "@smithy/property-provider";
3
4
  import fs from "fs/promises";
@@ -53,7 +54,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
53
54
  }
54
55
  try {
55
56
  const result = await requestHandler.handle(request);
56
- return getCredentials(result.response);
57
+ return getCredentials(result.response).then((creds) => setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
57
58
  }
58
59
  catch (e) {
59
60
  throw new CredentialsProviderError(String(e), { logger: options.logger });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-http",
3
- "version": "3.666.0",
3
+ "version": "3.667.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,7 +26,8 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/types": "3.664.0",
29
+ "@aws-sdk/core": "3.667.0",
30
+ "@aws-sdk/types": "3.667.0",
30
31
  "@smithy/fetch-http-handler": "^3.2.9",
31
32
  "@smithy/node-http-handler": "^3.2.4",
32
33
  "@smithy/property-provider": "^3.1.7",