@aws-sdk/credential-provider-ini 3.973.2 → 3.973.3

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.
@@ -8,21 +8,17 @@ import { SourceProfileInit } from "@smithy/core/config";
8
8
  import { AwsCredentialIdentity, Pluggable } from "@smithy/types";
9
9
  import { AssumeRoleParams } from "./resolveAssumeRoleCredentials";
10
10
  export interface FromIniInit
11
- extends SourceProfileInit,
12
- CredentialProviderOptions,
13
- FromLoginCredentialsInit {
11
+ extends SourceProfileInit, CredentialProviderOptions, FromLoginCredentialsInit {
14
12
  mfaCodeProvider?: (mfaSerial: string) => Promise<string>;
15
13
  roleAssumer?: (
16
14
  sourceCreds: AwsCredentialIdentity,
17
- params: AssumeRoleParams
15
+ params: AssumeRoleParams,
18
16
  ) => Promise<AwsCredentialIdentity>;
19
17
  roleAssumerWithWebIdentity?: (
20
- params: AssumeRoleWithWebIdentityParams
18
+ params: AssumeRoleWithWebIdentityParams,
21
19
  ) => Promise<AwsCredentialIdentity>;
22
20
  clientConfig?: any;
23
21
  clientPlugins?: Pluggable<any, any>[];
24
22
  ignoreCache?: boolean;
25
23
  }
26
- export declare const fromIni: (
27
- init?: FromIniInit
28
- ) => RuntimeConfigAwsCredentialIdentityProvider;
24
+ export declare const fromIni: (init?: FromIniInit) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -18,7 +18,7 @@ export declare const isAssumeRoleProfile: (
18
18
  }?: {
19
19
  profile?: string;
20
20
  logger?: Logger;
21
- }
21
+ },
22
22
  ) => boolean;
23
23
  export declare const resolveAssumeRoleCredentials: (
24
24
  profileName: string,
@@ -26,5 +26,5 @@ export declare const resolveAssumeRoleCredentials: (
26
26
  options: FromIniInit,
27
27
  callerClientConfig: AwsIdentityProperties["callerClientConfig"] | undefined,
28
28
  visitedProfiles: Record<string, true> | undefined,
29
- resolveProfileData: ResolveProfileData
29
+ resolveProfileData: ResolveProfileData,
30
30
  ) => Promise<import("@aws-sdk/types").AttributedAwsCredentialIdentity>;
@@ -3,7 +3,5 @@ import { AwsCredentialIdentityProvider, Logger } from "@smithy/types";
3
3
  export declare const resolveCredentialSource: (
4
4
  credentialSource: string,
5
5
  profileName: string,
6
- logger?: Logger
7
- ) => (
8
- options?: CredentialProviderOptions
9
- ) => Promise<AwsCredentialIdentityProvider>;
6
+ logger?: Logger,
7
+ ) => (options?: CredentialProviderOptions) => Promise<AwsCredentialIdentityProvider>;
@@ -5,5 +5,5 @@ export declare const isLoginProfile: (data: ParsedIniData[string]) => boolean;
5
5
  export declare const resolveLoginCredentials: (
6
6
  profileName: string,
7
7
  options: FromIniInit,
8
- callerClientConfig?: AwsIdentityProperties["callerClientConfig"]
8
+ callerClientConfig?: AwsIdentityProperties["callerClientConfig"],
9
9
  ) => Promise<AwsCredentialIdentity>;
