Skip to content

Commit

Permalink
Merge pull request #130 from medyagh/dependabot/npm_and_yarn/xml2js-a…
Browse files Browse the repository at this point in the history
…nd-azure/ms-rest-js-and-azure/core-http-0.5.0

build(deps): bump xml2js, @azure/ms-rest-js and @azure/core-http
  • Loading branch information
spowelljr authored Apr 11, 2023
2 parents 333915d + 432fc89 commit 3ef07db
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 29 deletions.
18 changes: 11 additions & 7 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8249,7 +8249,7 @@ const Constants = {
/**
* The core-http version
*/
coreHttpVersion: "3.0.0",
coreHttpVersion: "3.0.1",
/**
* Specifies HTTP.
*/
Expand Down Expand Up @@ -55734,14 +55734,14 @@ module.exports.implForWrapper = function (wrapper) {
this.saxParser.onopentag = (function(_this) {
return function(node) {
var key, newValue, obj, processedKey, ref;
obj = {};
obj = Object.create(null);
obj[charkey] = "";
if (!_this.options.ignoreAttrs) {
ref = node.attributes;
for (key in ref) {
if (!hasProp.call(ref, key)) continue;
if (!(attrkey in obj) && !_this.options.mergeAttrs) {
obj[attrkey] = {};
obj[attrkey] = Object.create(null);
}
newValue = _this.options.attrValueProcessors ? processItem(_this.options.attrValueProcessors, node.attributes[key], key) : node.attributes[key];
processedKey = _this.options.attrNameProcessors ? processItem(_this.options.attrNameProcessors, key) : key;
Expand Down Expand Up @@ -55791,7 +55791,11 @@ module.exports.implForWrapper = function (wrapper) {
}
}
if (isEmpty(obj)) {
obj = _this.options.emptyTag !== '' ? _this.options.emptyTag : emptyStr;
if (typeof _this.options.emptyTag === 'function') {
obj = _this.options.emptyTag();
} else {
obj = _this.options.emptyTag !== '' ? _this.options.emptyTag : emptyStr;
}
}
if (_this.options.validator != null) {
xpath = "/" + ((function() {
Expand All @@ -55815,7 +55819,7 @@ module.exports.implForWrapper = function (wrapper) {
}
if (_this.options.explicitChildren && !_this.options.mergeAttrs && typeof obj === 'object') {
if (!_this.options.preserveChildrenOrder) {
node = {};
node = Object.create(null);
if (_this.options.attrkey in obj) {
node[_this.options.attrkey] = obj[_this.options.attrkey];
delete obj[_this.options.attrkey];
Expand All @@ -55830,7 +55834,7 @@ module.exports.implForWrapper = function (wrapper) {
obj = node;
} else if (s) {
s[_this.options.childkey] = s[_this.options.childkey] || [];
objClone = {};
objClone = Object.create(null);
for (key in obj) {
if (!hasProp.call(obj, key)) continue;
objClone[key] = obj[key];
Expand All @@ -55847,7 +55851,7 @@ module.exports.implForWrapper = function (wrapper) {
} else {
if (_this.options.explicitRoot) {
old = obj;
obj = {};
obj = Object.create(null);
obj[nodeName] = old;
}
_this.resultObject = obj;
Expand Down
44 changes: 22 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3ef07db

Please sign in to comment.