@aws-sdk/credential-provider-process 3.54.0 → 3.54.1
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/CHANGELOG.md +8 -0
- package/dist-cjs/fromProcess.js +3 -3
- package/dist-es/fromProcess.js +2 -2
- package/dist-types/fromProcess.d.ts +1 -1
- package/dist-types/resolveProcessCredentials.d.ts +1 -2
- package/dist-types/ts3.4/fromProcess.d.ts +1 -1
- package/dist-types/ts3.4/resolveProcessCredentials.d.ts +1 -2
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/credential-provider-process
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @aws-sdk/credential-provider-process
|
package/dist-cjs/fromProcess.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.fromProcess = void 0;
|
|
4
|
-
const
|
|
4
|
+
const shared_ini_file_loader_1 = require("@aws-sdk/shared-ini-file-loader");
|
|
5
5
|
const resolveProcessCredentials_1 = require("./resolveProcessCredentials");
|
|
6
6
|
const fromProcess = (init = {}) => async () => {
|
|
7
|
-
const profiles = await
|
|
8
|
-
return resolveProcessCredentials_1.resolveProcessCredentials(
|
|
7
|
+
const profiles = await shared_ini_file_loader_1.parseKnownFiles(init);
|
|
8
|
+
return resolveProcessCredentials_1.resolveProcessCredentials(shared_ini_file_loader_1.getProfileName(init), profiles);
|
|
9
9
|
};
|
|
10
10
|
exports.fromProcess = fromProcess;
|
package/dist-es/fromProcess.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter, __generator } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { getProfileName, parseKnownFiles } from "@aws-sdk/shared-ini-file-loader";
|
|
3
3
|
import { resolveProcessCredentials } from "./resolveProcessCredentials";
|
|
4
4
|
export var fromProcess = function (init) {
|
|
5
5
|
if (init === void 0) { init = {}; }
|
|
@@ -10,7 +10,7 @@ export var fromProcess = function (init) {
|
|
|
10
10
|
case 0: return [4, parseKnownFiles(init)];
|
|
11
11
|
case 1:
|
|
12
12
|
profiles = _a.sent();
|
|
13
|
-
return [2, resolveProcessCredentials(
|
|
13
|
+
return [2, resolveProcessCredentials(getProfileName(init), profiles)];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
}); };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { ParsedIniData } from "@aws-sdk/
|
|
2
|
-
import { Credentials } from "@aws-sdk/types";
|
|
1
|
+
import { Credentials, ParsedIniData } from "@aws-sdk/types";
|
|
3
2
|
export declare const resolveProcessCredentials: (profileName: string, profiles: ParsedIniData) => Promise<Credentials>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { ParsedIniData } from "@aws-sdk/
|
|
2
|
-
import { Credentials } from "@aws-sdk/types";
|
|
1
|
+
import { Credentials, ParsedIniData } from "@aws-sdk/types";
|
|
3
2
|
export declare const resolveProcessCredentials: (profileName: string, profiles: ParsedIniData) => Promise<Credentials>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
-
"version": "3.54.
|
|
3
|
+
"version": "3.54.1",
|
|
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",
|
|
@@ -23,10 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/property-provider": "3.54.
|
|
27
|
-
"@aws-sdk/shared-ini-file-loader": "3.
|
|
28
|
-
"@aws-sdk/types": "3.54.
|
|
29
|
-
"@aws-sdk/util-credentials": "3.53.0",
|
|
26
|
+
"@aws-sdk/property-provider": "3.54.1",
|
|
27
|
+
"@aws-sdk/shared-ini-file-loader": "3.54.1",
|
|
28
|
+
"@aws-sdk/types": "3.54.1",
|
|
30
29
|
"tslib": "^2.3.0"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|