@aws-sdk/client-cloudsearch 3.525.0 → 3.529.1
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 +28 -61
- package/dist-es/protocols/Aws_query.js +2 -34
- package/package.json +4 -5
package/dist-cjs/index.js
CHANGED
|
@@ -222,9 +222,9 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
222
222
|
var import_types = require("@smithy/types");
|
|
223
223
|
|
|
224
224
|
// src/protocols/Aws_query.ts
|
|
225
|
+
var import_core2 = require("@aws-sdk/core");
|
|
225
226
|
|
|
226
227
|
|
|
227
|
-
var import_fast_xml_parser = require("fast-xml-parser");
|
|
228
228
|
|
|
229
229
|
// src/models/CloudSearchServiceException.ts
|
|
230
230
|
|
|
@@ -747,7 +747,7 @@ var de_BuildSuggestersCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
747
747
|
if (output.statusCode >= 300) {
|
|
748
748
|
return de_CommandError(output, context);
|
|
749
749
|
}
|
|
750
|
-
const data = await
|
|
750
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
751
751
|
let contents = {};
|
|
752
752
|
contents = de_BuildSuggestersResponse(data.BuildSuggestersResult, context);
|
|
753
753
|
const response = {
|
|
@@ -760,7 +760,7 @@ var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
760
760
|
if (output.statusCode >= 300) {
|
|
761
761
|
return de_CommandError(output, context);
|
|
762
762
|
}
|
|
763
|
-
const data = await
|
|
763
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
764
764
|
let contents = {};
|
|
765
765
|
contents = de_CreateDomainResponse(data.CreateDomainResult, context);
|
|
766
766
|
const response = {
|
|
@@ -773,7 +773,7 @@ var de_DefineAnalysisSchemeCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
773
773
|
if (output.statusCode >= 300) {
|
|
774
774
|
return de_CommandError(output, context);
|
|
775
775
|
}
|
|
776
|
-
const data = await
|
|
776
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
777
777
|
let contents = {};
|
|
778
778
|
contents = de_DefineAnalysisSchemeResponse(data.DefineAnalysisSchemeResult, context);
|
|
779
779
|
const response = {
|
|
@@ -786,7 +786,7 @@ var de_DefineExpressionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
786
786
|
if (output.statusCode >= 300) {
|
|
787
787
|
return de_CommandError(output, context);
|
|
788
788
|
}
|
|
789
|
-
const data = await
|
|
789
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
790
790
|
let contents = {};
|
|
791
791
|
contents = de_DefineExpressionResponse(data.DefineExpressionResult, context);
|
|
792
792
|
const response = {
|
|
@@ -799,7 +799,7 @@ var de_DefineIndexFieldCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
799
799
|
if (output.statusCode >= 300) {
|
|
800
800
|
return de_CommandError(output, context);
|
|
801
801
|
}
|
|
802
|
-
const data = await
|
|
802
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
803
803
|
let contents = {};
|
|
804
804
|
contents = de_DefineIndexFieldResponse(data.DefineIndexFieldResult, context);
|
|
805
805
|
const response = {
|
|
@@ -812,7 +812,7 @@ var de_DefineSuggesterCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
812
812
|
if (output.statusCode >= 300) {
|
|
813
813
|
return de_CommandError(output, context);
|
|
814
814
|
}
|
|
815
|
-
const data = await
|
|
815
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
816
816
|
let contents = {};
|
|
817
817
|
contents = de_DefineSuggesterResponse(data.DefineSuggesterResult, context);
|
|
818
818
|
const response = {
|
|
@@ -825,7 +825,7 @@ var de_DeleteAnalysisSchemeCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
825
825
|
if (output.statusCode >= 300) {
|
|
826
826
|
return de_CommandError(output, context);
|
|
827
827
|
}
|
|
828
|
-
const data = await
|
|
828
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
829
829
|
let contents = {};
|
|
830
830
|
contents = de_DeleteAnalysisSchemeResponse(data.DeleteAnalysisSchemeResult, context);
|
|
831
831
|
const response = {
|
|
@@ -838,7 +838,7 @@ var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
838
838
|
if (output.statusCode >= 300) {
|
|
839
839
|
return de_CommandError(output, context);
|
|
840
840
|
}
|
|
841
|
-
const data = await
|
|
841
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
842
842
|
let contents = {};
|
|
843
843
|
contents = de_DeleteDomainResponse(data.DeleteDomainResult, context);
|
|
844
844
|
const response = {
|
|
@@ -851,7 +851,7 @@ var de_DeleteExpressionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
851
851
|
if (output.statusCode >= 300) {
|
|
852
852
|
return de_CommandError(output, context);
|
|
853
853
|
}
|
|
854
|
-
const data = await
|
|
854
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
855
855
|
let contents = {};
|
|
856
856
|
contents = de_DeleteExpressionResponse(data.DeleteExpressionResult, context);
|
|
857
857
|
const response = {
|
|
@@ -864,7 +864,7 @@ var de_DeleteIndexFieldCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
864
864
|
if (output.statusCode >= 300) {
|
|
865
865
|
return de_CommandError(output, context);
|
|
866
866
|
}
|
|
867
|
-
const data = await
|
|
867
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
868
868
|
let contents = {};
|
|
869
869
|
contents = de_DeleteIndexFieldResponse(data.DeleteIndexFieldResult, context);
|
|
870
870
|
const response = {
|
|
@@ -877,7 +877,7 @@ var de_DeleteSuggesterCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
877
877
|
if (output.statusCode >= 300) {
|
|
878
878
|
return de_CommandError(output, context);
|
|
879
879
|
}
|
|
880
|
-
const data = await
|
|
880
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
881
881
|
let contents = {};
|
|
882
882
|
contents = de_DeleteSuggesterResponse(data.DeleteSuggesterResult, context);
|
|
883
883
|
const response = {
|
|
@@ -890,7 +890,7 @@ var de_DescribeAnalysisSchemesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
890
890
|
if (output.statusCode >= 300) {
|
|
891
891
|
return de_CommandError(output, context);
|
|
892
892
|
}
|
|
893
|
-
const data = await
|
|
893
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
894
894
|
let contents = {};
|
|
895
895
|
contents = de_DescribeAnalysisSchemesResponse(data.DescribeAnalysisSchemesResult, context);
|
|
896
896
|
const response = {
|
|
@@ -903,7 +903,7 @@ var de_DescribeAvailabilityOptionsCommand = /* @__PURE__ */ __name(async (output
|
|
|
903
903
|
if (output.statusCode >= 300) {
|
|
904
904
|
return de_CommandError(output, context);
|
|
905
905
|
}
|
|
906
|
-
const data = await
|
|
906
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
907
907
|
let contents = {};
|
|
908
908
|
contents = de_DescribeAvailabilityOptionsResponse(data.DescribeAvailabilityOptionsResult, context);
|
|
909
909
|
const response = {
|
|
@@ -916,7 +916,7 @@ var de_DescribeDomainEndpointOptionsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
916
916
|
if (output.statusCode >= 300) {
|
|
917
917
|
return de_CommandError(output, context);
|
|
918
918
|
}
|
|
919
|
-
const data = await
|
|
919
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
920
920
|
let contents = {};
|
|
921
921
|
contents = de_DescribeDomainEndpointOptionsResponse(data.DescribeDomainEndpointOptionsResult, context);
|
|
922
922
|
const response = {
|
|
@@ -929,7 +929,7 @@ var de_DescribeDomainsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
929
929
|
if (output.statusCode >= 300) {
|
|
930
930
|
return de_CommandError(output, context);
|
|
931
931
|
}
|
|
932
|
-
const data = await
|
|
932
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
933
933
|
let contents = {};
|
|
934
934
|
contents = de_DescribeDomainsResponse(data.DescribeDomainsResult, context);
|
|
935
935
|
const response = {
|
|
@@ -942,7 +942,7 @@ var de_DescribeExpressionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
942
942
|
if (output.statusCode >= 300) {
|
|
943
943
|
return de_CommandError(output, context);
|
|
944
944
|
}
|
|
945
|
-
const data = await
|
|
945
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
946
946
|
let contents = {};
|
|
947
947
|
contents = de_DescribeExpressionsResponse(data.DescribeExpressionsResult, context);
|
|
948
948
|
const response = {
|
|
@@ -955,7 +955,7 @@ var de_DescribeIndexFieldsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
955
955
|
if (output.statusCode >= 300) {
|
|
956
956
|
return de_CommandError(output, context);
|
|
957
957
|
}
|
|
958
|
-
const data = await
|
|
958
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
959
959
|
let contents = {};
|
|
960
960
|
contents = de_DescribeIndexFieldsResponse(data.DescribeIndexFieldsResult, context);
|
|
961
961
|
const response = {
|
|
@@ -968,7 +968,7 @@ var de_DescribeScalingParametersCommand = /* @__PURE__ */ __name(async (output,
|
|
|
968
968
|
if (output.statusCode >= 300) {
|
|
969
969
|
return de_CommandError(output, context);
|
|
970
970
|
}
|
|
971
|
-
const data = await
|
|
971
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
972
972
|
let contents = {};
|
|
973
973
|
contents = de_DescribeScalingParametersResponse(data.DescribeScalingParametersResult, context);
|
|
974
974
|
const response = {
|
|
@@ -981,7 +981,7 @@ var de_DescribeServiceAccessPoliciesCommand = /* @__PURE__ */ __name(async (outp
|
|
|
981
981
|
if (output.statusCode >= 300) {
|
|
982
982
|
return de_CommandError(output, context);
|
|
983
983
|
}
|
|
984
|
-
const data = await
|
|
984
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
985
985
|
let contents = {};
|
|
986
986
|
contents = de_DescribeServiceAccessPoliciesResponse(data.DescribeServiceAccessPoliciesResult, context);
|
|
987
987
|
const response = {
|
|
@@ -994,7 +994,7 @@ var de_DescribeSuggestersCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
994
994
|
if (output.statusCode >= 300) {
|
|
995
995
|
return de_CommandError(output, context);
|
|
996
996
|
}
|
|
997
|
-
const data = await
|
|
997
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
998
998
|
let contents = {};
|
|
999
999
|
contents = de_DescribeSuggestersResponse(data.DescribeSuggestersResult, context);
|
|
1000
1000
|
const response = {
|
|
@@ -1007,7 +1007,7 @@ var de_IndexDocumentsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1007
1007
|
if (output.statusCode >= 300) {
|
|
1008
1008
|
return de_CommandError(output, context);
|
|
1009
1009
|
}
|
|
1010
|
-
const data = await
|
|
1010
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1011
1011
|
let contents = {};
|
|
1012
1012
|
contents = de_IndexDocumentsResponse(data.IndexDocumentsResult, context);
|
|
1013
1013
|
const response = {
|
|
@@ -1020,7 +1020,7 @@ var de_ListDomainNamesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1020
1020
|
if (output.statusCode >= 300) {
|
|
1021
1021
|
return de_CommandError(output, context);
|
|
1022
1022
|
}
|
|
1023
|
-
const data = await
|
|
1023
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1024
1024
|
let contents = {};
|
|
1025
1025
|
contents = de_ListDomainNamesResponse(data.ListDomainNamesResult, context);
|
|
1026
1026
|
const response = {
|
|
@@ -1033,7 +1033,7 @@ var de_UpdateAvailabilityOptionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1033
1033
|
if (output.statusCode >= 300) {
|
|
1034
1034
|
return de_CommandError(output, context);
|
|
1035
1035
|
}
|
|
1036
|
-
const data = await
|
|
1036
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1037
1037
|
let contents = {};
|
|
1038
1038
|
contents = de_UpdateAvailabilityOptionsResponse(data.UpdateAvailabilityOptionsResult, context);
|
|
1039
1039
|
const response = {
|
|
@@ -1046,7 +1046,7 @@ var de_UpdateDomainEndpointOptionsCommand = /* @__PURE__ */ __name(async (output
|
|
|
1046
1046
|
if (output.statusCode >= 300) {
|
|
1047
1047
|
return de_CommandError(output, context);
|
|
1048
1048
|
}
|
|
1049
|
-
const data = await
|
|
1049
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1050
1050
|
let contents = {};
|
|
1051
1051
|
contents = de_UpdateDomainEndpointOptionsResponse(data.UpdateDomainEndpointOptionsResult, context);
|
|
1052
1052
|
const response = {
|
|
@@ -1059,7 +1059,7 @@ var de_UpdateScalingParametersCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1059
1059
|
if (output.statusCode >= 300) {
|
|
1060
1060
|
return de_CommandError(output, context);
|
|
1061
1061
|
}
|
|
1062
|
-
const data = await
|
|
1062
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1063
1063
|
let contents = {};
|
|
1064
1064
|
contents = de_UpdateScalingParametersResponse(data.UpdateScalingParametersResult, context);
|
|
1065
1065
|
const response = {
|
|
@@ -1072,7 +1072,7 @@ var de_UpdateServiceAccessPoliciesCommand = /* @__PURE__ */ __name(async (output
|
|
|
1072
1072
|
if (output.statusCode >= 300) {
|
|
1073
1073
|
return de_CommandError(output, context);
|
|
1074
1074
|
}
|
|
1075
|
-
const data = await
|
|
1075
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1076
1076
|
let contents = {};
|
|
1077
1077
|
contents = de_UpdateServiceAccessPoliciesResponse(data.UpdateServiceAccessPoliciesResult, context);
|
|
1078
1078
|
const response = {
|
|
@@ -1084,7 +1084,7 @@ var de_UpdateServiceAccessPoliciesCommand = /* @__PURE__ */ __name(async (output
|
|
|
1084
1084
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1085
1085
|
const parsedOutput = {
|
|
1086
1086
|
...output,
|
|
1087
|
-
body: await
|
|
1087
|
+
body: await (0, import_core2.parseXmlErrorBody)(output.body, context)
|
|
1088
1088
|
};
|
|
1089
1089
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1090
1090
|
switch (errorCode) {
|
|
@@ -2787,7 +2787,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2787
2787
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2788
2788
|
cfId: output.headers["x-amz-cf-id"]
|
|
2789
2789
|
}), "deserializeMetadata");
|
|
2790
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2791
2790
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(CloudSearchServiceException);
|
|
2792
2791
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2793
2792
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2927,38 +2926,6 @@ var _UV = "UpdateVersion";
|
|
|
2927
2926
|
var _V = "Version";
|
|
2928
2927
|
var _e = "entry";
|
|
2929
2928
|
var _m = "member";
|
|
2930
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2931
|
-
if (encoded.length) {
|
|
2932
|
-
const parser = new import_fast_xml_parser.XMLParser({
|
|
2933
|
-
attributeNamePrefix: "",
|
|
2934
|
-
htmlEntities: true,
|
|
2935
|
-
ignoreAttributes: false,
|
|
2936
|
-
ignoreDeclaration: true,
|
|
2937
|
-
parseTagValue: false,
|
|
2938
|
-
trimValues: false,
|
|
2939
|
-
tagValueProcessor: (_2, val) => val.trim() === "" && val.includes("\n") ? "" : void 0
|
|
2940
|
-
});
|
|
2941
|
-
parser.addEntity("#xD", "\r");
|
|
2942
|
-
parser.addEntity("#10", "\n");
|
|
2943
|
-
const parsedObj = parser.parse(encoded);
|
|
2944
|
-
const textNodeName = "#text";
|
|
2945
|
-
const key = Object.keys(parsedObj)[0];
|
|
2946
|
-
const parsedObjToReturn = parsedObj[key];
|
|
2947
|
-
if (parsedObjToReturn[textNodeName]) {
|
|
2948
|
-
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
|
2949
|
-
delete parsedObjToReturn[textNodeName];
|
|
2950
|
-
}
|
|
2951
|
-
return (0, import_smithy_client.getValueFromTextNode)(parsedObjToReturn);
|
|
2952
|
-
}
|
|
2953
|
-
return {};
|
|
2954
|
-
}), "parseBody");
|
|
2955
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2956
|
-
const value = await parseBody(errorBody, context);
|
|
2957
|
-
if (value.Error) {
|
|
2958
|
-
value.Error.message = value.Error.message ?? value.Error.Message;
|
|
2959
|
-
}
|
|
2960
|
-
return value;
|
|
2961
|
-
}, "parseErrorBody");
|
|
2962
2929
|
var buildFormUrlencodedString = /* @__PURE__ */ __name((formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_smithy_client.extendedEncodeURIComponent)(key) + "=" + (0, import_smithy_client.extendedEncodeURIComponent)(value)).join("&"), "buildFormUrlencodedString");
|
|
2963
2930
|
var loadQueryErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2964
2931
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { parseXmlBody as parseBody, parseXmlErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
|
-
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem,
|
|
3
|
-
import { XMLParser } from "fast-xml-parser";
|
|
3
|
+
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { CloudSearchServiceException as __BaseException } from "../models/CloudSearchServiceException";
|
|
5
5
|
import { BaseException, DisabledOperationException, InternalException, InvalidTypeException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export const se_BuildSuggestersCommand = async (input, context) => {
|
|
@@ -2460,38 +2460,6 @@ const _UV = "UpdateVersion";
|
|
|
2460
2460
|
const _V = "Version";
|
|
2461
2461
|
const _e = "entry";
|
|
2462
2462
|
const _m = "member";
|
|
2463
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2464
|
-
if (encoded.length) {
|
|
2465
|
-
const parser = new XMLParser({
|
|
2466
|
-
attributeNamePrefix: "",
|
|
2467
|
-
htmlEntities: true,
|
|
2468
|
-
ignoreAttributes: false,
|
|
2469
|
-
ignoreDeclaration: true,
|
|
2470
|
-
parseTagValue: false,
|
|
2471
|
-
trimValues: false,
|
|
2472
|
-
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
|
|
2473
|
-
});
|
|
2474
|
-
parser.addEntity("#xD", "\r");
|
|
2475
|
-
parser.addEntity("#10", "\n");
|
|
2476
|
-
const parsedObj = parser.parse(encoded);
|
|
2477
|
-
const textNodeName = "#text";
|
|
2478
|
-
const key = Object.keys(parsedObj)[0];
|
|
2479
|
-
const parsedObjToReturn = parsedObj[key];
|
|
2480
|
-
if (parsedObjToReturn[textNodeName]) {
|
|
2481
|
-
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
|
2482
|
-
delete parsedObjToReturn[textNodeName];
|
|
2483
|
-
}
|
|
2484
|
-
return __getValueFromTextNode(parsedObjToReturn);
|
|
2485
|
-
}
|
|
2486
|
-
return {};
|
|
2487
|
-
});
|
|
2488
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2489
|
-
const value = await parseBody(errorBody, context);
|
|
2490
|
-
if (value.Error) {
|
|
2491
|
-
value.Error.message = value.Error.message ?? value.Error.Message;
|
|
2492
|
-
}
|
|
2493
|
-
return value;
|
|
2494
|
-
};
|
|
2495
2463
|
const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
|
|
2496
2464
|
.map(([key, value]) => __extendedEncodeURIComponent(key) + "=" + __extendedEncodeURIComponent(value))
|
|
2497
2465
|
.join("&");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudsearch",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudsearch Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
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-cloudsearch",
|
|
@@ -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.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
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",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
|
60
|
-
"fast-xml-parser": "4.2.5",
|
|
61
60
|
"tslib": "^2.5.0"
|
|
62
61
|
},
|
|
63
62
|
"devDependencies": {
|