@aws-sdk/credential-provider-process 3.496.0 → 3.511.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
|
@@ -85,6 +85,8 @@ var resolveProcessCredentials = /* @__PURE__ */ __name(async (profileName, profi
|
|
|
85
85
|
|
|
86
86
|
// src/fromProcess.ts
|
|
87
87
|
var fromProcess = /* @__PURE__ */ __name((init = {}) => async () => {
|
|
88
|
+
var _a;
|
|
89
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-process", "fromProcess");
|
|
88
90
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
|
89
91
|
return resolveProcessCredentials((0, import_shared_ini_file_loader.getProfileName)(init), profiles);
|
|
90
92
|
}, "fromProcess");
|
package/dist-es/fromProcess.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getProfileName, parseKnownFiles } from "@smithy/shared-ini-file-loader";
|
|
2
2
|
import { resolveProcessCredentials } from "./resolveProcessCredentials";
|
|
3
3
|
export const fromProcess = (init = {}) => async () => {
|
|
4
|
+
init.logger?.debug("@aws-sdk/credential-provider-process", "fromProcess");
|
|
4
5
|
const profiles = await parseKnownFiles(init);
|
|
5
6
|
return resolveProcessCredentials(getProfileName(init), profiles);
|
|
6
7
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
|
1
2
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
2
3
|
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
3
4
|
/**
|
|
4
5
|
* @internal
|
|
5
6
|
*/
|
|
6
|
-
export interface FromProcessInit extends SourceProfileInit {
|
|
7
|
+
export interface FromProcessInit extends SourceProfileInit, CredentialProviderOptions {
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* @internal
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { CredentialProviderOptions } from "@aws-sdk/types";
|
|
1
2
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
2
3
|
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
3
|
-
export interface FromProcessInit
|
|
4
|
+
export interface FromProcessInit
|
|
5
|
+
extends SourceProfileInit,
|
|
6
|
+
CredentialProviderOptions {}
|
|
4
7
|
export declare const fromProcess: (
|
|
5
8
|
init?: FromProcessInit
|
|
6
9
|
) => AwsCredentialIdentityProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.511.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",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/types": "3.
|
|
27
|
+
"@aws-sdk/types": "3.511.0",
|
|
28
28
|
"@smithy/property-provider": "^2.1.1",
|
|
29
29
|
"@smithy/shared-ini-file-loader": "^2.3.1",
|
|
30
30
|
"@smithy/types": "^2.9.1",
|