@aws-sdk/middleware-user-agent 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
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-user-agent
|
|
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-user-agent
|
|
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-user-agent
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Provider, UserAgent } from "@aws-sdk/types";
|
|
2
|
-
export interface UserAgentInputConfig {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export {};
|
|
1
|
+
import { Provider, UserAgent } from "@aws-sdk/types";
|
|
2
|
+
export interface UserAgentInputConfig {
|
|
3
|
+
customUserAgent?: string | UserAgent;
|
|
4
|
+
}
|
|
5
|
+
interface PreviouslyResolved {
|
|
6
|
+
defaultUserAgentProvider: Provider<UserAgent>;
|
|
7
|
+
runtime: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UserAgentResolvedConfig {
|
|
10
|
+
defaultUserAgentProvider: Provider<UserAgent>;
|
|
11
|
+
|
|
12
|
+
customUserAgent?: UserAgent;
|
|
13
|
+
|
|
14
|
+
runtime: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function resolveUserAgentConfig<T>(
|
|
17
|
+
input: T & PreviouslyResolved & UserAgentInputConfig
|
|
18
|
+
): T & UserAgentResolvedConfig;
|
|
19
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const USER_AGENT = "user-agent";
|
|
2
|
-
export declare const X_AMZ_USER_AGENT = "x-amz-user-agent";
|
|
3
|
-
export declare const SPACE = " ";
|
|
4
|
-
export declare const UA_ESCAPE_REGEX: RegExp;
|
|
1
|
+
export declare const USER_AGENT = "user-agent";
|
|
2
|
+
export declare const X_AMZ_USER_AGENT = "x-amz-user-agent";
|
|
3
|
+
export declare const SPACE = " ";
|
|
4
|
+
export declare const UA_ESCAPE_REGEX: RegExp;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./configurations";
|
|
2
|
-
export * from "./user-agent-middleware";
|
|
1
|
+
export * from "./configurations";
|
|
2
|
+
export * from "./user-agent-middleware";
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import {
|
|
2
|
+
AbsoluteLocation,
|
|
3
|
+
BuildHandler,
|
|
4
|
+
BuildHandlerOptions,
|
|
5
|
+
HandlerExecutionContext,
|
|
6
|
+
MetadataBearer,
|
|
7
|
+
Pluggable,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import { UserAgentResolvedConfig } from "./configurations";
|
|
10
|
+
|
|
11
|
+
export declare const userAgentMiddleware: (
|
|
12
|
+
options: UserAgentResolvedConfig
|
|
13
|
+
) => <Output extends MetadataBearer>(
|
|
14
|
+
next: BuildHandler<any, any>,
|
|
15
|
+
context: HandlerExecutionContext
|
|
16
|
+
) => BuildHandler<any, any>;
|
|
17
|
+
export declare const getUserAgentMiddlewareOptions: BuildHandlerOptions &
|
|
18
|
+
AbsoluteLocation;
|
|
19
|
+
export declare const getUserAgentPlugin: (
|
|
20
|
+
config: UserAgentResolvedConfig
|
|
21
|
+
) => Pluggable<any, any>;
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.170.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently '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
|
+
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
8
9
|
"build:types": "tsc -p tsconfig.types.json",
|
|
9
10
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
10
11
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
@@ -19,15 +20,15 @@
|
|
|
19
20
|
},
|
|
20
21
|
"license": "Apache-2.0",
|
|
21
22
|
"dependencies": {
|
|
22
|
-
"@aws-sdk/protocol-http": "3.
|
|
23
|
-
"@aws-sdk/types": "3.
|
|
23
|
+
"@aws-sdk/protocol-http": "3.170.0",
|
|
24
|
+
"@aws-sdk/types": "3.170.0",
|
|
24
25
|
"tslib": "^2.3.1"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
|
-
"@aws-sdk/middleware-stack": "3.
|
|
28
|
+
"@aws-sdk/middleware-stack": "3.170.0",
|
|
28
29
|
"@tsconfig/recommended": "1.0.1",
|
|
29
30
|
"concurrently": "7.0.0",
|
|
30
|
-
"downlevel-dts": "0.
|
|
31
|
+
"downlevel-dts": "0.10.1",
|
|
31
32
|
"rimraf": "3.0.2",
|
|
32
33
|
"typedoc": "0.19.2",
|
|
33
34
|
"typescript": "~4.6.2"
|