@aws-sdk/credential-provider-web-identity 3.556.0 → 3.567.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/dist-cjs/fromWebToken.js +1 -1
- package/dist-es/fromWebToken.js +1 -1
- package/dist-types/fromWebToken.d.ts +2 -2
- package/dist-types/ts3.4/fromWebToken.d.ts +1 -2
- package/package.json +6 -4
- package/dist-cjs/loadSts.js +0 -5
- package/dist-es/loadSts.js +0 -2
- package/dist-types/loadSts.d.ts +0 -3
- package/dist-types/ts3.4/loadSts.d.ts +0 -3
package/dist-cjs/fromWebToken.js
CHANGED
|
@@ -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("
|
|
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,
|
package/dist-es/fromWebToken.js
CHANGED
|
@@ -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("
|
|
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?:
|
|
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?:
|
|
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.
|
|
3
|
+
"version": "3.567.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,8 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@aws-sdk/
|
|
36
|
-
"@aws-sdk/types": "3.535.0",
|
|
35
|
+
"@aws-sdk/types": "3.567.0",
|
|
37
36
|
"@smithy/property-provider": "^2.2.0",
|
|
38
37
|
"@smithy/types": "^2.12.0",
|
|
39
38
|
"tslib": "^2.6.2"
|
|
@@ -46,9 +45,12 @@
|
|
|
46
45
|
"rimraf": "3.0.2",
|
|
47
46
|
"typescript": "~4.9.5"
|
|
48
47
|
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@aws-sdk/client-sts": "^3.567.0"
|
|
50
|
+
},
|
|
49
51
|
"types": "./dist-types/index.d.ts",
|
|
50
52
|
"engines": {
|
|
51
|
-
"node": ">=
|
|
53
|
+
"node": ">=16.0.0"
|
|
52
54
|
},
|
|
53
55
|
"typesVersions": {
|
|
54
56
|
"<4.0": {
|
package/dist-cjs/loadSts.js
DELETED
|
@@ -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; } });
|
package/dist-es/loadSts.js
DELETED
package/dist-types/loadSts.d.ts
DELETED