@aws-sdk/credential-provider-web-identity 3.554.0 → 3.565.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.
@@ -30,7 +30,7 @@ const fromWebToken = (init) => async () => {
30
30
  const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
31
31
  let { roleAssumerWithWebIdentity } = init;
32
32
  if (!roleAssumerWithWebIdentity) {
33
- const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar(require("./loadSts")));
33
+ const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar(require("@aws-sdk/client-sts")));
34
34
  roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
35
35
  ...init.clientConfig,
36
36
  credentialProviderLogger: init.logger,
@@ -3,7 +3,7 @@ export const fromWebToken = (init) => async () => {
3
3
  const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
4
4
  let { roleAssumerWithWebIdentity } = init;
5
5
  if (!roleAssumerWithWebIdentity) {
6
- const { getDefaultRoleAssumerWithWebIdentity } = await import("./loadSts");
6
+ const { getDefaultRoleAssumerWithWebIdentity } = await import("@aws-sdk/client-sts");
7
7
  roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
8
8
  ...init.clientConfig,
9
9
  credentialProviderLogger: init.logger,
@@ -1,6 +1,5 @@
1
1
  import type { CredentialProviderOptions } from "@aws-sdk/types";
2
2
  import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, Pluggable } from "@smithy/types";
3
- import type { STSClientConfig } from "./loadSts";
4
3
  /**
5
4
  * @public
6
5
  */
@@ -130,9 +129,10 @@ export interface FromWebTokenInit extends Omit<LowerCaseKey<AssumeRoleWithWebIde
130
129
  */
131
130
  roleAssumerWithWebIdentity?: (params: AssumeRoleWithWebIdentityParams) => Promise<AwsCredentialIdentity>;
132
131
  /**
132
+ * STSClientConfig to be used for creating STS Client for assuming role.
133
133
  * @internal
134
134
  */
135
- clientConfig?: STSClientConfig;
135
+ clientConfig?: any;
136
136
  /**
137
137
  * @internal
138
138
  */
@@ -4,7 +4,6 @@ import {
4
4
  AwsCredentialIdentityProvider,
5
5
  Pluggable,
6
6
  } from "@smithy/types";
7
- import { STSClientConfig } from "./loadSts";
8
7
  export interface AssumeRoleWithWebIdentityParams {
9
8
  RoleArn: string;
10
9
  RoleSessionName: string;
@@ -32,7 +31,7 @@ export interface FromWebTokenInit
32
31
  roleAssumerWithWebIdentity?: (
33
32
  params: AssumeRoleWithWebIdentityParams
34
33
  ) => Promise<AwsCredentialIdentity>;
35
- clientConfig?: STSClientConfig;
34
+ clientConfig?: any;
36
35
  clientPlugins?: Pluggable<any, any>[];
37
36
  }
38
37
  export declare const fromWebToken: (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.554.0",
3
+ "version": "3.565.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,7 +32,6 @@
32
32
  },
33
33
  "license": "Apache-2.0",
34
34
  "dependencies": {
35
- "@aws-sdk/client-sts": "3.554.0",
36
35
  "@aws-sdk/types": "3.535.0",
37
36
  "@smithy/property-provider": "^2.2.0",
38
37
  "@smithy/types": "^2.12.0",
@@ -46,6 +45,9 @@
46
45
  "rimraf": "3.0.2",
47
46
  "typescript": "~4.9.5"
48
47
  },
48
+ "peerDependencies": {
49
+ "@aws-sdk/client-sts": "^3.565.0"
50
+ },
49
51
  "types": "./dist-types/index.d.ts",
50
52
  "engines": {
51
53
  "node": ">=14.0.0"
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getDefaultRoleAssumerWithWebIdentity = void 0;
4
- const client_sts_1 = require("@aws-sdk/client-sts");
5
- Object.defineProperty(exports, "getDefaultRoleAssumerWithWebIdentity", { enumerable: true, get: function () { return client_sts_1.getDefaultRoleAssumerWithWebIdentity; } });
@@ -1,2 +0,0 @@
1
- import { getDefaultRoleAssumerWithWebIdentity } from "@aws-sdk/client-sts";
2
- export { getDefaultRoleAssumerWithWebIdentity };
@@ -1,3 +0,0 @@
1
- import { getDefaultRoleAssumerWithWebIdentity } from "@aws-sdk/client-sts";
2
- export { getDefaultRoleAssumerWithWebIdentity };
3
- export type { STSClientConfig } from "@aws-sdk/client-sts";
@@ -1,3 +0,0 @@
1
- import { getDefaultRoleAssumerWithWebIdentity } from "@aws-sdk/client-sts";
2
- export { getDefaultRoleAssumerWithWebIdentity };
3
- export { STSClientConfig } from "@aws-sdk/client-sts";