@aws-sdk/types 3.193.0 → 3.198.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,28 @@
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.198.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.197.0...v3.198.0) (2022-10-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **types:** make logger.trace an optional function ([#4110](https://github.com/aws/aws-sdk-js-v3/issues/4110)) ([7d95b34](https://github.com/aws/aws-sdk-js-v3/commit/7d95b34dd2d1f3e480db0000cabd97f2299cda24))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.197.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.196.0...v3.197.0) (2022-10-26)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **types:** expand custom endpoint type ([#4097](https://github.com/aws/aws-sdk-js-v3/issues/4097)) ([3620ce4](https://github.com/aws/aws-sdk-js-v3/commit/3620ce4162435b9688823162281140f40365b14c))
23
+
24
+
25
+
26
+
27
+
6
28
  # [3.193.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.192.0...v3.193.0) (2022-10-20)
7
29
 
8
30
 
@@ -52,6 +52,9 @@ export interface HttpMessage {
52
52
  * to null when query is not in key-value pairs shape
53
53
  */
54
54
  export declare type QueryParameterBag = Record<string, string | Array<string> | null>;
55
+ /**
56
+ * @deprecated use EndpointV2 from @aws-sdk/types.
57
+ */
55
58
  export interface Endpoint {
56
59
  protocol: string;
57
60
  hostname: string;
@@ -6,7 +6,7 @@
6
6
  * @example new Logger({logLevel: 'warn'}) will print all the warn and error
7
7
  * message.
8
8
  */
9
- export declare type LogLevel = "all" | "log" | "info" | "warn" | "error" | "off";
9
+ export declare type LogLevel = "all" | "trace" | "debug" | "log" | "info" | "warn" | "error" | "off";
10
10
  /**
11
11
  * An object consumed by Logger constructor to initiate a logger object.
12
12
  */
@@ -19,8 +19,9 @@ export interface LoggerOptions {
19
19
  * throughout the middleware stack.
20
20
  */
21
21
  export interface Logger {
22
- debug(...content: any[]): void;
23
- info(...content: any[]): void;
24
- warn(...content: any[]): void;
25
- error(...content: any[]): void;
22
+ trace?: (...content: any[]) => void;
23
+ debug: (...content: any[]) => void;
24
+ info: (...content: any[]) => void;
25
+ warn: (...content: any[]) => void;
26
+ error: (...content: any[]) => void;
26
27
  }
@@ -1,5 +1,7 @@
1
1
  export declare type LogLevel =
2
2
  | "all"
3
+ | "trace"
4
+ | "debug"
3
5
  | "log"
4
6
  | "info"
5
7
  | "warn"
@@ -10,8 +12,9 @@ export interface LoggerOptions {
10
12
  logLevel?: LogLevel;
11
13
  }
12
14
  export interface Logger {
13
- debug(...content: any[]): void;
14
- info(...content: any[]): void;
15
- warn(...content: any[]): void;
16
- error(...content: any[]): void;
15
+ trace?: (...content: any[]) => void;
16
+ debug: (...content: any[]) => void;
17
+ info: (...content: any[]) => void;
18
+ warn: (...content: any[]) => void;
19
+ error: (...content: any[]) => void;
17
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.193.0",
3
+ "version": "3.198.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",