@aws-sdk/client-amplifyuibuilder 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.
- package/dist-cjs/index.js +24 -65
- package/dist-es/protocols/Aws_restJson1.js +1 -41
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -988,7 +988,7 @@ var de_CreateComponentCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
988
988
|
const contents = (0, import_smithy_client.map)({
|
|
989
989
|
$metadata: deserializeMetadata(output)
|
|
990
990
|
});
|
|
991
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
991
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
992
992
|
contents.entity = de_Component(data, context);
|
|
993
993
|
return contents;
|
|
994
994
|
}, "de_CreateComponentCommand");
|
|
@@ -999,7 +999,7 @@ var de_CreateFormCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
999
999
|
const contents = (0, import_smithy_client.map)({
|
|
1000
1000
|
$metadata: deserializeMetadata(output)
|
|
1001
1001
|
});
|
|
1002
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1002
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1003
1003
|
contents.entity = de_Form(data, context);
|
|
1004
1004
|
return contents;
|
|
1005
1005
|
}, "de_CreateFormCommand");
|
|
@@ -1010,7 +1010,7 @@ var de_CreateThemeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1010
1010
|
const contents = (0, import_smithy_client.map)({
|
|
1011
1011
|
$metadata: deserializeMetadata(output)
|
|
1012
1012
|
});
|
|
1013
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1013
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1014
1014
|
contents.entity = de_Theme(data, context);
|
|
1015
1015
|
return contents;
|
|
1016
1016
|
}, "de_CreateThemeCommand");
|
|
@@ -1051,7 +1051,7 @@ var de_ExchangeCodeForTokenCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1051
1051
|
const contents = (0, import_smithy_client.map)({
|
|
1052
1052
|
$metadata: deserializeMetadata(output)
|
|
1053
1053
|
});
|
|
1054
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1054
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1055
1055
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1056
1056
|
accessToken: import_smithy_client.expectString,
|
|
1057
1057
|
expiresIn: import_smithy_client.expectInt32,
|
|
@@ -1067,7 +1067,7 @@ var de_ExportComponentsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1067
1067
|
const contents = (0, import_smithy_client.map)({
|
|
1068
1068
|
$metadata: deserializeMetadata(output)
|
|
1069
1069
|
});
|
|
1070
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1070
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1071
1071
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1072
1072
|
entities: (_) => de_ComponentList(_, context),
|
|
1073
1073
|
nextToken: import_smithy_client.expectString
|
|
@@ -1082,7 +1082,7 @@ var de_ExportFormsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1082
1082
|
const contents = (0, import_smithy_client.map)({
|
|
1083
1083
|
$metadata: deserializeMetadata(output)
|
|
1084
1084
|
});
|
|
1085
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1085
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1086
1086
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1087
1087
|
entities: (_) => de_FormList(_, context),
|
|
1088
1088
|
nextToken: import_smithy_client.expectString
|
|
@@ -1097,7 +1097,7 @@ var de_ExportThemesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1097
1097
|
const contents = (0, import_smithy_client.map)({
|
|
1098
1098
|
$metadata: deserializeMetadata(output)
|
|
1099
1099
|
});
|
|
1100
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1100
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1101
1101
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1102
1102
|
entities: (_) => de_ThemeList(_, context),
|
|
1103
1103
|
nextToken: import_smithy_client.expectString
|
|
@@ -1112,7 +1112,7 @@ var de_GetCodegenJobCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1112
1112
|
const contents = (0, import_smithy_client.map)({
|
|
1113
1113
|
$metadata: deserializeMetadata(output)
|
|
1114
1114
|
});
|
|
1115
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1115
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1116
1116
|
contents.job = de_CodegenJob(data, context);
|
|
1117
1117
|
return contents;
|
|
1118
1118
|
}, "de_GetCodegenJobCommand");
|
|
@@ -1123,7 +1123,7 @@ var de_GetComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1123
1123
|
const contents = (0, import_smithy_client.map)({
|
|
1124
1124
|
$metadata: deserializeMetadata(output)
|
|
1125
1125
|
});
|
|
1126
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1126
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1127
1127
|
contents.component = de_Component(data, context);
|
|
1128
1128
|
return contents;
|
|
1129
1129
|
}, "de_GetComponentCommand");
|
|
@@ -1134,7 +1134,7 @@ var de_GetFormCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1134
1134
|
const contents = (0, import_smithy_client.map)({
|
|
1135
1135
|
$metadata: deserializeMetadata(output)
|
|
1136
1136
|
});
|
|
1137
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1137
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1138
1138
|
contents.form = de_Form(data, context);
|
|
1139
1139
|
return contents;
|
|
1140
1140
|
}, "de_GetFormCommand");
|
|
@@ -1145,7 +1145,7 @@ var de_GetMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1145
1145
|
const contents = (0, import_smithy_client.map)({
|
|
1146
1146
|
$metadata: deserializeMetadata(output)
|
|
1147
1147
|
});
|
|
1148
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1148
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1149
1149
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1150
1150
|
features: import_smithy_client._json
|
|
1151
1151
|
});
|
|
@@ -1159,7 +1159,7 @@ var de_GetThemeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1159
1159
|
const contents = (0, import_smithy_client.map)({
|
|
1160
1160
|
$metadata: deserializeMetadata(output)
|
|
1161
1161
|
});
|
|
1162
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1162
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1163
1163
|
contents.theme = de_Theme(data, context);
|
|
1164
1164
|
return contents;
|
|
1165
1165
|
}, "de_GetThemeCommand");
|
|
@@ -1170,7 +1170,7 @@ var de_ListCodegenJobsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1170
1170
|
const contents = (0, import_smithy_client.map)({
|
|
1171
1171
|
$metadata: deserializeMetadata(output)
|
|
1172
1172
|
});
|
|
1173
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1173
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1174
1174
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1175
1175
|
entities: (_) => de_CodegenJobSummaryList(_, context),
|
|
1176
1176
|
nextToken: import_smithy_client.expectString
|
|
@@ -1185,7 +1185,7 @@ var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1185
1185
|
const contents = (0, import_smithy_client.map)({
|
|
1186
1186
|
$metadata: deserializeMetadata(output)
|
|
1187
1187
|
});
|
|
1188
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1188
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1189
1189
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1190
1190
|
entities: import_smithy_client._json,
|
|
1191
1191
|
nextToken: import_smithy_client.expectString
|
|
@@ -1200,7 +1200,7 @@ var de_ListFormsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1200
1200
|
const contents = (0, import_smithy_client.map)({
|
|
1201
1201
|
$metadata: deserializeMetadata(output)
|
|
1202
1202
|
});
|
|
1203
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1203
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1204
1204
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1205
1205
|
entities: import_smithy_client._json,
|
|
1206
1206
|
nextToken: import_smithy_client.expectString
|
|
@@ -1215,7 +1215,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1215
1215
|
const contents = (0, import_smithy_client.map)({
|
|
1216
1216
|
$metadata: deserializeMetadata(output)
|
|
1217
1217
|
});
|
|
1218
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1218
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1219
1219
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1220
1220
|
tags: import_smithy_client._json
|
|
1221
1221
|
});
|
|
@@ -1229,7 +1229,7 @@ var de_ListThemesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1229
1229
|
const contents = (0, import_smithy_client.map)({
|
|
1230
1230
|
$metadata: deserializeMetadata(output)
|
|
1231
1231
|
});
|
|
1232
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1232
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1233
1233
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1234
1234
|
entities: import_smithy_client._json,
|
|
1235
1235
|
nextToken: import_smithy_client.expectString
|
|
@@ -1254,7 +1254,7 @@ var de_RefreshTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1254
1254
|
const contents = (0, import_smithy_client.map)({
|
|
1255
1255
|
$metadata: deserializeMetadata(output)
|
|
1256
1256
|
});
|
|
1257
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1257
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1258
1258
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1259
1259
|
accessToken: import_smithy_client.expectString,
|
|
1260
1260
|
expiresIn: import_smithy_client.expectInt32
|
|
@@ -1269,7 +1269,7 @@ var de_StartCodegenJobCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1269
1269
|
const contents = (0, import_smithy_client.map)({
|
|
1270
1270
|
$metadata: deserializeMetadata(output)
|
|
1271
1271
|
});
|
|
1272
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1272
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1273
1273
|
contents.entity = de_CodegenJob(data, context);
|
|
1274
1274
|
return contents;
|
|
1275
1275
|
}, "de_StartCodegenJobCommand");
|
|
@@ -1300,7 +1300,7 @@ var de_UpdateComponentCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1300
1300
|
const contents = (0, import_smithy_client.map)({
|
|
1301
1301
|
$metadata: deserializeMetadata(output)
|
|
1302
1302
|
});
|
|
1303
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1303
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1304
1304
|
contents.entity = de_Component(data, context);
|
|
1305
1305
|
return contents;
|
|
1306
1306
|
}, "de_UpdateComponentCommand");
|
|
@@ -1311,7 +1311,7 @@ var de_UpdateFormCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1311
1311
|
const contents = (0, import_smithy_client.map)({
|
|
1312
1312
|
$metadata: deserializeMetadata(output)
|
|
1313
1313
|
});
|
|
1314
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1314
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1315
1315
|
contents.entity = de_Form(data, context);
|
|
1316
1316
|
return contents;
|
|
1317
1317
|
}, "de_UpdateFormCommand");
|
|
@@ -1322,16 +1322,16 @@ var de_UpdateThemeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1322
1322
|
const contents = (0, import_smithy_client.map)({
|
|
1323
1323
|
$metadata: deserializeMetadata(output)
|
|
1324
1324
|
});
|
|
1325
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1325
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1326
1326
|
contents.entity = de_Theme(data, context);
|
|
1327
1327
|
return contents;
|
|
1328
1328
|
}, "de_UpdateThemeCommand");
|
|
1329
1329
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1330
1330
|
const parsedOutput = {
|
|
1331
1331
|
...output,
|
|
1332
|
-
body: await
|
|
1332
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1333
1333
|
};
|
|
1334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1335
1335
|
switch (errorCode) {
|
|
1336
1336
|
case "InternalServerException":
|
|
1337
1337
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
@@ -2128,51 +2128,10 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2128
2128
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2129
2129
|
cfId: output.headers["x-amz-cf-id"]
|
|
2130
2130
|
}), "deserializeMetadata");
|
|
2131
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2132
2131
|
var _cT = "clientToken";
|
|
2133
2132
|
var _mR = "maxResults";
|
|
2134
2133
|
var _nT = "nextToken";
|
|
2135
2134
|
var _tK = "tagKeys";
|
|
2136
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2137
|
-
if (encoded.length) {
|
|
2138
|
-
return JSON.parse(encoded);
|
|
2139
|
-
}
|
|
2140
|
-
return {};
|
|
2141
|
-
}), "parseBody");
|
|
2142
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2143
|
-
const value = await parseBody(errorBody, context);
|
|
2144
|
-
value.message = value.message ?? value.Message;
|
|
2145
|
-
return value;
|
|
2146
|
-
}, "parseErrorBody");
|
|
2147
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2148
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2149
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2150
|
-
let cleanValue = rawValue;
|
|
2151
|
-
if (typeof cleanValue === "number") {
|
|
2152
|
-
cleanValue = cleanValue.toString();
|
|
2153
|
-
}
|
|
2154
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2155
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2156
|
-
}
|
|
2157
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2158
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2159
|
-
}
|
|
2160
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2161
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2162
|
-
}
|
|
2163
|
-
return cleanValue;
|
|
2164
|
-
}, "sanitizeErrorCode");
|
|
2165
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2166
|
-
if (headerKey !== void 0) {
|
|
2167
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2168
|
-
}
|
|
2169
|
-
if (data.code !== void 0) {
|
|
2170
|
-
return sanitizeErrorCode(data.code);
|
|
2171
|
-
}
|
|
2172
|
-
if (data["__type"] !== void 0) {
|
|
2173
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2174
|
-
}
|
|
2175
|
-
}, "loadRestJsonErrorCode");
|
|
2176
2135
|
|
|
2177
2136
|
// src/commands/CreateComponentCommand.ts
|
|
2178
2137
|
var _CreateComponentCommand = class _CreateComponentCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -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, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1620,43 +1620,3 @@ const _cT = "clientToken";
|
|
|
1620
1620
|
const _mR = "maxResults";
|
|
1621
1621
|
const _nT = "nextToken";
|
|
1622
1622
|
const _tK = "tagKeys";
|
|
1623
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1624
|
-
if (encoded.length) {
|
|
1625
|
-
return JSON.parse(encoded);
|
|
1626
|
-
}
|
|
1627
|
-
return {};
|
|
1628
|
-
});
|
|
1629
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1630
|
-
const value = await parseBody(errorBody, context);
|
|
1631
|
-
value.message = value.message ?? value.Message;
|
|
1632
|
-
return value;
|
|
1633
|
-
};
|
|
1634
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1635
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1636
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1637
|
-
let cleanValue = rawValue;
|
|
1638
|
-
if (typeof cleanValue === "number") {
|
|
1639
|
-
cleanValue = cleanValue.toString();
|
|
1640
|
-
}
|
|
1641
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1642
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1643
|
-
}
|
|
1644
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1645
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1646
|
-
}
|
|
1647
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1648
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1649
|
-
}
|
|
1650
|
-
return cleanValue;
|
|
1651
|
-
};
|
|
1652
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1653
|
-
if (headerKey !== undefined) {
|
|
1654
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1655
|
-
}
|
|
1656
|
-
if (data.code !== undefined) {
|
|
1657
|
-
return sanitizeErrorCode(data.code);
|
|
1658
|
-
}
|
|
1659
|
-
if (data["__type"] !== undefined) {
|
|
1660
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1661
|
-
}
|
|
1662
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-amplifyuibuilder",
|
|
3
3
|
"description": "AWS SDK for JavaScript Amplifyuibuilder Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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-amplifyuibuilder",
|
|
@@ -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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
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",
|