Socket
Socket
Sign inDemoInstall

@aws-sdk/credential-provider-ini

Package Overview
Dependencies
11
Maintainers
5
Versions
323
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.503.0 to 3.503.1

10

dist-cjs/index.js

@@ -133,6 +133,7 @@ var __create = Object.create;

// src/resolveSsoCredentials.ts
var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile) => {
var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, options = {}) => {
const { fromSSO } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-sso")));
return fromSSO({
profile
profile,
logger: options.logger
})();

@@ -162,3 +163,4 @@ }, "resolveSsoCredentials");

roleSessionName: profile.role_session_name,
roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity
roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
logger: options.logger
})()

@@ -186,3 +188,3 @@ ), "resolveWebIdentityCredentials");

if (isSsoProfile(data)) {
return await resolveSsoCredentials(profileName);
return await resolveSsoCredentials(profileName, options);
}

@@ -189,0 +191,0 @@ throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`);

2

dist-es/resolveProfileData.js

@@ -25,5 +25,5 @@ import { CredentialsProviderError } from "@smithy/property-provider";

if (isSsoProfile(data)) {
return await resolveSsoCredentials(profileName);
return await resolveSsoCredentials(profileName, options);
}
throw new CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`);
};

@@ -1,5 +0,6 @@

export const resolveSsoCredentials = async (profile) => {
export const resolveSsoCredentials = async (profile, options = {}) => {
const { fromSSO } = await import("@aws-sdk/credential-provider-sso");
return fromSSO({
profile,
logger: options.logger,
})();

@@ -6,0 +7,0 @@ };

@@ -11,2 +11,3 @@ export const isWebIdentityProfile = (arg) => Boolean(arg) &&

roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
logger: options.logger,
})());
import type { SsoProfile } from "@aws-sdk/credential-provider-sso";
import type { CredentialProviderOptions } from "@aws-sdk/types";
import type { Profile } from "@smithy/types";

@@ -6,3 +7,3 @@ /**

*/
export declare const resolveSsoCredentials: (profile: string) => Promise<import("@smithy/types").AwsCredentialIdentity>;
export declare const resolveSsoCredentials: (profile: string, options?: CredentialProviderOptions) => Promise<import("@aws-sdk/types").AwsCredentialIdentity>;
/**

@@ -9,0 +10,0 @@ * @internal

import { SsoProfile } from "@aws-sdk/credential-provider-sso";
import { CredentialProviderOptions } from "@aws-sdk/types";
import { Profile } from "@smithy/types";
export declare const resolveSsoCredentials: (
profile: string
) => Promise<import("@smithy/types").AwsCredentialIdentity>;
profile: string,
options?: CredentialProviderOptions
) => Promise<import("@aws-sdk/types").AwsCredentialIdentity>;
export declare const isSsoProfile: (arg: Profile) => arg is Partial<SsoProfile>;
{
"name": "@aws-sdk/credential-provider-ini",
"version": "3.503.0",
"version": "3.503.1",
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",

@@ -30,3 +30,3 @@ "main": "./dist-cjs/index.js",

"@aws-sdk/credential-provider-process": "3.502.0",
"@aws-sdk/credential-provider-sso": "3.502.0",
"@aws-sdk/credential-provider-sso": "3.503.1",
"@aws-sdk/credential-provider-web-identity": "3.502.0",

@@ -33,0 +33,0 @@ "@aws-sdk/types": "3.502.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc