@aws-sdk/middleware-token 3.162.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 +16 -0
- package/dist-types/ts3.4/configurations.d.ts +10 -12
- package/dist-types/ts3.4/getTokenPlugin.d.ts +5 -3
- package/dist-types/ts3.4/index.d.ts +4 -4
- package/dist-types/ts3.4/normalizeTokenProvider.d.ts +4 -2
- package/dist-types/ts3.4/resolveTokenConfig.d.ts +8 -2
- package/dist-types/ts3.4/tokenMiddleware.d.ts +12 -4
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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/middleware-token
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.168.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.167.0...v3.168.0) (2022-09-09)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/middleware-token
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [3.162.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.161.0...v3.162.0) (2022-08-31)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @aws-sdk/middleware-token
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { Token, TokenProvider } from "@aws-sdk/types";
|
|
2
|
-
export interface TokenInputConfig {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
token: TokenProvider;
|
|
12
|
-
}
|
|
1
|
+
import { Token, TokenProvider } from "@aws-sdk/types";
|
|
2
|
+
export interface TokenInputConfig {
|
|
3
|
+
token?: Token | TokenProvider;
|
|
4
|
+
}
|
|
5
|
+
export interface TokenPreviouslyResolved {
|
|
6
|
+
tokenDefaultProvider: (input: any) => TokenProvider;
|
|
7
|
+
}
|
|
8
|
+
export interface TokenResolvedConfig {
|
|
9
|
+
token: TokenProvider;
|
|
10
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { Pluggable } from "@aws-sdk/types";
|
|
2
|
-
import { TokenResolvedConfig } from "./configurations";
|
|
3
|
-
export declare const getTokenPlugin: (
|
|
1
|
+
import { Pluggable } from "@aws-sdk/types";
|
|
2
|
+
import { TokenResolvedConfig } from "./configurations";
|
|
3
|
+
export declare const getTokenPlugin: (
|
|
4
|
+
options: TokenResolvedConfig
|
|
5
|
+
) => Pluggable<any, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./configurations";
|
|
2
|
-
export * from "./getTokenPlugin";
|
|
3
|
-
export * from "./resolveTokenConfig";
|
|
4
|
-
export * from "./tokenMiddleware";
|
|
1
|
+
export * from "./configurations";
|
|
2
|
+
export * from "./getTokenPlugin";
|
|
3
|
+
export * from "./resolveTokenConfig";
|
|
4
|
+
export * from "./tokenMiddleware";
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { MemoizedProvider, Token, TokenProvider } from "@aws-sdk/types";
|
|
2
|
-
export declare const normalizeTokenProvider: (
|
|
1
|
+
import { MemoizedProvider, Token, TokenProvider } from "@aws-sdk/types";
|
|
2
|
+
export declare const normalizeTokenProvider: (
|
|
3
|
+
token: Token | TokenProvider
|
|
4
|
+
) => MemoizedProvider<Token>;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
TokenInputConfig,
|
|
3
|
+
TokenPreviouslyResolved,
|
|
4
|
+
TokenResolvedConfig,
|
|
5
|
+
} from "./configurations";
|
|
6
|
+
export declare const resolveTokenConfig: <T>(
|
|
7
|
+
input: T & TokenInputConfig & TokenPreviouslyResolved
|
|
8
|
+
) => T & TokenResolvedConfig;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import {
|
|
2
|
+
FinalizeRequestMiddleware,
|
|
3
|
+
RelativeMiddlewareOptions,
|
|
4
|
+
} from "@aws-sdk/types";
|
|
5
|
+
import { TokenResolvedConfig } from "./configurations";
|
|
6
|
+
export declare const TokenMiddlewareOptions: RelativeMiddlewareOptions;
|
|
7
|
+
export declare const tokenMiddleware: <
|
|
8
|
+
Input extends object,
|
|
9
|
+
Output extends object
|
|
10
|
+
>(
|
|
11
|
+
options: TokenResolvedConfig
|
|
12
|
+
) => 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.170.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",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
10
10
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
11
11
|
"build:es": "tsc -p tsconfig.es.json",
|
|
12
|
+
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
12
13
|
"build:types": "tsc -p tsconfig.types.json",
|
|
13
14
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
14
15
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
@@ -24,17 +25,17 @@
|
|
|
24
25
|
},
|
|
25
26
|
"license": "Apache-2.0",
|
|
26
27
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/property-provider": "3.
|
|
28
|
-
"@aws-sdk/protocol-http": "3.
|
|
29
|
-
"@aws-sdk/types": "3.
|
|
30
|
-
"@aws-sdk/util-middleware": "3.
|
|
28
|
+
"@aws-sdk/property-provider": "3.170.0",
|
|
29
|
+
"@aws-sdk/protocol-http": "3.170.0",
|
|
30
|
+
"@aws-sdk/types": "3.170.0",
|
|
31
|
+
"@aws-sdk/util-middleware": "3.170.0",
|
|
31
32
|
"tslib": "^2.3.1"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@tsconfig/recommended": "1.0.1",
|
|
35
36
|
"@types/node": "^10.0.0",
|
|
36
37
|
"concurrently": "7.0.0",
|
|
37
|
-
"downlevel-dts": "0.
|
|
38
|
+
"downlevel-dts": "0.10.1",
|
|
38
39
|
"rimraf": "3.0.2",
|
|
39
40
|
"typedoc": "0.19.2",
|
|
40
41
|
"typescript": "~4.6.2"
|