@aws-sdk/middleware-token 3.301.0 → 3.303.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-types/configurations.d.ts +6 -0
- package/dist-types/getTokenPlugin.d.ts +3 -0
- package/dist-types/index.d.ts +12 -0
- package/dist-types/normalizeTokenProvider.d.ts +3 -0
- package/dist-types/resolveTokenConfig.d.ts +3 -0
- package/dist-types/tokenDefaultProvider.browser.d.ts +3 -0
- package/dist-types/tokenDefaultProvider.d.ts +3 -0
- package/dist-types/tokenMiddleware.d.ts +6 -0
- package/package.json +6 -6
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
2
5
|
export interface TokenInputConfig {
|
|
3
6
|
/**
|
|
4
7
|
* The token used to authenticate requests.
|
|
5
8
|
*/
|
|
6
9
|
token?: TokenIdentity | TokenIdentityProvider;
|
|
7
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
8
14
|
export interface TokenResolvedConfig {
|
|
9
15
|
/**
|
|
10
16
|
* Resolved value for input config {@link TokenInputConfig.token}
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*/
|
|
1
4
|
export * from "./configurations";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
2
8
|
export * from "./getTokenPlugin";
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
3
12
|
export * from "./resolveTokenConfig";
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
4
16
|
export * from "./tokenMiddleware";
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { FinalizeRequestMiddleware, RelativeMiddlewareOptions } from "@aws-sdk/types";
|
|
2
2
|
import { TokenResolvedConfig } from "./configurations";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
3
6
|
export declare const tokenMiddlewareOptions: RelativeMiddlewareOptions;
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
4
10
|
export declare const tokenMiddleware: <Input extends object, Output extends object>(options: TokenResolvedConfig) => FinalizeRequestMiddleware<Input, Output>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-token",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.303.0",
|
|
4
4
|
"description": "Middleware and Plugin for setting token authentication",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/property-provider": "3.
|
|
29
|
-
"@aws-sdk/protocol-http": "3.
|
|
30
|
-
"@aws-sdk/token-providers": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-middleware": "3.
|
|
28
|
+
"@aws-sdk/property-provider": "3.303.0",
|
|
29
|
+
"@aws-sdk/protocol-http": "3.303.0",
|
|
30
|
+
"@aws-sdk/token-providers": "3.303.0",
|
|
31
|
+
"@aws-sdk/types": "3.303.0",
|
|
32
|
+
"@aws-sdk/util-middleware": "3.303.0",
|
|
33
33
|
"tslib": "^2.5.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|