@azure/synapse-monitoring 1.0.0-alpha.20221107.1 → 1.0.0-alpha.20221129.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/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -889,7 +889,8 @@ function isSpecialXmlProperty(propertyName, options) {
|
|
|
889
889
|
return [XML_ATTRKEY, options.xml.xmlCharKey].includes(propertyName);
|
|
890
890
|
}
|
|
891
891
|
function deserializeCompositeType(serializer, mapper, responseBody, objectName, options) {
|
|
892
|
-
var _a;
|
|
892
|
+
var _a, _b;
|
|
893
|
+
const xmlCharKey = (_a = options.xml.xmlCharKey) !== null && _a !== void 0 ? _a : XML_CHARKEY;
|
|
893
894
|
if (getPolymorphicDiscriminatorRecursively(serializer, mapper)) {
|
|
894
895
|
mapper = getPolymorphicMapper(serializer, mapper, responseBody, "serializedName");
|
|
895
896
|
}
|
|
@@ -920,6 +921,16 @@ function deserializeCompositeType(serializer, mapper, responseBody, objectName,
|
|
|
920
921
|
if (propertyMapper.xmlIsAttribute && responseBody[XML_ATTRKEY]) {
|
|
921
922
|
instance[key] = serializer.deserialize(propertyMapper, responseBody[XML_ATTRKEY][xmlName], propertyObjectName, options);
|
|
922
923
|
}
|
|
924
|
+
else if (propertyMapper.xmlIsMsText) {
|
|
925
|
+
if (responseBody[xmlCharKey] !== undefined) {
|
|
926
|
+
instance[key] = responseBody[xmlCharKey];
|
|
927
|
+
}
|
|
928
|
+
else if (typeof responseBody === "string") {
|
|
929
|
+
// The special case where xml parser parses "<Name>content</Name>" into JSON of
|
|
930
|
+
// `{ name: "content"}` instead of `{ name: { "_": "content" }}`
|
|
931
|
+
instance[key] = responseBody;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
923
934
|
else {
|
|
924
935
|
const propertyName = xmlElementName || xmlName || serializedName;
|
|
925
936
|
if (propertyMapper.xmlIsWrapped) {
|
|
@@ -938,12 +949,14 @@ function deserializeCompositeType(serializer, mapper, responseBody, objectName,
|
|
|
938
949
|
xmlName is "Cors" and xmlElementName is"CorsRule".
|
|
939
950
|
*/
|
|
940
951
|
const wrapped = responseBody[xmlName];
|
|
941
|
-
const elementList = (
|
|
952
|
+
const elementList = (_b = wrapped === null || wrapped === void 0 ? void 0 : wrapped[xmlElementName]) !== null && _b !== void 0 ? _b : [];
|
|
942
953
|
instance[key] = serializer.deserialize(propertyMapper, elementList, propertyObjectName, options);
|
|
954
|
+
handledPropertyNames.push(xmlName);
|
|
943
955
|
}
|
|
944
956
|
else {
|
|
945
957
|
const property = responseBody[propertyName];
|
|
946
958
|
instance[key] = serializer.deserialize(propertyMapper, property, propertyObjectName, options);
|
|
959
|
+
handledPropertyNames.push(propertyName);
|
|
947
960
|
}
|
|
948
961
|
}
|
|
949
962
|
}
|
|
@@ -14684,7 +14697,7 @@ function formDataPolicy() {
|
|
|
14684
14697
|
request.formData = undefined;
|
|
14685
14698
|
}
|
|
14686
14699
|
else {
|
|
14687
|
-
prepareFormData(request.formData, request);
|
|
14700
|
+
await prepareFormData(request.formData, request);
|
|
14688
14701
|
}
|
|
14689
14702
|
}
|
|
14690
14703
|
return next(request);
|