@aws-sdk/credential-provider-process 3.714.0 → 3.723.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 +3 -5
- package/package.json +9 -9
package/dist-cjs/index.js
CHANGED
|
@@ -36,7 +36,6 @@ var import_util = require("util");
|
|
|
36
36
|
// src/getValidatedProcessCredentials.ts
|
|
37
37
|
var import_client = require("@aws-sdk/core/client");
|
|
38
38
|
var getValidatedProcessCredentials = /* @__PURE__ */ __name((profileName, data, profiles) => {
|
|
39
|
-
var _a;
|
|
40
39
|
if (data.Version !== 1) {
|
|
41
40
|
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
|
42
41
|
}
|
|
@@ -51,7 +50,7 @@ var getValidatedProcessCredentials = /* @__PURE__ */ __name((profileName, data,
|
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
52
|
let accountId = data.AccountId;
|
|
54
|
-
if (!accountId &&
|
|
53
|
+
if (!accountId && profiles?.[profileName]?.aws_account_id) {
|
|
55
54
|
accountId = profiles[profileName].aws_account_id;
|
|
56
55
|
}
|
|
57
56
|
const credentials = {
|
|
@@ -97,12 +96,11 @@ var resolveProcessCredentials = /* @__PURE__ */ __name(async (profileName, profi
|
|
|
97
96
|
|
|
98
97
|
// src/fromProcess.ts
|
|
99
98
|
var fromProcess = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig } = {}) => {
|
|
100
|
-
|
|
101
|
-
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
99
|
+
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
102
100
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
|
103
101
|
return resolveProcessCredentials(
|
|
104
102
|
(0, import_shared_ini_file_loader.getProfileName)({
|
|
105
|
-
profile: init.profile ??
|
|
103
|
+
profile: init.profile ?? callerClientConfig?.profile
|
|
106
104
|
}),
|
|
107
105
|
profiles,
|
|
108
106
|
init.logger
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.723.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",
|
|
@@ -25,24 +25,24 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/core": "3.
|
|
29
|
-
"@aws-sdk/types": "3.
|
|
30
|
-
"@smithy/property-provider": "^
|
|
31
|
-
"@smithy/shared-ini-file-loader": "^
|
|
32
|
-
"@smithy/types": "^
|
|
28
|
+
"@aws-sdk/core": "3.723.0",
|
|
29
|
+
"@aws-sdk/types": "3.723.0",
|
|
30
|
+
"@smithy/property-provider": "^4.0.0",
|
|
31
|
+
"@smithy/shared-ini-file-loader": "^4.0.0",
|
|
32
|
+
"@smithy/types": "^4.0.0",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@tsconfig/recommended": "1.0.1",
|
|
37
|
-
"@types/node": "^
|
|
37
|
+
"@types/node": "^18.19.69",
|
|
38
38
|
"concurrently": "7.0.0",
|
|
39
39
|
"downlevel-dts": "0.10.1",
|
|
40
40
|
"rimraf": "3.0.2",
|
|
41
|
-
"typescript": "~
|
|
41
|
+
"typescript": "~5.2.2"
|
|
42
42
|
},
|
|
43
43
|
"types": "./dist-types/index.d.ts",
|
|
44
44
|
"engines": {
|
|
45
|
-
"node": ">=
|
|
45
|
+
"node": ">=18.0.0"
|
|
46
46
|
},
|
|
47
47
|
"typesVersions": {
|
|
48
48
|
"<4.0": {
|