@aws-sdk/credential-provider-process 3.972.12 → 3.972.14
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
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var sharedIniFileLoader = require('@smithy/shared-ini-file-loader');
|
|
4
4
|
var propertyProvider = require('@smithy/property-provider');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var node_child_process = require('node:child_process');
|
|
6
|
+
var node_util = require('node:util');
|
|
7
7
|
var client = require('@aws-sdk/core/client');
|
|
8
8
|
|
|
9
9
|
const getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
@@ -41,7 +41,7 @@ const resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
|
41
41
|
if (profiles[profileName]) {
|
|
42
42
|
const credentialProcess = profile["credential_process"];
|
|
43
43
|
if (credentialProcess !== undefined) {
|
|
44
|
-
const execPromise =
|
|
44
|
+
const execPromise = node_util.promisify(sharedIniFileLoader.externalDataInterceptor?.getTokenRecord?.().exec ?? node_child_process.exec);
|
|
45
45
|
try {
|
|
46
46
|
const { stdout } = await execPromise(credentialProcess);
|
|
47
47
|
let data;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CredentialsProviderError } from "@smithy/property-provider";
|
|
2
2
|
import { externalDataInterceptor } from "@smithy/shared-ini-file-loader";
|
|
3
|
-
import { exec } from "child_process";
|
|
4
|
-
import { promisify } from "util";
|
|
3
|
+
import { exec } from "node:child_process";
|
|
4
|
+
import { promisify } from "node:util";
|
|
5
5
|
import { getValidatedProcessCredentials } from "./getValidatedProcessCredentials";
|
|
6
6
|
export const resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
7
7
|
const profile = profiles[profileName];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
2
|
-
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
2
|
+
import type { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AwsCredentialIdentity, ParsedIniData } from "@smithy/types";
|
|
2
|
-
import { ProcessCredentials } from "./ProcessCredentials";
|
|
1
|
+
import type { AwsCredentialIdentity, ParsedIniData } from "@smithy/types";
|
|
2
|
+
import type { ProcessCredentials } from "./ProcessCredentials";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.14",
|
|
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",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/core": "^3.973.
|
|
30
|
-
"@aws-sdk/types": "^3.973.
|
|
29
|
+
"@aws-sdk/core": "^3.973.16",
|
|
30
|
+
"@aws-sdk/types": "^3.973.4",
|
|
31
31
|
"@smithy/property-provider": "^4.2.10",
|
|
32
32
|
"@smithy/shared-ini-file-loader": "^4.4.5",
|
|
33
33
|
"@smithy/types": "^4.13.0",
|