@uoa/lambda-tracing 2.1.1 → 2.1.2
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/changelog.md +3 -0
- package/dist/uoaHttps.js +2 -1
- package/package.json +1 -1
- package/uoaHttps.ts +2 -1
package/changelog.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.1.2
|
|
4
|
+
- Updated XML response parsing to include attribute tags
|
|
5
|
+
|
|
3
6
|
## 2.1.1
|
|
4
7
|
- Fixed issue where JSON requests & responses could only have content-type application/json. Will now parse request/response if content-type header includes "json" anywhere. If "json" is not present, it will check for "xml", then "image". If none are present, the raw string body will be used.
|
|
5
8
|
|
package/dist/uoaHttps.js
CHANGED
|
@@ -117,7 +117,8 @@ function doHttpsRequest(options, resolve, reject) {
|
|
|
117
117
|
else if (responseContentType.includes('xml')) {
|
|
118
118
|
const parser = new fast_xml_parser_1.XMLParser({
|
|
119
119
|
ignoreDeclaration: true,
|
|
120
|
-
ignorePiTags: true
|
|
120
|
+
ignorePiTags: true,
|
|
121
|
+
ignoreAttributes: false
|
|
121
122
|
});
|
|
122
123
|
parsedBody = parser.parse(body.toString());
|
|
123
124
|
}
|
package/package.json
CHANGED
package/uoaHttps.ts
CHANGED
|
@@ -108,7 +108,8 @@ function doHttpsRequest(options: RequestOptions, resolve: any, reject: any): Cli
|
|
|
108
108
|
} else if (responseContentType.includes('xml')) {
|
|
109
109
|
const parser = new XMLParser({
|
|
110
110
|
ignoreDeclaration: true,
|
|
111
|
-
ignorePiTags: true
|
|
111
|
+
ignorePiTags: true,
|
|
112
|
+
ignoreAttributes: false
|
|
112
113
|
});
|
|
113
114
|
parsedBody = parser.parse(body.toString());
|
|
114
115
|
} else if (responseContentType.includes('image')) {
|