@aws-sdk/credential-provider-web-identity 3.168.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-web-identity
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.168.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.167.0...v3.168.0) (2022-09-09)
7
15
 
8
16
  **Note:** Version bump only for package @aws-sdk/credential-provider-web-identity
@@ -1,8 +1,12 @@
1
- import { CredentialProvider } from "@aws-sdk/types";
2
- import { FromWebTokenInit } from "./fromWebToken";
3
- export interface FromTokenFileInit extends Partial<Pick<FromWebTokenInit, Exclude<keyof FromWebTokenInit, "webIdentityToken">>> {
4
-
5
- webIdentityTokenFile?: string;
6
- }
7
-
8
- export declare const fromTokenFile: (init?: FromTokenFileInit) => CredentialProvider;
1
+ import { CredentialProvider } from "@aws-sdk/types";
2
+ import { FromWebTokenInit } from "./fromWebToken";
3
+ export interface FromTokenFileInit
4
+ extends Partial<
5
+ Pick<FromWebTokenInit, Exclude<keyof FromWebTokenInit, "webIdentityToken">>
6
+ > {
7
+ webIdentityTokenFile?: string;
8
+ }
9
+
10
+ export declare const fromTokenFile: (
11
+ init?: FromTokenFileInit
12
+ ) => CredentialProvider;
@@ -1,30 +1,39 @@
1
- import { CredentialProvider, Credentials } from "@aws-sdk/types";
2
- export interface AssumeRoleWithWebIdentityParams {
3
-
4
- RoleArn: string;
5
-
6
- RoleSessionName: string;
7
-
8
- WebIdentityToken: string;
9
-
10
- ProviderId?: string;
11
-
12
- PolicyArns?: {
13
- arn?: string;
14
- }[];
15
-
16
- Policy?: string;
17
-
18
- DurationSeconds?: number;
19
- }
20
- declare type LowerCaseKey<T> = {
21
- [K in keyof T as `${Uncapitalize<string & K>}`]: T[K];
22
- };
23
- export interface FromWebTokenInit extends Pick<LowerCaseKey<AssumeRoleWithWebIdentityParams>, Exclude<keyof LowerCaseKey<AssumeRoleWithWebIdentityParams>, "roleSessionName">> {
24
-
25
- roleSessionName?: string;
26
-
27
- roleAssumerWithWebIdentity?: (params: AssumeRoleWithWebIdentityParams) => Promise<Credentials>;
28
- }
29
- export declare const fromWebToken: (init: FromWebTokenInit) => CredentialProvider;
30
- export {};
1
+ import { CredentialProvider, Credentials } from "@aws-sdk/types";
2
+ export interface AssumeRoleWithWebIdentityParams {
3
+ RoleArn: string;
4
+
5
+ RoleSessionName: string;
6
+
7
+ WebIdentityToken: string;
8
+
9
+ ProviderId?: string;
10
+
11
+ PolicyArns?: {
12
+ arn?: string;
13
+ }[];
14
+
15
+ Policy?: string;
16
+
17
+ DurationSeconds?: number;
18
+ }
19
+ declare type LowerCaseKey<T> = {
20
+ [K in keyof T as `${Uncapitalize<string & K>}`]: T[K];
21
+ };
22
+ export interface FromWebTokenInit
23
+ extends Pick<
24
+ LowerCaseKey<AssumeRoleWithWebIdentityParams>,
25
+ Exclude<
26
+ keyof LowerCaseKey<AssumeRoleWithWebIdentityParams>,
27
+ "roleSessionName"
28
+ >
29
+ > {
30
+ roleSessionName?: string;
31
+
32
+ roleAssumerWithWebIdentity?: (
33
+ params: AssumeRoleWithWebIdentityParams
34
+ ) => Promise<Credentials>;
35
+ }
36
+ export declare const fromWebToken: (
37
+ init: FromWebTokenInit
38
+ ) => CredentialProvider;
39
+ export {};
@@ -1,2 +1,2 @@
1
- export * from "./fromTokenFile";
2
- export * from "./fromWebToken";
1
+ export * from "./fromTokenFile";
2
+ export * from "./fromWebToken";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.168.0",
3
+ "version": "3.170.0",
4
4
  "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -32,15 +32,15 @@
32
32
  },
33
33
  "license": "Apache-2.0",
34
34
  "dependencies": {
35
- "@aws-sdk/property-provider": "3.168.0",
36
- "@aws-sdk/types": "3.168.0",
35
+ "@aws-sdk/property-provider": "3.170.0",
36
+ "@aws-sdk/types": "3.170.0",
37
37
  "tslib": "^2.3.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@tsconfig/recommended": "1.0.1",
41
41
  "@types/node": "^10.0.0",
42
42
  "concurrently": "7.0.0",
43
- "downlevel-dts": "0.7.0",
43
+ "downlevel-dts": "0.10.1",
44
44
  "rimraf": "3.0.2",
45
45
  "typedoc": "0.19.2",
46
46
  "typescript": "~4.6.2"