@aws-sdk/middleware-user-agent 3.36.0 → 3.46.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,41 @@
|
|
|
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.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **packages:** end support for Node.js 10.x ([#3141](https://github.com/aws/aws-sdk-js-v3/issues/3141)) ([1a62865](https://github.com/aws/aws-sdk-js-v3/commit/1a6286513f7cdb556708845c512861c5f92eb883))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/middleware-user-agent
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/middleware-user-agent
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @aws-sdk/middleware-user-agent
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
42
|
|
|
8
43
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Provider, UserAgent } from "@aws-sdk/types";
|
|
2
2
|
export interface UserAgentInputConfig {
|
|
3
|
-
|
|
4
|
-
* The custom user agent header that would be appended to default one
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
customUserAgent?: string | UserAgent;
|
|
7
5
|
}
|
|
8
6
|
interface PreviouslyResolved {
|
|
@@ -10,18 +8,11 @@ interface PreviouslyResolved {
|
|
|
10
8
|
runtime: string;
|
|
11
9
|
}
|
|
12
10
|
export interface UserAgentResolvedConfig {
|
|
13
|
-
|
|
14
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header.
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
11
|
+
|
|
17
12
|
defaultUserAgentProvider: Provider<UserAgent>;
|
|
18
|
-
|
|
19
|
-
* The custom user agent header that would be appended to default one
|
|
20
|
-
*/
|
|
13
|
+
|
|
21
14
|
customUserAgent?: UserAgent;
|
|
22
|
-
|
|
23
|
-
* The runtime environment
|
|
24
|
-
*/
|
|
15
|
+
|
|
25
16
|
runtime: string;
|
|
26
17
|
}
|
|
27
18
|
export declare function resolveUserAgentConfig<T>(input: T & PreviouslyResolved & UserAgentInputConfig): T & UserAgentResolvedConfig;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import { AbsoluteLocation, BuildHandler, BuildHandlerOptions, HandlerExecutionContext, MetadataBearer, Pluggable } from "@aws-sdk/types";
|
|
2
2
|
import { UserAgentResolvedConfig } from "./configurations";
|
|
3
|
-
|
|
4
|
-
* Build user agent header sections from:
|
|
5
|
-
* 1. runtime-specific default user agent provider;
|
|
6
|
-
* 2. custom user agent from `customUserAgent` client config;
|
|
7
|
-
* 3. handler execution context set by internal SDK components;
|
|
8
|
-
* The built user agent will be set to `x-amz-user-agent` header for ALL the
|
|
9
|
-
* runtimes.
|
|
10
|
-
* Please note that any override to the `user-agent` or `x-amz-user-agent` header
|
|
11
|
-
* in the HTTP request is discouraged. Please use `customUserAgent` client
|
|
12
|
-
* config or middleware setting the `userAgent` context to generate desired user
|
|
13
|
-
* agent.
|
|
14
|
-
*/
|
|
3
|
+
|
|
15
4
|
export declare const userAgentMiddleware: (options: UserAgentResolvedConfig) => <Output extends MetadataBearer>(next: BuildHandler<any, any>, context: HandlerExecutionContext) => BuildHandler<any, any>;
|
|
16
5
|
export declare const getUserAgentMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation;
|
|
17
6
|
export declare const getUserAgentPlugin: (config: UserAgentResolvedConfig) => Pluggable<any, any>;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.46.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
7
7
|
"build:es": "tsc -p tsconfig.es.json",
|
|
8
8
|
"build:types": "tsc -p tsconfig.types.json",
|
|
9
|
-
"downlevel
|
|
9
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
10
10
|
"test": "jest --passWithNoTests"
|
|
11
11
|
},
|
|
12
12
|
"main": "./dist-cjs/index.js",
|
|
@@ -18,18 +18,15 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@aws-sdk/protocol-http": "3.
|
|
22
|
-
"@aws-sdk/types": "3.
|
|
21
|
+
"@aws-sdk/protocol-http": "3.46.0",
|
|
22
|
+
"@aws-sdk/types": "3.46.0",
|
|
23
23
|
"tslib": "^2.3.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@aws-sdk/middleware-stack": "3.
|
|
27
|
-
"@types/jest": "^26.0.4",
|
|
28
|
-
"jest": "^26.1.0",
|
|
29
|
-
"typescript": "~4.3.5"
|
|
26
|
+
"@aws-sdk/middleware-stack": "3.46.0"
|
|
30
27
|
},
|
|
31
28
|
"engines": {
|
|
32
|
-
"node": ">=
|
|
29
|
+
"node": ">= 12.0.0"
|
|
33
30
|
},
|
|
34
31
|
"typesVersions": {
|
|
35
32
|
"<4.0": {
|