@aws-sdk/credential-provider-process 3.888.0 → 3.893.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
@@ -26,10 +26,11 @@ __export(index_exports, {
26
26
  module.exports = __toCommonJS(index_exports);
27
27
 
28
28
  // src/fromProcess.ts
29
- var import_shared_ini_file_loader = require("@smithy/shared-ini-file-loader");
29
+
30
30
 
31
31
  // src/resolveProcessCredentials.ts
32
32
  var import_property_provider = require("@smithy/property-provider");
33
+ var import_shared_ini_file_loader = require("@smithy/shared-ini-file-loader");
33
34
  var import_child_process = require("child_process");
34
35
  var import_util = require("util");
35
36
 
@@ -71,7 +72,7 @@ var resolveProcessCredentials = /* @__PURE__ */ __name(async (profileName, profi
71
72
  if (profiles[profileName]) {
72
73
  const credentialProcess = profile["credential_process"];
73
74
  if (credentialProcess !== void 0) {
74
- const execPromise = (0, import_util.promisify)(import_child_process.exec);
75
+ const execPromise = (0, import_util.promisify)(import_shared_ini_file_loader.externalDataInterceptor?.getTokenRecord?.().exec ?? import_child_process.exec);
75
76
  try {
76
77
  const { stdout } = await execPromise(credentialProcess);
77
78
  let data;
@@ -1,4 +1,5 @@
1
1
  import { CredentialsProviderError } from "@smithy/property-provider";
2
+ import { externalDataInterceptor } from "@smithy/shared-ini-file-loader";
2
3
  import { exec } from "child_process";
3
4
  import { promisify } from "util";
4
5
  import { getValidatedProcessCredentials } from "./getValidatedProcessCredentials";
@@ -7,7 +8,7 @@ export const resolveProcessCredentials = async (profileName, profiles, logger) =
7
8
  if (profiles[profileName]) {
8
9
  const credentialProcess = profile["credential_process"];
9
10
  if (credentialProcess !== undefined) {
10
- const execPromise = promisify(exec);
11
+ const execPromise = promisify(externalDataInterceptor?.getTokenRecord?.().exec ?? exec);
11
12
  try {
12
13
  const { stdout } = await execPromise(credentialProcess);
13
14
  let data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.888.0",
3
+ "version": "3.893.0",
4
4
  "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -19,16 +19,17 @@
19
19
  "aws",
20
20
  "credentials"
21
21
  ],
22
+ "sideEffects": false,
22
23
  "author": {
23
24
  "name": "AWS SDK for JavaScript Team",
24
25
  "url": "https://aws.amazon.com/javascript/"
25
26
  },
26
27
  "license": "Apache-2.0",
27
28
  "dependencies": {
28
- "@aws-sdk/core": "3.888.0",
29
- "@aws-sdk/types": "3.887.0",
30
- "@smithy/property-provider": "^4.0.5",
31
- "@smithy/shared-ini-file-loader": "^4.0.5",
29
+ "@aws-sdk/core": "3.893.0",
30
+ "@aws-sdk/types": "3.893.0",
31
+ "@smithy/property-provider": "^4.1.1",
32
+ "@smithy/shared-ini-file-loader": "^4.2.0",
32
33
  "@smithy/types": "^4.5.0",
33
34
  "tslib": "^2.6.2"
34
35
  },