@aws-sdk/client-appconfigdata 3.118.1 → 3.121.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,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.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-appconfigdata
|
|
@@ -88,8 +88,7 @@ const deserializeAws_restJson1GetLatestConfigurationCommandError = async (output
|
|
|
88
88
|
body: await parseBody(output.body, context),
|
|
89
89
|
};
|
|
90
90
|
let response;
|
|
91
|
-
|
|
92
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
91
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
93
92
|
switch (errorCode) {
|
|
94
93
|
case "BadRequestException":
|
|
95
94
|
case "com.amazonaws.appconfigdata#BadRequestException":
|
|
@@ -105,10 +104,12 @@ const deserializeAws_restJson1GetLatestConfigurationCommandError = async (output
|
|
|
105
104
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
106
105
|
default:
|
|
107
106
|
const parsedBody = parsedOutput.body;
|
|
107
|
+
const $metadata = deserializeMetadata(output);
|
|
108
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
108
109
|
response = new AppConfigDataServiceException_1.AppConfigDataServiceException({
|
|
109
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
110
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
110
111
|
$fault: "client",
|
|
111
|
-
$metadata
|
|
112
|
+
$metadata,
|
|
112
113
|
});
|
|
113
114
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
114
115
|
}
|
|
@@ -134,8 +135,7 @@ const deserializeAws_restJson1StartConfigurationSessionCommandError = async (out
|
|
|
134
135
|
body: await parseBody(output.body, context),
|
|
135
136
|
};
|
|
136
137
|
let response;
|
|
137
|
-
|
|
138
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
138
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
139
139
|
switch (errorCode) {
|
|
140
140
|
case "BadRequestException":
|
|
141
141
|
case "com.amazonaws.appconfigdata#BadRequestException":
|
|
@@ -151,10 +151,12 @@ const deserializeAws_restJson1StartConfigurationSessionCommandError = async (out
|
|
|
151
151
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
152
152
|
default:
|
|
153
153
|
const parsedBody = parsedOutput.body;
|
|
154
|
+
const $metadata = deserializeMetadata(output);
|
|
155
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
154
156
|
response = new AppConfigDataServiceException_1.AppConfigDataServiceException({
|
|
155
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
157
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
156
158
|
$fault: "client",
|
|
157
|
-
$metadata
|
|
159
|
+
$metadata,
|
|
158
160
|
});
|
|
159
161
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
160
162
|
}
|
|
@@ -303,5 +305,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
303
305
|
if (data["__type"] !== undefined) {
|
|
304
306
|
return sanitizeErrorCode(data["__type"]);
|
|
305
307
|
}
|
|
306
|
-
return "";
|
|
307
308
|
};
|
|
@@ -91,7 +91,7 @@ export var deserializeAws_restJson1GetLatestConfigurationCommand = function (out
|
|
|
91
91
|
});
|
|
92
92
|
}); };
|
|
93
93
|
var deserializeAws_restJson1GetLatestConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
94
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
94
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
95
95
|
var _c;
|
|
96
96
|
return __generator(this, function (_d) {
|
|
97
97
|
switch (_d.label) {
|
|
@@ -101,7 +101,6 @@ var deserializeAws_restJson1GetLatestConfigurationCommandError = function (outpu
|
|
|
101
101
|
return [4, parseBody(output.body, context)];
|
|
102
102
|
case 1:
|
|
103
103
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
104
|
-
errorCode = "UnknownError";
|
|
105
104
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
106
105
|
_b = errorCode;
|
|
107
106
|
switch (_b) {
|
|
@@ -125,10 +124,12 @@ var deserializeAws_restJson1GetLatestConfigurationCommandError = function (outpu
|
|
|
125
124
|
case 9: throw _d.sent();
|
|
126
125
|
case 10:
|
|
127
126
|
parsedBody = parsedOutput.body;
|
|
127
|
+
$metadata = deserializeMetadata(output);
|
|
128
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
128
129
|
response = new __BaseException({
|
|
129
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
130
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
130
131
|
$fault: "client",
|
|
131
|
-
$metadata:
|
|
132
|
+
$metadata: $metadata,
|
|
132
133
|
});
|
|
133
134
|
throw __decorateServiceException(response, parsedBody);
|
|
134
135
|
}
|
|
@@ -159,7 +160,7 @@ export var deserializeAws_restJson1StartConfigurationSessionCommand = function (
|
|
|
159
160
|
});
|
|
160
161
|
}); };
|
|
161
162
|
var deserializeAws_restJson1StartConfigurationSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
162
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
163
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
163
164
|
var _c;
|
|
164
165
|
return __generator(this, function (_d) {
|
|
165
166
|
switch (_d.label) {
|
|
@@ -169,7 +170,6 @@ var deserializeAws_restJson1StartConfigurationSessionCommandError = function (ou
|
|
|
169
170
|
return [4, parseBody(output.body, context)];
|
|
170
171
|
case 1:
|
|
171
172
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
172
|
-
errorCode = "UnknownError";
|
|
173
173
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
174
174
|
_b = errorCode;
|
|
175
175
|
switch (_b) {
|
|
@@ -193,10 +193,12 @@ var deserializeAws_restJson1StartConfigurationSessionCommandError = function (ou
|
|
|
193
193
|
case 9: throw _d.sent();
|
|
194
194
|
case 10:
|
|
195
195
|
parsedBody = parsedOutput.body;
|
|
196
|
+
$metadata = deserializeMetadata(output);
|
|
197
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
196
198
|
response = new __BaseException({
|
|
197
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
199
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
198
200
|
$fault: "client",
|
|
199
|
-
$metadata:
|
|
201
|
+
$metadata: $metadata,
|
|
200
202
|
});
|
|
201
203
|
throw __decorateServiceException(response, parsedBody);
|
|
202
204
|
}
|
|
@@ -351,5 +353,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
351
353
|
if (data["__type"] !== undefined) {
|
|
352
354
|
return sanitizeErrorCode(data["__type"]);
|
|
353
355
|
}
|
|
354
|
-
return "";
|
|
355
356
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-appconfigdata",
|
|
3
3
|
"description": "AWS SDK for JavaScript Appconfigdata Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.121.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.121.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.110.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.121.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.110.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.110.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.110.0",
|