@aws-sdk/credential-provider-ini 3.169.0 → 3.170.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/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.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/credential-provider-ini
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.169.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.168.0...v3.169.0) (2022-09-12)
7
15
 
8
16
  **Note:** Version bump only for package @aws-sdk/credential-provider-ini
@@ -1,14 +1,18 @@
1
- import { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity";
2
- import { SourceProfileInit } from "@aws-sdk/shared-ini-file-loader";
3
- import { CredentialProvider, Credentials } from "@aws-sdk/types";
4
- import { AssumeRoleParams } from "./resolveAssumeRoleCredentials";
5
- export interface FromIniInit extends SourceProfileInit {
6
-
7
- mfaCodeProvider?: (mfaSerial: string) => Promise<string>;
8
-
9
- roleAssumer?: (sourceCreds: Credentials, params: AssumeRoleParams) => Promise<Credentials>;
10
-
11
- roleAssumerWithWebIdentity?: (params: AssumeRoleWithWebIdentityParams) => Promise<Credentials>;
12
- }
13
-
14
- export declare const fromIni: (init?: FromIniInit) => CredentialProvider;
1
+ import { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity";
2
+ import { SourceProfileInit } from "@aws-sdk/shared-ini-file-loader";
3
+ import { CredentialProvider, Credentials } from "@aws-sdk/types";
4
+ import { AssumeRoleParams } from "./resolveAssumeRoleCredentials";
5
+ export interface FromIniInit extends SourceProfileInit {
6
+ mfaCodeProvider?: (mfaSerial: string) => Promise<string>;
7
+
8
+ roleAssumer?: (
9
+ sourceCreds: Credentials,
10
+ params: AssumeRoleParams
11
+ ) => Promise<Credentials>;
12
+
13
+ roleAssumerWithWebIdentity?: (
14
+ params: AssumeRoleWithWebIdentityParams
15
+ ) => Promise<Credentials>;
16
+ }
17
+
18
+ export declare const fromIni: (init?: FromIniInit) => CredentialProvider;
@@ -1 +1 @@
1
- export * from "./fromIni";
1
+ export * from "./fromIni";
@@ -1,17 +1,21 @@
1
- import { ParsedIniData } from "@aws-sdk/types";
2
- import { FromIniInit } from "./fromIni";
3
-
4
- export interface AssumeRoleParams {
5
-
6
- RoleArn: string;
7
-
8
- RoleSessionName: string;
9
-
10
- ExternalId?: string;
11
-
12
- SerialNumber?: string;
13
-
14
- TokenCode?: string;
15
- }
16
- export declare const isAssumeRoleProfile: (arg: any) => boolean;
17
- export declare const resolveAssumeRoleCredentials: (profileName: string, profiles: ParsedIniData, options: FromIniInit, visitedProfiles?: Record<string, true>) => Promise<import("@aws-sdk/types").Credentials>;
1
+ import { ParsedIniData } from "@aws-sdk/types";
2
+ import { FromIniInit } from "./fromIni";
3
+
4
+ export interface AssumeRoleParams {
5
+ RoleArn: string;
6
+
7
+ RoleSessionName: string;
8
+
9
+ ExternalId?: string;
10
+
11
+ SerialNumber?: string;
12
+
13
+ TokenCode?: string;
14
+ }
15
+ export declare const isAssumeRoleProfile: (arg: any) => boolean;
16
+ export declare const resolveAssumeRoleCredentials: (
17
+ profileName: string,
18
+ profiles: ParsedIniData,
19
+ options: FromIniInit,
20
+ visitedProfiles?: Record<string, true>
21
+ ) => Promise<import("@aws-sdk/types").Credentials>;
@@ -1,3 +1,6 @@
1
- import { CredentialProvider } from "@aws-sdk/types";
2
-
3
- export declare const resolveCredentialSource: (credentialSource: string, profileName: string) => CredentialProvider;
1
+ import { CredentialProvider } from "@aws-sdk/types";
2
+
3
+ export declare const resolveCredentialSource: (
4
+ credentialSource: string,
5
+ profileName: string
6
+ ) => CredentialProvider;
@@ -1,3 +1,8 @@
1
- import { Credentials, ParsedIniData } from "@aws-sdk/types";
2
- import { FromIniInit } from "./fromIni";
3
- export declare const resolveProfileData: (profileName: string, profiles: ParsedIniData, options: FromIniInit, visitedProfiles?: Record<string, true>) => Promise<Credentials>;
1
+ import { Credentials, ParsedIniData } from "@aws-sdk/types";
2
+ import { FromIniInit } from "./fromIni";
3
+ export declare const resolveProfileData: (
4
+ profileName: string,
5
+ profiles: ParsedIniData,
6
+ options: FromIniInit,
7
+ visitedProfiles?: Record<string, true>
8
+ ) => Promise<Credentials>;
@@ -1,3 +1,5 @@
1
- import { SsoProfile } from "@aws-sdk/credential-provider-sso";
2
- export { isSsoProfile } from "@aws-sdk/credential-provider-sso";
3
- export declare const resolveSsoCredentials: (data: Partial<SsoProfile>) => Promise<import("@aws-sdk/types").Credentials>;
1
+ import { SsoProfile } from "@aws-sdk/credential-provider-sso";
2
+ export { isSsoProfile } from "@aws-sdk/credential-provider-sso";
3
+ export declare const resolveSsoCredentials: (
4
+ data: Partial<SsoProfile>
5
+ ) => Promise<import("@aws-sdk/types").Credentials>;
@@ -1,8 +1,12 @@
1
- import { Credentials, Profile } from "@aws-sdk/types";
2
- export interface StaticCredsProfile extends Profile {
3
- aws_access_key_id: string;
4
- aws_secret_access_key: string;
5
- aws_session_token?: string;
6
- }
7
- export declare const isStaticCredsProfile: (arg: any) => arg is StaticCredsProfile;
8
- export declare const resolveStaticCredentials: (profile: StaticCredsProfile) => Promise<Credentials>;
1
+ import { Credentials, Profile } from "@aws-sdk/types";
2
+ export interface StaticCredsProfile extends Profile {
3
+ aws_access_key_id: string;
4
+ aws_secret_access_key: string;
5
+ aws_session_token?: string;
6
+ }
7
+ export declare const isStaticCredsProfile: (
8
+ arg: any
9
+ ) => arg is StaticCredsProfile;
10
+ export declare const resolveStaticCredentials: (
11
+ profile: StaticCredsProfile
12
+ ) => Promise<Credentials>;
@@ -1,9 +1,14 @@
1
- import { Credentials, Profile } from "@aws-sdk/types";
2
- import { FromIniInit } from "./fromIni";
3
- export interface WebIdentityProfile extends Profile {
4
- web_identity_token_file: string;
5
- role_arn: string;
6
- role_session_name?: string;
7
- }
8
- export declare const isWebIdentityProfile: (arg: any) => arg is WebIdentityProfile;
9
- export declare const resolveWebIdentityCredentials: (profile: WebIdentityProfile, options: FromIniInit) => Promise<Credentials>;
1
+ import { Credentials, Profile } from "@aws-sdk/types";
2
+ import { FromIniInit } from "./fromIni";
3
+ export interface WebIdentityProfile extends Profile {
4
+ web_identity_token_file: string;
5
+ role_arn: string;
6
+ role_session_name?: string;
7
+ }
8
+ export declare const isWebIdentityProfile: (
9
+ arg: any
10
+ ) => arg is WebIdentityProfile;
11
+ export declare const resolveWebIdentityCredentials: (
12
+ profile: WebIdentityProfile,
13
+ options: FromIniInit
14
+ ) => Promise<Credentials>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.169.0",
3
+ "version": "3.170.0",
4
4
  "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -24,20 +24,20 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/credential-provider-env": "3.168.0",
28
- "@aws-sdk/credential-provider-imds": "3.168.0",
29
- "@aws-sdk/credential-provider-sso": "3.169.0",
30
- "@aws-sdk/credential-provider-web-identity": "3.168.0",
31
- "@aws-sdk/property-provider": "3.168.0",
32
- "@aws-sdk/shared-ini-file-loader": "3.168.0",
33
- "@aws-sdk/types": "3.168.0",
27
+ "@aws-sdk/credential-provider-env": "3.170.0",
28
+ "@aws-sdk/credential-provider-imds": "3.170.0",
29
+ "@aws-sdk/credential-provider-sso": "3.170.0",
30
+ "@aws-sdk/credential-provider-web-identity": "3.170.0",
31
+ "@aws-sdk/property-provider": "3.170.0",
32
+ "@aws-sdk/shared-ini-file-loader": "3.170.0",
33
+ "@aws-sdk/types": "3.170.0",
34
34
  "tslib": "^2.3.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@tsconfig/recommended": "1.0.1",
38
38
  "@types/node": "^10.0.0",
39
39
  "concurrently": "7.0.0",
40
- "downlevel-dts": "0.7.0",
40
+ "downlevel-dts": "0.10.1",
41
41
  "rimraf": "3.0.2",
42
42
  "typedoc": "0.19.2",
43
43
  "typescript": "~4.6.2"