@aws-sdk/credential-provider-process
Advanced tools
Comparing version 3.713.0 to 3.714.0
@@ -99,7 +99,13 @@ "use strict"; | ||
// src/fromProcess.ts | ||
var fromProcess = /* @__PURE__ */ __name((init = {}) => async () => { | ||
var fromProcess = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig } = {}) => { | ||
var _a; | ||
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-process - fromProcess"); | ||
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init); | ||
return resolveProcessCredentials((0, import_shared_ini_file_loader.getProfileName)(init), profiles, init.logger); | ||
return resolveProcessCredentials( | ||
(0, import_shared_ini_file_loader.getProfileName)({ | ||
profile: init.profile ?? (callerClientConfig == null ? void 0 : callerClientConfig.profile) | ||
}), | ||
profiles, | ||
init.logger | ||
); | ||
}, "fromProcess"); | ||
@@ -106,0 +112,0 @@ // Annotate the CommonJS export names for ESM import in node: |
import { getProfileName, parseKnownFiles } from "@smithy/shared-ini-file-loader"; | ||
import { resolveProcessCredentials } from "./resolveProcessCredentials"; | ||
export const fromProcess = (init = {}) => async () => { | ||
export const fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => { | ||
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess"); | ||
const profiles = await parseKnownFiles(init); | ||
return resolveProcessCredentials(getProfileName(init), profiles, init.logger); | ||
return resolveProcessCredentials(getProfileName({ | ||
profile: init.profile ?? callerClientConfig?.profile, | ||
}), profiles, init.logger); | ||
}; |
@@ -1,4 +0,3 @@ | ||
import type { CredentialProviderOptions } from "@aws-sdk/types"; | ||
import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types"; | ||
import { SourceProfileInit } from "@smithy/shared-ini-file-loader"; | ||
import { AwsCredentialIdentityProvider } from "@smithy/types"; | ||
/** | ||
@@ -15,2 +14,2 @@ * @internal | ||
*/ | ||
export declare const fromProcess: (init?: FromProcessInit) => AwsCredentialIdentityProvider; | ||
export declare const fromProcess: (init?: FromProcessInit) => RuntimeConfigAwsCredentialIdentityProvider; |
@@ -1,4 +0,6 @@ | ||
import { CredentialProviderOptions } from "@aws-sdk/types"; | ||
import { | ||
CredentialProviderOptions, | ||
RuntimeConfigAwsCredentialIdentityProvider, | ||
} from "@aws-sdk/types"; | ||
import { SourceProfileInit } from "@smithy/shared-ini-file-loader"; | ||
import { AwsCredentialIdentityProvider } from "@smithy/types"; | ||
export interface FromProcessInit | ||
@@ -9,2 +11,2 @@ extends SourceProfileInit, | ||
init?: FromProcessInit | ||
) => AwsCredentialIdentityProvider; | ||
) => RuntimeConfigAwsCredentialIdentityProvider; |
{ | ||
"name": "@aws-sdk/credential-provider-process", | ||
"version": "3.713.0", | ||
"version": "3.714.0", | ||
"description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config", | ||
@@ -28,4 +28,4 @@ "main": "./dist-cjs/index.js", | ||
"dependencies": { | ||
"@aws-sdk/core": "3.713.0", | ||
"@aws-sdk/types": "3.713.0", | ||
"@aws-sdk/core": "3.714.0", | ||
"@aws-sdk/types": "3.714.0", | ||
"@smithy/property-provider": "^3.1.11", | ||
@@ -32,0 +32,0 @@ "@smithy/shared-ini-file-loader": "^3.1.12", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24430
259
+ Added@aws-sdk/core@3.714.0(transitive)
+ Added@aws-sdk/types@3.714.0(transitive)
- Removed@aws-sdk/core@3.713.0(transitive)
- Removed@aws-sdk/types@3.713.0(transitive)
Updated@aws-sdk/core@3.714.0
Updated@aws-sdk/types@3.714.0