@aws-sdk/types 3.52.0 → 3.54.1

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,36 @@
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.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/types
9
+
10
+
11
+
12
+
13
+
14
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
15
+
16
+
17
+ ### Features
18
+
19
+ * **credential-provider-imds:** accept custom logger ([#3409](https://github.com/aws/aws-sdk-js-v3/issues/3409)) ([11c4a7b](https://github.com/aws/aws-sdk-js-v3/commit/11c4a7b5ac00763139f130595a37e182d34d9a72))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
26
+
27
+
28
+ ### Features
29
+
30
+ * **util-stream:** add getAwsChunkedEncodingStream ([#3339](https://github.com/aws/aws-sdk-js-v3/issues/3339)) ([42d433b](https://github.com/aws/aws-sdk-js-v3/commit/42d433b274eeeb38db268af4d6d48c972fc10486))
31
+
32
+
33
+
34
+
35
+
6
36
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
37
 
8
38
  **Note:** Version bump only for package @aws-sdk/types
package/dist-cjs/index.js CHANGED
@@ -11,10 +11,12 @@ tslib_1.__exportStar(require("./http"), exports);
11
11
  tslib_1.__exportStar(require("./logger"), exports);
12
12
  tslib_1.__exportStar(require("./middleware"), exports);
13
13
  tslib_1.__exportStar(require("./pagination"), exports);
14
+ tslib_1.__exportStar(require("./profile"), exports);
14
15
  tslib_1.__exportStar(require("./response"), exports);
15
16
  tslib_1.__exportStar(require("./serde"), exports);
16
17
  tslib_1.__exportStar(require("./shapes"), exports);
17
18
  tslib_1.__exportStar(require("./signature"), exports);
19
+ tslib_1.__exportStar(require("./stream"), exports);
18
20
  tslib_1.__exportStar(require("./transfer"), exports);
19
21
  tslib_1.__exportStar(require("./util"), exports);
20
22
  tslib_1.__exportStar(require("./waiter"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist-es/index.js CHANGED
@@ -8,10 +8,12 @@ export * from "./http";
8
8
  export * from "./logger";
9
9
  export * from "./middleware";
10
10
  export * from "./pagination";
11
+ export * from "./profile";
11
12
  export * from "./response";
12
13
  export * from "./serde";
13
14
  export * from "./shapes";
14
15
  export * from "./signature";
16
+ export * from "./stream";
15
17
  export * from "./transfer";
16
18
  export * from "./util";
17
19
  export * from "./waiter";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -8,10 +8,12 @@ export * from "./http";
8
8
  export * from "./logger";
9
9
  export * from "./middleware";
10
10
  export * from "./pagination";
11
+ export * from "./profile";
11
12
  export * from "./response";
12
13
  export * from "./serde";
13
14
  export * from "./shapes";
14
15
  export * from "./signature";
16
+ export * from "./stream";
15
17
  export * from "./transfer";
16
18
  export * from "./util";
17
19
  export * from "./waiter";
@@ -19,8 +19,8 @@ export interface LoggerOptions {
19
19
  * throughout the middleware stack.
20
20
  */
21
21
  export interface Logger {
22
- debug(content: object): void;
23
- info(content: object): void;
24
- warn(content: object): void;
25
- error(content: object): void;
22
+ debug(...content: any[]): void;
23
+ info(...content: any[]): void;
24
+ warn(...content: any[]): void;
25
+ error(...content: any[]): void;
26
26
  }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export interface Profile {
5
+ [key: string]: string | undefined;
6
+ }
7
+ /**
8
+ * @internal
9
+ */
10
+ export interface ParsedIniData {
11
+ [key: string]: Profile;
12
+ }
13
+ /**
14
+ * @internal
15
+ */
16
+ export interface SharedConfigFiles {
17
+ credentialsFile: ParsedIniData;
18
+ configFile: ParsedIniData;
19
+ }
@@ -0,0 +1,16 @@
1
+ import { HashConstructor, StreamHasher } from "./crypto";
2
+ import { BodyLengthCalculator, Encoder } from "./util";
3
+ export interface GetAwsChunkedEncodingStreamOptions {
4
+ base64Encoder?: Encoder;
5
+ bodyLengthChecker: BodyLengthCalculator;
6
+ checksumAlgorithmFn?: HashConstructor;
7
+ checksumLocationName?: string;
8
+ streamHasher?: StreamHasher;
9
+ }
10
+ /**
11
+ * A function that returns Readable Stream which follows aws-chunked encoding stream.
12
+ * It optionally adds checksum if options are provided.
13
+ */
14
+ export interface GetAwsChunkedEncodingStream<StreamType = any> {
15
+ (readableStream: StreamType, options: GetAwsChunkedEncodingStreamOptions): StreamType;
16
+ }
@@ -8,10 +8,12 @@ export * from "./http";
8
8
  export * from "./logger";
9
9
  export * from "./middleware";
10
10
  export * from "./pagination";
11
+ export * from "./profile";
11
12
  export * from "./response";
12
13
  export * from "./serde";
13
14
  export * from "./shapes";
14
15
  export * from "./signature";
16
+ export * from "./stream";
15
17
  export * from "./transfer";
16
18
  export * from "./util";
17
19
  export * from "./waiter";
@@ -7,8 +7,8 @@ export interface LoggerOptions {
7
7
  }
8
8
 
9
9
  export interface Logger {
10
- debug(content: object): void;
11
- info(content: object): void;
12
- warn(content: object): void;
13
- error(content: object): void;
10
+ debug(...content: any[]): void;
11
+ info(...content: any[]): void;
12
+ warn(...content: any[]): void;
13
+ error(...content: any[]): void;
14
14
  }
@@ -0,0 +1,13 @@
1
+
2
+ export interface Profile {
3
+ [key: string]: string | undefined;
4
+ }
5
+
6
+ export interface ParsedIniData {
7
+ [key: string]: Profile;
8
+ }
9
+
10
+ export interface SharedConfigFiles {
11
+ credentialsFile: ParsedIniData;
12
+ configFile: ParsedIniData;
13
+ }
@@ -0,0 +1,13 @@
1
+ import { HashConstructor, StreamHasher } from "./crypto";
2
+ import { BodyLengthCalculator, Encoder } from "./util";
3
+ export interface GetAwsChunkedEncodingStreamOptions {
4
+ base64Encoder?: Encoder;
5
+ bodyLengthChecker: BodyLengthCalculator;
6
+ checksumAlgorithmFn?: HashConstructor;
7
+ checksumLocationName?: string;
8
+ streamHasher?: StreamHasher;
9
+ }
10
+
11
+ export interface GetAwsChunkedEncodingStream<StreamType = any> {
12
+ (readableStream: StreamType, options: GetAwsChunkedEncodingStreamOptions): StreamType;
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.52.0",
3
+ "version": "3.54.1",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",