@aws-sdk/types 3.197.0 → 3.200.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.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **types:** extends check of generic in WithSdkStreamMixin ([#4119](https://github.com/aws/aws-sdk-js-v3/issues/4119)) ([299d245](https://github.com/aws/aws-sdk-js-v3/commit/299d245f63a69324bb973e28be79c055359c4d69))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.198.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.197.0...v3.198.0) (2022-10-27)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **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))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [3.197.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.196.0...v3.197.0) (2022-10-26)
|
|
7
29
|
|
|
8
30
|
|
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
|
}
|
package/dist-types/serde.d.ts
CHANGED
|
@@ -76,12 +76,12 @@ export interface SdkStreamMixin {
|
|
|
76
76
|
*/
|
|
77
77
|
export declare type SdkStream<BaseStream> = BaseStream & SdkStreamMixin;
|
|
78
78
|
/**
|
|
79
|
-
* Indicates that
|
|
80
|
-
*
|
|
79
|
+
* Indicates that the member of type T with
|
|
80
|
+
* key StreamKey have been extended
|
|
81
81
|
* with the SdkStreamMixin helper methods.
|
|
82
82
|
*/
|
|
83
83
|
export declare type WithSdkStreamMixin<T, StreamKey extends keyof T> = {
|
|
84
|
-
[key in keyof T]:
|
|
84
|
+
[key in keyof T]: key extends StreamKey ? SdkStream<T[StreamKey]> : T[key];
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
87
87
|
* Interface for internal function to inject stream utility functions
|
|
@@ -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
|
}
|
|
@@ -39,9 +39,7 @@ export interface SdkStreamMixin {
|
|
|
39
39
|
}
|
|
40
40
|
export declare type SdkStream<BaseStream> = BaseStream & SdkStreamMixin;
|
|
41
41
|
export declare type WithSdkStreamMixin<T, StreamKey extends keyof T> = {
|
|
42
|
-
[key in keyof T]:
|
|
43
|
-
? SdkStream<T[StreamKey]>
|
|
44
|
-
: T[key];
|
|
42
|
+
[key in keyof T]: key extends StreamKey ? SdkStream<T[StreamKey]> : T[key];
|
|
45
43
|
};
|
|
46
44
|
export interface SdkStreamMixinInjector {
|
|
47
45
|
(stream: unknown): SdkStreamMixin;
|