@aws-sdk/types 3.49.0 → 3.53.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 +30 -0
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/stream.js +2 -0
- package/dist-es/index.js +1 -0
- package/dist-es/stream.js +1 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/shapes.d.ts +4 -0
- package/dist-types/stream.d.ts +16 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/shapes.d.ts +1 -0
- package/dist-types/ts3.4/stream.d.ts +13 -0
- package/package.json +2 -2
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.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/types
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **smithy-client:** implement SdkException class ([#3261](https://github.com/aws/aws-sdk-js-v3/issues/3261)) ([6a23634](https://github.com/aws/aws-sdk-js-v3/commit/6a23634ec278fe0d275f58fb6b981440be6a3db8))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.49.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.48.0...v3.49.0) (2022-01-29)
|
|
7
37
|
|
|
8
38
|
**Note:** Version bump only for package @aws-sdk/types
|
package/dist-cjs/index.js
CHANGED
|
@@ -15,6 +15,7 @@ tslib_1.__exportStar(require("./response"), exports);
|
|
|
15
15
|
tslib_1.__exportStar(require("./serde"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./shapes"), exports);
|
|
17
17
|
tslib_1.__exportStar(require("./signature"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./stream"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./transfer"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./util"), exports);
|
|
20
21
|
tslib_1.__exportStar(require("./waiter"), exports);
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-types/index.d.ts
CHANGED
package/dist-types/shapes.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface RetryableTrait {
|
|
|
24
24
|
/**
|
|
25
25
|
* Type that is implemented by all Smithy shapes marked with the
|
|
26
26
|
* error trait.
|
|
27
|
+
* @deprecated
|
|
27
28
|
*/
|
|
28
29
|
export interface SmithyException {
|
|
29
30
|
/**
|
|
@@ -47,4 +48,7 @@ export interface SmithyException {
|
|
|
47
48
|
*/
|
|
48
49
|
readonly $response?: HttpResponse;
|
|
49
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated
|
|
53
|
+
*/
|
|
50
54
|
export declare type SdkError = Error & Partial<SmithyException> & Partial<MetadataBearer>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HashConstructor, StreamHasher } from "./crypto";
|
|
2
|
+
import { Encoder } from "./util";
|
|
3
|
+
export interface GetAwsChunkedEncodingStreamOptions {
|
|
4
|
+
base64Encoder?: Encoder;
|
|
5
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HashConstructor, StreamHasher } from "./crypto";
|
|
2
|
+
import { Encoder } from "./util";
|
|
3
|
+
export interface GetAwsChunkedEncodingStreamOptions {
|
|
4
|
+
base64Encoder?: Encoder;
|
|
5
|
+
bodyLengthChecker: (body: any) => number | undefined;
|
|
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.
|
|
3
|
+
"version": "3.53.0",
|
|
4
4
|
"main": "./dist-cjs/index.js",
|
|
5
5
|
"module": "./dist-es/index.js",
|
|
6
6
|
"types": "./dist-types/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"build:es": "tsc -p tsconfig.es.json",
|
|
12
12
|
"build:types": "tsc -p tsconfig.types.json",
|
|
13
13
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
14
|
-
"clean": "rimraf ./dist-*",
|
|
14
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
15
15
|
"test": "exit 0"
|
|
16
16
|
},
|
|
17
17
|
"author": {
|