@aws-sdk/client-rbin
Advanced tools
Comparing version 3.118.1 to 3.121.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30) | ||
### Features | ||
* **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)) | ||
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27) | ||
@@ -8,0 +19,0 @@ |
@@ -286,4 +286,3 @@ "use strict"; | ||
let response; | ||
let errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
@@ -301,6 +300,8 @@ case "InternalServerException": | ||
const parsedBody = parsedOutput.body; | ||
const $metadata = deserializeMetadata(output); | ||
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new RbinServiceException_1.RbinServiceException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata, | ||
}); | ||
@@ -327,4 +328,3 @@ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody); | ||
let response; | ||
let errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
@@ -342,6 +342,8 @@ case "InternalServerException": | ||
const parsedBody = parsedOutput.body; | ||
const $metadata = deserializeMetadata(output); | ||
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new RbinServiceException_1.RbinServiceException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata, | ||
}); | ||
@@ -392,4 +394,3 @@ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody); | ||
let response; | ||
let errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
@@ -407,6 +408,8 @@ case "InternalServerException": | ||
const parsedBody = parsedOutput.body; | ||
const $metadata = deserializeMetadata(output); | ||
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new RbinServiceException_1.RbinServiceException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata, | ||
}); | ||
@@ -441,4 +444,3 @@ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody); | ||
let response; | ||
let errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
@@ -453,6 +455,8 @@ case "InternalServerException": | ||
const parsedBody = parsedOutput.body; | ||
const $metadata = deserializeMetadata(output); | ||
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new RbinServiceException_1.RbinServiceException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata, | ||
}); | ||
@@ -483,4 +487,3 @@ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody); | ||
let response; | ||
let errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
@@ -498,6 +501,8 @@ case "InternalServerException": | ||
const parsedBody = parsedOutput.body; | ||
const $metadata = deserializeMetadata(output); | ||
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new RbinServiceException_1.RbinServiceException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata, | ||
}); | ||
@@ -524,4 +529,3 @@ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody); | ||
let response; | ||
let errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
@@ -542,6 +546,8 @@ case "InternalServerException": | ||
const parsedBody = parsedOutput.body; | ||
const $metadata = deserializeMetadata(output); | ||
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new RbinServiceException_1.RbinServiceException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata, | ||
}); | ||
@@ -568,4 +574,3 @@ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody); | ||
let response; | ||
let errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
@@ -583,6 +588,8 @@ case "InternalServerException": | ||
const parsedBody = parsedOutput.body; | ||
const $metadata = deserializeMetadata(output); | ||
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new RbinServiceException_1.RbinServiceException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata, | ||
}); | ||
@@ -633,4 +640,3 @@ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody); | ||
let response; | ||
let errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
switch (errorCode) { | ||
@@ -648,6 +654,8 @@ case "InternalServerException": | ||
const parsedBody = parsedOutput.body; | ||
const $metadata = deserializeMetadata(output); | ||
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new RbinServiceException_1.RbinServiceException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata, | ||
}); | ||
@@ -865,3 +873,2 @@ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody); | ||
} | ||
return ""; | ||
}; |
@@ -308,3 +308,3 @@ import { __assign, __awaiter, __generator } from "tslib"; | ||
var deserializeAws_restJson1CreateRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody; | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode; | ||
var _c; | ||
@@ -319,3 +319,2 @@ return __generator(this, function (_d) { | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
@@ -340,6 +339,8 @@ _b = errorCode; | ||
parsedBody = parsedOutput.body; | ||
$metadata = deserializeMetadata(output); | ||
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new __BaseException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata: $metadata, | ||
}); | ||
@@ -369,3 +370,3 @@ throw __decorateServiceException(response, parsedBody); | ||
var deserializeAws_restJson1DeleteRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody; | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode; | ||
var _c; | ||
@@ -380,3 +381,2 @@ return __generator(this, function (_d) { | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
@@ -401,6 +401,8 @@ _b = errorCode; | ||
parsedBody = parsedOutput.body; | ||
$metadata = deserializeMetadata(output); | ||
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new __BaseException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata: $metadata, | ||
}); | ||
@@ -456,3 +458,3 @@ throw __decorateServiceException(response, parsedBody); | ||
var deserializeAws_restJson1GetRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody; | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode; | ||
var _c; | ||
@@ -467,3 +469,2 @@ return __generator(this, function (_d) { | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
@@ -488,6 +489,8 @@ _b = errorCode; | ||
parsedBody = parsedOutput.body; | ||
$metadata = deserializeMetadata(output); | ||
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new __BaseException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata: $metadata, | ||
}); | ||
@@ -527,3 +530,3 @@ throw __decorateServiceException(response, parsedBody); | ||
var deserializeAws_restJson1ListRulesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody; | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode; | ||
var _c; | ||
@@ -538,3 +541,2 @@ return __generator(this, function (_d) { | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
@@ -555,6 +557,8 @@ _b = errorCode; | ||
parsedBody = parsedOutput.body; | ||
$metadata = deserializeMetadata(output); | ||
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new __BaseException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata: $metadata, | ||
}); | ||
@@ -590,3 +594,3 @@ throw __decorateServiceException(response, parsedBody); | ||
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody; | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode; | ||
var _c; | ||
@@ -601,3 +605,2 @@ return __generator(this, function (_d) { | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
@@ -622,6 +625,8 @@ _b = errorCode; | ||
parsedBody = parsedOutput.body; | ||
$metadata = deserializeMetadata(output); | ||
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new __BaseException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata: $metadata, | ||
}); | ||
@@ -651,3 +656,3 @@ throw __decorateServiceException(response, parsedBody); | ||
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody; | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode; | ||
var _c; | ||
@@ -662,3 +667,2 @@ return __generator(this, function (_d) { | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
@@ -687,6 +691,8 @@ _b = errorCode; | ||
parsedBody = parsedOutput.body; | ||
$metadata = deserializeMetadata(output); | ||
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new __BaseException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata: $metadata, | ||
}); | ||
@@ -716,3 +722,3 @@ throw __decorateServiceException(response, parsedBody); | ||
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody; | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode; | ||
var _c; | ||
@@ -727,3 +733,2 @@ return __generator(this, function (_d) { | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
@@ -748,6 +753,8 @@ _b = errorCode; | ||
parsedBody = parsedOutput.body; | ||
$metadata = deserializeMetadata(output); | ||
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new __BaseException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata: $metadata, | ||
}); | ||
@@ -803,3 +810,3 @@ throw __decorateServiceException(response, parsedBody); | ||
var deserializeAws_restJson1UpdateRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody; | ||
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode; | ||
var _c; | ||
@@ -814,3 +821,2 @@ return __generator(this, function (_d) { | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
@@ -835,6 +841,8 @@ _b = errorCode; | ||
parsedBody = parsedOutput.body; | ||
$metadata = deserializeMetadata(output); | ||
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; | ||
response = new __BaseException({ | ||
name: parsedBody.code || parsedBody.Code || errorCode, | ||
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", | ||
$fault: "client", | ||
$metadata: deserializeMetadata(output), | ||
$metadata: $metadata, | ||
}); | ||
@@ -1051,3 +1059,2 @@ throw __decorateServiceException(response, parsedBody); | ||
} | ||
return ""; | ||
}; |
{ | ||
"name": "@aws-sdk/client-rbin", | ||
"description": "AWS SDK for JavaScript Rbin Client for Node.js, Browser and React Native", | ||
"version": "3.118.1", | ||
"version": "3.121.0", | ||
"scripts": { | ||
@@ -21,5 +21,5 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/sha256-js": "2.0.0", | ||
"@aws-sdk/client-sts": "3.118.1", | ||
"@aws-sdk/client-sts": "3.121.0", | ||
"@aws-sdk/config-resolver": "3.110.0", | ||
"@aws-sdk/credential-provider-node": "3.118.1", | ||
"@aws-sdk/credential-provider-node": "3.121.0", | ||
"@aws-sdk/fetch-http-handler": "3.110.0", | ||
@@ -26,0 +26,0 @@ "@aws-sdk/hash-node": "3.110.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
320771
5687
+ Added@aws-sdk/client-sso@3.121.0(transitive)
+ Added@aws-sdk/client-sts@3.121.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.121.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.121.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.121.0(transitive)
- Removed@aws-sdk/client-sso@3.118.1(transitive)
- Removed@aws-sdk/client-sts@3.118.1(transitive)
- Removed@aws-sdk/credential-provider-ini@3.118.1(transitive)
- Removed@aws-sdk/credential-provider-node@3.118.1(transitive)
- Removed@aws-sdk/credential-provider-sso@3.118.1(transitive)
Updated@aws-sdk/client-sts@3.121.0