@aws-sdk/types 3.37.0 → 3.47.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 +40 -0
- package/dist-cjs/index.js +2 -2
- package/dist-es/index.js +2 -2
- package/dist-types/index.d.ts +2 -2
- package/dist-types/shapes.d.ts +5 -0
- package/dist-types/ts3.4/index.d.ts +2 -2
- package/dist-types/ts3.4/shapes.d.ts +3 -0
- package/dist-types/ts3.4/util.d.ts +8 -1
- package/dist-types/util.d.ts +16 -1
- package/package.json +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,46 @@
|
|
|
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.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/types
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **middleware-signing:** correct clock skew from error response ([#3133](https://github.com/aws/aws-sdk-js-v3/issues/3133)) ([7a207a9](https://github.com/aws/aws-sdk-js-v3/commit/7a207a9d3173631f62f8b90ee1fbd7f68342133a))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **packages:** end support for Node.js 10.x ([#3141](https://github.com/aws/aws-sdk-js-v3/issues/3141)) ([1a62865](https://github.com/aws/aws-sdk-js-v3/commit/1a6286513f7cdb556708845c512861c5f92eb883))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @aws-sdk/types
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @aws-sdk/types
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
6
46
|
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
7
47
|
|
|
8
48
|
**Note:** Version bump only for package @aws-sdk/types
|
package/dist-cjs/index.js
CHANGED
|
@@ -9,10 +9,10 @@ tslib_1.__exportStar(require("./crypto"), exports);
|
|
|
9
9
|
tslib_1.__exportStar(require("./eventStream"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./http"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./logger"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./pagination"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./serde"), exports);
|
|
14
12
|
tslib_1.__exportStar(require("./middleware"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
15
14
|
tslib_1.__exportStar(require("./response"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./serde"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./shapes"), exports);
|
|
17
17
|
tslib_1.__exportStar(require("./signature"), exports);
|
|
18
18
|
tslib_1.__exportStar(require("./transfer"), exports);
|
package/dist-es/index.js
CHANGED
|
@@ -6,10 +6,10 @@ export * from "./crypto";
|
|
|
6
6
|
export * from "./eventStream";
|
|
7
7
|
export * from "./http";
|
|
8
8
|
export * from "./logger";
|
|
9
|
-
export * from "./pagination";
|
|
10
|
-
export * from "./serde";
|
|
11
9
|
export * from "./middleware";
|
|
10
|
+
export * from "./pagination";
|
|
12
11
|
export * from "./response";
|
|
12
|
+
export * from "./serde";
|
|
13
13
|
export * from "./shapes";
|
|
14
14
|
export * from "./signature";
|
|
15
15
|
export * from "./transfer";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ export * from "./crypto";
|
|
|
6
6
|
export * from "./eventStream";
|
|
7
7
|
export * from "./http";
|
|
8
8
|
export * from "./logger";
|
|
9
|
-
export * from "./pagination";
|
|
10
|
-
export * from "./serde";
|
|
11
9
|
export * from "./middleware";
|
|
10
|
+
export * from "./pagination";
|
|
12
11
|
export * from "./response";
|
|
12
|
+
export * from "./serde";
|
|
13
13
|
export * from "./shapes";
|
|
14
14
|
export * from "./signature";
|
|
15
15
|
export * from "./transfer";
|
package/dist-types/shapes.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HttpResponse } from "./http";
|
|
1
2
|
import { MetadataBearer } from "./response";
|
|
2
3
|
/**
|
|
3
4
|
* A document type represents an untyped JSON-like value.
|
|
@@ -41,5 +42,9 @@ export interface SmithyException {
|
|
|
41
42
|
* Indicates that an error MAY be retried by the client.
|
|
42
43
|
*/
|
|
43
44
|
readonly $retryable?: RetryableTrait;
|
|
45
|
+
/**
|
|
46
|
+
* Reference to low-level HTTP response object.
|
|
47
|
+
*/
|
|
48
|
+
readonly $response?: HttpResponse;
|
|
44
49
|
}
|
|
45
50
|
export declare type SdkError = Error & Partial<SmithyException> & Partial<MetadataBearer>;
|
|
@@ -6,10 +6,10 @@ export * from "./crypto";
|
|
|
6
6
|
export * from "./eventStream";
|
|
7
7
|
export * from "./http";
|
|
8
8
|
export * from "./logger";
|
|
9
|
-
export * from "./pagination";
|
|
10
|
-
export * from "./serde";
|
|
11
9
|
export * from "./middleware";
|
|
10
|
+
export * from "./pagination";
|
|
12
11
|
export * from "./response";
|
|
12
|
+
export * from "./serde";
|
|
13
13
|
export * from "./shapes";
|
|
14
14
|
export * from "./signature";
|
|
15
15
|
export * from "./transfer";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HttpResponse } from "./http";
|
|
1
2
|
import { MetadataBearer } from "./response";
|
|
2
3
|
|
|
3
4
|
export declare type DocumentType = null | boolean | number | string | DocumentType[] | {
|
|
@@ -18,5 +19,7 @@ export interface SmithyException {
|
|
|
18
19
|
readonly $service?: string;
|
|
19
20
|
|
|
20
21
|
readonly $retryable?: RetryableTrait;
|
|
22
|
+
|
|
23
|
+
readonly $response?: HttpResponse;
|
|
21
24
|
}
|
|
22
25
|
export declare type SdkError = Error & Partial<SmithyException> & Partial<MetadataBearer>;
|
|
@@ -37,8 +37,15 @@ export interface RegionInfo {
|
|
|
37
37
|
signingRegion?: string;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
export interface RegionInfoProviderOptions {
|
|
41
|
+
|
|
42
|
+
useDualstackEndpoint: boolean;
|
|
43
|
+
|
|
44
|
+
useFipsEndpoint: boolean;
|
|
45
|
+
}
|
|
46
|
+
|
|
40
47
|
export interface RegionInfoProvider {
|
|
41
|
-
(region: string, options?:
|
|
48
|
+
(region: string, options?: RegionInfoProviderOptions): Promise<RegionInfo | undefined>;
|
|
42
49
|
}
|
|
43
50
|
|
|
44
51
|
export declare type UserAgentPair = [
|
package/dist-types/util.d.ts
CHANGED
|
@@ -76,6 +76,21 @@ export interface RegionInfo {
|
|
|
76
76
|
signingService?: string;
|
|
77
77
|
signingRegion?: string;
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Options to pass when calling {@link RegionInfoProvider}
|
|
81
|
+
*/
|
|
82
|
+
export interface RegionInfoProviderOptions {
|
|
83
|
+
/**
|
|
84
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
85
|
+
* @default false
|
|
86
|
+
*/
|
|
87
|
+
useDualstackEndpoint: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Enables FIPS compatible endpoints.
|
|
90
|
+
* @default false
|
|
91
|
+
*/
|
|
92
|
+
useFipsEndpoint: boolean;
|
|
93
|
+
}
|
|
79
94
|
/**
|
|
80
95
|
* Function returns designated service's regionalization
|
|
81
96
|
* information from given region. Each service client
|
|
@@ -83,7 +98,7 @@ export interface RegionInfo {
|
|
|
83
98
|
* to provide the default values of related configurations
|
|
84
99
|
*/
|
|
85
100
|
export interface RegionInfoProvider {
|
|
86
|
-
(region: string, options?:
|
|
101
|
+
(region: string, options?: RegionInfoProviderOptions): Promise<RegionInfo | undefined>;
|
|
87
102
|
}
|
|
88
103
|
/**
|
|
89
104
|
* A tuple that represents an API name and optional version
|
package/package.json
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.47.0",
|
|
4
4
|
"main": "./dist-cjs/index.js",
|
|
5
5
|
"module": "./dist-es/index.js",
|
|
6
6
|
"types": "./dist-types/index.d.ts",
|
|
7
7
|
"description": "Types for the AWS SDK",
|
|
8
|
-
"devDependencies": {
|
|
9
|
-
"typescript": "~4.3.5"
|
|
10
|
-
},
|
|
11
8
|
"scripts": {
|
|
12
9
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
13
10
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
14
11
|
"build:es": "tsc -p tsconfig.es.json",
|
|
15
12
|
"build:types": "tsc -p tsconfig.types.json",
|
|
16
|
-
"downlevel
|
|
13
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
14
|
+
"clean": "rimraf ./dist-*",
|
|
17
15
|
"test": "exit 0"
|
|
18
16
|
},
|
|
19
17
|
"author": {
|
|
@@ -22,7 +20,7 @@
|
|
|
22
20
|
},
|
|
23
21
|
"license": "Apache-2.0",
|
|
24
22
|
"engines": {
|
|
25
|
-
"node": ">=
|
|
23
|
+
"node": ">= 12.0.0"
|
|
26
24
|
},
|
|
27
25
|
"typesVersions": {
|
|
28
26
|
"<4.0": {
|