@aws-sdk/client-quicksight 3.525.0 → 3.529.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.
@@ -1,4 +1,4 @@
1
- import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
1
+ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { AccessDeniedException, } from "../models/models_0";
@@ -11221,43 +11221,3 @@ const _t = "type";
11221
11221
  const _ua = "user-arn";
11222
11222
  const _urd = "undo-redo-disabled";
11223
11223
  const _vn = "version-number";
11224
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
11225
- if (encoded.length) {
11226
- return JSON.parse(encoded);
11227
- }
11228
- return {};
11229
- });
11230
- const parseErrorBody = async (errorBody, context) => {
11231
- const value = await parseBody(errorBody, context);
11232
- value.message = value.message ?? value.Message;
11233
- return value;
11234
- };
11235
- const loadRestJsonErrorCode = (output, data) => {
11236
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
11237
- const sanitizeErrorCode = (rawValue) => {
11238
- let cleanValue = rawValue;
11239
- if (typeof cleanValue === "number") {
11240
- cleanValue = cleanValue.toString();
11241
- }
11242
- if (cleanValue.indexOf(",") >= 0) {
11243
- cleanValue = cleanValue.split(",")[0];
11244
- }
11245
- if (cleanValue.indexOf(":") >= 0) {
11246
- cleanValue = cleanValue.split(":")[0];
11247
- }
11248
- if (cleanValue.indexOf("#") >= 0) {
11249
- cleanValue = cleanValue.split("#")[1];
11250
- }
11251
- return cleanValue;
11252
- };
11253
- const headerKey = findKey(output.headers, "x-amzn-errortype");
11254
- if (headerKey !== undefined) {
11255
- return sanitizeErrorCode(output.headers[headerKey]);
11256
- }
11257
- if (data.code !== undefined) {
11258
- return sanitizeErrorCode(data.code);
11259
- }
11260
- if (data["__type"] !== undefined) {
11261
- return sanitizeErrorCode(data["__type"]);
11262
- }
11263
- };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-quicksight",
3
3
  "description": "AWS SDK for JavaScript Quicksight Client for Node.js, Browser and React Native",
4
- "version": "3.525.0",
4
+ "version": "3.529.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-quicksight",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.525.0",
24
- "@aws-sdk/core": "3.525.0",
25
- "@aws-sdk/credential-provider-node": "3.525.0",
23
+ "@aws-sdk/client-sts": "3.529.0",
24
+ "@aws-sdk/core": "3.529.0",
25
+ "@aws-sdk/credential-provider-node": "3.529.0",
26
26
  "@aws-sdk/middleware-host-header": "3.523.0",
27
27
  "@aws-sdk/middleware-logger": "3.523.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.523.0",