@@ -6,5 +6,5 @@ export interface ProcessProfile extends Profile {
6
6
  export declare const isProcessProfile: (arg: any) => arg is ProcessProfile;
7
7
  export declare const resolveProcessCredentials: (
8
8
  options: FromIniInit,
9
- profile: string
9
+ profile: string,
10
10
  ) => Promise<Credentials>;
@@ -8,5 +8,5 @@ export declare const resolveProfileData: (
8
8
  options: FromIniInit,
9
9
  callerClientConfig?: AwsIdentityProperties["callerClientConfig"],
10
10
  visitedProfiles?: Record<string, true>,
11
- isAssumeRoleRecursiveCall?: boolean
11
+ isAssumeRoleRecursiveCall?: boolean,
12
12
  ) => Promise<AwsCredentialIdentity>;
@@ -6,6 +6,6 @@ export declare const resolveSsoCredentials: (
6
6
  profile: string,
7
7
  profileData: IniSection,
8
8
  options?: FromIniInit,
9
- callerClientConfig?: AwsIdentityProperties["callerClientConfig"]
9
+ callerClientConfig?: AwsIdentityProperties["callerClientConfig"],
10
10
  ) => Promise<import("@aws-sdk/types").AttributedAwsCredentialIdentity>;
11
11
  export declare const isSsoProfile: (arg: Profile) => arg is Partial<SsoProfile>;
@@ -7,10 +7,8 @@ export interface StaticCredsProfile extends Profile {
7
7
  aws_credential_scope?: string;
8
8
  aws_account_id?: string;
9
9
  }
10
- export declare const isStaticCredsProfile: (
11
- arg: any
12
- ) => arg is StaticCredsProfile;
10
+ export declare const isStaticCredsProfile: (arg: any) => arg is StaticCredsProfile;
13
11
  export declare const resolveStaticCredentials: (
14
12
  profile: StaticCredsProfile,
15
- options?: FromIniInit
13
+ options?: FromIniInit,
16
14
  ) => Promise<AwsCredentialIdentity>;
@@ -6,11 +6,9 @@ export interface WebIdentityProfile extends Profile {
6
6
  role_arn: string;
7
7
  role_session_name?: string;
8
8
  }
9
- export declare const isWebIdentityProfile: (
10
- arg: any
11
- ) => arg is WebIdentityProfile;
9
+ export declare const isWebIdentityProfile: (arg: any) => arg is WebIdentityProfile;
12
10
  export declare const resolveWebIdentityCredentials: (
13
11
  profile: WebIdentityProfile,
14
12
  options: FromIniInit,
15
- callerClientConfig?: AwsIdentityProperties["callerClientConfig"]
13
+ callerClientConfig?: AwsIdentityProperties["callerClientConfig"],
16
14
  ) => Promise<AwsCredentialIdentity>;
package/package.json CHANGED
@@ -1,9 +1,36 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.973.2",
3
+ "version": "3.973.3",
4
4
  "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
5
+ "keywords": [
6
+ "aws",
7
+ "credentials"
8
+ ],
9
+ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/credential-provider-ini",
10
+ "license": "Apache-2.0",
11
+ "author": {
12
+ "name": "AWS SDK for JavaScript Team",
13
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/aws/aws-sdk-js-v3.git",
18
+ "directory": "packages-internal/credential-provider-ini"
19
+ },
20
+ "files": [
21
+ "dist-*/**"
22
+ ],
23
+ "sideEffects": false,
5
24
  "main": "./dist-cjs/index.js",
6
25
  "module": "./dist-es/index.js",
26
+ "types": "./dist-types/index.d.ts",
27
+ "typesVersions": {
28
+ "<4.5": {
29
+ "dist-types/*": [
30
+ "dist-types/ts3.4/*"
31
+ ]
32
+ }
33
+ },
7
34
  "scripts": {
8
35
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
9
36
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -17,28 +44,18 @@
17
44
  "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
18
45
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
19
46
  },
20
- "keywords": [
21
- "aws",
22
- "credentials"
23
- ],
24
- "sideEffects": false,
25
- "author": {
26
- "name": "AWS SDK for JavaScript Team",
27
- "url": "https://aws.amazon.com/sdk-for-javascript/"
28
- },
29
- "license": "Apache-2.0",
30
47
  "dependencies": {
31
- "@aws-sdk/core": "^3.975.2",
32
- "@aws-sdk/credential-provider-env": "^3.972.58",
33
- "@aws-sdk/credential-provider-http": "^3.972.60",
34
- "@aws-sdk/credential-provider-login": "^3.972.64",
35
- "@aws-sdk/credential-provider-process": "^3.972.58",
36
- "@aws-sdk/credential-provider-sso": "^3.973.2",
37
- "@aws-sdk/credential-provider-web-identity": "^3.972.64",
38
- "@aws-sdk/nested-clients": "^3.997.32",
39
- "@aws-sdk/types": "^3.974.1",
40
- "@smithy/core": "^3.29.3",
41
- "@smithy/credential-provider-imds": "^4.4.7",
48
+ "@aws-sdk/core": "^3.975.3",
49
+ "@aws-sdk/credential-provider-env": "^3.972.59",
50
+ "@aws-sdk/credential-provider-http": "^3.972.61",
51
+ "@aws-sdk/credential-provider-login": "^3.972.65",
52
+ "@aws-sdk/credential-provider-process": "^3.972.59",
53
+ "@aws-sdk/credential-provider-sso": "^3.973.3",
54
+ "@aws-sdk/credential-provider-web-identity": "^3.972.65",
55
+ "@aws-sdk/nested-clients": "^3.997.33",
56
+ "@aws-sdk/types": "^3.974.2",
57
+ "@smithy/core": "^3.29.4",
58
+ "@smithy/credential-provider-imds": "^4.4.9",
42
59
  "@smithy/types": "^4.16.1",
43
60
  "tslib": "^2.6.2"
44
61
  },
@@ -50,24 +67,7 @@
50
67
  "premove": "4.0.0",
51
68
  "typescript": "~5.8.3"
52
69
  },
53
- "types": "./dist-types/index.d.ts",
54
70
  "engines": {
55
71
  "node": ">=20.0.0"
56
- },
57
- "typesVersions": {
58
- "<4.5": {
59
- "dist-types/*": [
60
- "dist-types/ts3.4/*"
61
- ]
62
- }
63
- },
64
- "files": [
65
- "dist-*/**"
66
- ],
67
- "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/credential-provider-ini",
68
- "repository": {
69
- "type": "git",
70
- "url": "https://github.com/aws/aws-sdk-js-v3.git",
71
- "directory": "packages-internal/credential-provider-ini"
72
72
  }
73
73
  }