@aws-sdk/types 3.197.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 +11 -0
- package/dist-types/logger.d.ts +6 -5
- package/dist-types/ts3.4/logger.d.ts +7 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
|
|
6
17
|
# [3.197.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.196.0...v3.197.0) (2022-10-26)
|
|
7
18
|
|
|
8
19
|
|
package/dist-types/logger.d.ts
CHANGED
|
@@ -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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
}
|